<div dir="ltr">Correct me if I'm wrong but locked option is pinning all VM memory in host RAM,<div><br></div><div>for example if I have a VM with 4G memory, and I want to run some QEMU code which needs to pin 500M,</div><div><br></div><div>I will need to lock all 4G in host memory instead of locking only 500M.</div><div><br></div><div>Any idea to solve my problem? </div><div><br></div><div>Regards,</div><div>Roy</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 21, 2016 at 10:58 AM, Jiri Denemark <span dir="ltr"><<a href="mailto:jdenemar@redhat.com" target="_blank">jdenemar@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sat, Mar 19, 2016 at 14:53:45 +0200, Roy Shterman wrote:<br>
> Hi Jirka,<br>
><br>
> Thanks for your answer, but I'm looking for a way to set RLIMIT_MEMLOCK<br>
> without locking all VM memory.<br>
> I'm wondering if there is a way to set RLIMIT_MEMLOCK without using the<br>
> methods you wrote above.<br>
<br>
</span>No, libvirt doesn't provide any way to do this. But why would you even<br>
want to do that? RLIMIT_MEMLOCK is irrelevant when you don't lock the<br>
memory.<br>
<br>
Jirka<br>
</blockquote></div><br></div>