all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [RFC common/manager/qemu-server 0/3] fix #1989: qemu: add qcow2 cache options
@ 2026-05-29 12:58 Erik Fastermann
  2026-05-29 12:58 ` [PATCH pve-common 1/3] json schema: display nested oneOf error messages Erik Fastermann
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Erik Fastermann @ 2026-05-29 12:58 UTC (permalink / raw)
  To: pve-devel; +Cc: Erik Fastermann

Hi all,

I'm interested in feedback for my patches fixing #1989 [0], which add multiple
options to configure the qcow2 L2/refcount cache. This enables huge performance
gains in some cases.

I tested this for the current and older QEMU machine versions and while a VM was
running. The add disk (vm creation and otherwise), import disk and edit disk
dialogs were considered.

I also have the following questions:

- Currently I also check the file extension is qcow2, because in many cases the
  disk format is currently not available (especially on the frontend). Is this
  good enough in general?

- The cache size input on the frontend is currently in bytes, because fine
  control might be required in some cases, but this is a little bit ugly.
  Is there a better way to do this?

- Should the ability to control cluster_size and refcount_bits be included in
  this patch or should a separate bug be created? There was some discussion
  about this on Bugzilla [0].

- Should minimum / maximum values be defined for all options and in what way?

- Should we validate that the cache sizes are multiples of the cluster size /
  cache entry size?

- I'm using oneOf for the cache_size to support the 'based-on-disk' variant, but
  this does not play nice with the generated Rust API types (currently set the
  outer type to string, but this probably does not work). Should this be changed
  or the Rust generation extended or can I use a custom enum on the Rust side?

- Should any extra documentation be added for this feature?

Thanks for your feedback!

Best,
Erik

[0] https://bugzilla.proxmox.com/show_bug.cgi?id=1989


pve-common:

Erik Fastermann (1):
  json schema: display nested oneOf error messages

 src/PVE/JSONSchema.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


qemu-server:

Erik Fastermann (1):
  fix #1989: disk: add qcow2 cache options

 src/PVE/QemuServer.pm          | 33 ++++++++++++
 src/PVE/QemuServer/Blockdev.pm | 33 ++++++++++++
 src/PVE/QemuServer/Drive.pm    | 99 ++++++++++++++++++++++++++++++++++
 3 files changed, 165 insertions(+)


pve-manager:

Erik Fastermann (1):
  fix #1989: qemu: disk: add cache size config

 www/manager6/Parser.js      |  2 +-
 www/manager6/qemu/HDEdit.js | 70 +++++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+), 1 deletion(-)


Summary over all repositories:
  6 files changed, 238 insertions(+), 3 deletions(-)

-- 
Generated by murpp 0.11.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-05-29 15:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-29 12:58 [RFC common/manager/qemu-server 0/3] fix #1989: qemu: add qcow2 cache options Erik Fastermann
2026-05-29 12:58 ` [PATCH pve-common 1/3] json schema: display nested oneOf error messages Erik Fastermann
2026-05-29 15:25   ` Fiona Ebner
2026-05-29 12:58 ` [PATCH qemu-server 2/3] fix #1989: disk: add qcow2 cache options Erik Fastermann
2026-05-29 15:26   ` Fiona Ebner
2026-05-29 12:58 ` [PATCH pve-manager 3/3] fix #1989: qemu: disk: add cache size config Erik Fastermann
2026-05-29 15:26 ` [RFC common/manager/qemu-server 0/3] fix #1989: qemu: add qcow2 cache options Fiona Ebner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal