Re: page locking from application

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello...

> mlock() makes user pages nonswappable. But it needs root privileges
> to do so.

Damn right you are! I misunderstood the concept of not reserving swap 
space. Yes, I do know that a VMA needs to be set as VM_LOCKED to 
prevent it being swapped out, but I failed to pick the correct syscall 
to do so. Thanks for correcting me..

regards,

Mulyadi


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux