Re: Memory locking limit and zero-copy migrations

2022-08-17 Thread Fangge Jin
On Thu, Aug 18, 2022 at 10:46 AM Fangge Jin wrote: > I can share some test results with you: > 1. If no memtune->hard_limit is set when start a vm, the default memlock > hard limit is 64MB > 2. If memtune->hard_limit is set when start a vm, memlock hard limit will > be set to the value of

Re: Memory locking limit and zero-copy migrations

2022-08-17 Thread Fangge Jin
I can share some test results with you: 1. If no memtune->hard_limit is set when start a vm, the default memlock hard limit is 64MB 2. If memtune->hard_limit is set when start a vm, memlock hard limit will be set to the value of memtune->hard_limit 3. If memtune->hard_limit is updated at run-time,

Re: Memory locking limit and zero-copy migrations

2022-08-17 Thread Milan Zamazal
Peter Krempa writes: > On Wed, Aug 17, 2022 at 10:56:54 +0200, Milan Zamazal wrote: >> Hi, >> > >> do I read libvirt sources right that when is not used in the >> libvirt domain then libvirt takes proper care about setting memory >> locking limits when zero-copy is requested for a migration? >

Re: Memory locking limit and zero-copy migrations

2022-08-17 Thread Peter Krempa
On Wed, Aug 17, 2022 at 10:56:54 +0200, Milan Zamazal wrote: > Hi, > > do I read libvirt sources right that when is not used in the > libvirt domain then libvirt takes proper care about setting memory > locking limits when zero-copy is requested for a migration? Well yes, for a definition of

Memory locking limit and zero-copy migrations

2022-08-17 Thread Milan Zamazal
Hi, do I read libvirt sources right that when is not used in the libvirt domain then libvirt takes proper care about setting memory locking limits when zero-copy is requested for a migration? I also wonder whether there are any other situations where memory limits could be set by libvirt or