Re: qemu-img cache modes with Linux cgroup v1

2024-05-06 Thread Alex Kalenyuk
Hey, just FYI about tmpfs, during some development on Fedora 39 I noticed O_DIRECT is now supported on tmpfs (as opposed to our CI which runs Centos 9 Stream). `qemu-img convert -t none -O raw tests/images/cirros-qcow2.img /tmp/cirros.raw` where /tmp is indeed a tmpfs. I might be missing

Re: qemu-img cache modes with Linux cgroup v1

2024-05-06 Thread Stefan Hajnoczi
On Mon, May 06, 2024 at 08:10:25PM +0300, Alex Kalenyuk wrote: > Hey, just FYI about tmpfs, during some development on Fedora 39 I noticed > O_DIRECT is now supported on tmpfs (as opposed to our CI which runs Centos > 9 Stream). > `qemu-img convert -t none -O raw tests/images/cirros-qcow2.img >

Re: qemu-img cache modes with Linux cgroup v1

2023-08-01 Thread Stefan Hajnoczi
Hi Daniel, I agree with your points. Stefan signature.asc Description: PGP signature

Re: qemu-img cache modes with Linux cgroup v1

2023-07-31 Thread Daniel P . Berrangé
On Mon, Jul 31, 2023 at 11:40:36AM -0400, Stefan Hajnoczi wrote: > Hi, > qemu-img -t writeback -T writeback is not designed to run with the Linux > cgroup v1 memory controller because dirtying too much page cache leads > to process termination instead of usual non-cgroup and cgroup v2 > throttling

Re: qemu-img cache modes with Linux cgroup v1

2023-07-31 Thread Richard W.M. Jones
On Mon, Jul 31, 2023 at 11:40:36AM -0400, Stefan Hajnoczi wrote: > 3. Using buffered I/O because O_DIRECT is not universally supported? > > If you can't use O_DIRECT, then qemu-img could be extended to manage its > dirty page cache set carefully. This consists of picking a budget and > writing

qemu-img cache modes with Linux cgroup v1

2023-07-31 Thread Stefan Hajnoczi
Hi, qemu-img -t writeback -T writeback is not designed to run with the Linux cgroup v1 memory controller because dirtying too much page cache leads to process termination instead of usual non-cgroup and cgroup v2 throttling behavior: https://bugzilla.redhat.com/show_bug.cgi?id=2196072 I wanted to