On Tuesday 22 July 2003 02:48 am, Anahata wrote:
Well, unless I am mistaken, a user with normal privileges (non-root) cannot
disable paging of memory (using mlock() stuff). So, im not exactly sure what
sweep does to gaurantee it is only using physical memory, if that is indeed
what it is doing. Perhaps the sweep author can shed some light on what is
So yes, as a root user there is definitly a significant difference in how
memory is managed if the program utilizes the mlock() system call. It is
garaunteed a range of memory will not be swapped out to disk.
As a non-root user, I do not believe there is anyway to know what is currently
swapped to disk and what is not, so the question you ask then becomes moot.
If I am mistaken im sure someone will point it out =)