Re: [PATCH v4 0/4] overcommit: introduce mem-lock-onfault

2025-02-04 Thread Daniil Tatianin
On 2/4/25 5:47 PM, Peter Xu wrote: On Tue, Feb 04, 2025 at 11:23:41AM +0300, Daniil Tatianin wrote: On 1/23/25 7:31 PM, Peter Xu wrote: On Thu, Jan 23, 2025 at 04:19:40PM +0300, Daniil Tatianin wrote: Currently, passing mem-lock=on to QEMU causes memory usage to grow by huge amounts: no meml

Re: [PATCH v4 0/4] overcommit: introduce mem-lock-onfault

2025-02-04 Thread Peter Xu
On Tue, Feb 04, 2025 at 11:23:41AM +0300, Daniil Tatianin wrote: > > On 1/23/25 7:31 PM, Peter Xu wrote: > > On Thu, Jan 23, 2025 at 04:19:40PM +0300, Daniil Tatianin wrote: > > > Currently, passing mem-lock=on to QEMU causes memory usage to grow by > > > huge amounts: > > > > > > no memlock: > >

Re: [PATCH v4 0/4] overcommit: introduce mem-lock-onfault

2025-02-04 Thread Daniil Tatianin
On 1/23/25 7:31 PM, Peter Xu wrote: On Thu, Jan 23, 2025 at 04:19:40PM +0300, Daniil Tatianin wrote: Currently, passing mem-lock=on to QEMU causes memory usage to grow by huge amounts: no memlock: $ ./qemu-system-x86_64 -overcommit mem-lock=off $ ps -p $(pidof ./qemu-system-x86_64)

Re: [PATCH v4 0/4] overcommit: introduce mem-lock-onfault

2025-01-23 Thread Peter Xu
On Thu, Jan 23, 2025 at 04:19:40PM +0300, Daniil Tatianin wrote: > Currently, passing mem-lock=on to QEMU causes memory usage to grow by > huge amounts: > > no memlock: > $ ./qemu-system-x86_64 -overcommit mem-lock=off > $ ps -p $(pidof ./qemu-system-x86_64) -o rss= > 45652 > > $

[PATCH v4 0/4] overcommit: introduce mem-lock-onfault

2025-01-23 Thread Daniil Tatianin
Currently, passing mem-lock=on to QEMU causes memory usage to grow by huge amounts: no memlock: $ ./qemu-system-x86_64 -overcommit mem-lock=off $ ps -p $(pidof ./qemu-system-x86_64) -o rss= 45652 $ ./qemu-system-x86_64 -overcommit mem-lock=off -enable-kvm $ ps -p $(pidof ./qem