On Friday 25 November 2005 09:03, Chris Lightfoot wrote:
> On Fri, Nov 25, 2005 at 02:56:49PM +0000, Nix wrote:
> > You could certainly do just that with POSIX shm :)
>
> Another option is to mlock the memory, which should
> prevent paging, but requires root. I have a patch which
> does this using a helper binary, if people would like it.

A) mlock would be a bad thing.  Not only is it a trivial DOS waiting to happen 
but I like the UML physmem being swapped out under memory pressure.  I just 
don't want uselessly writing it to disk over and over in the absence of any 
memory pressure whatosever to consume all I/O bandwidth to no purpose, which 
is the effect when it's not on tmpfs.

B) Still requires root.  The suid root helper program is only available in 
exactly the same circumstances in which you can just ask the admin to mount 
tmpfs somewhere for you.

Rob
-- 
Steve Ballmer: Innovation!  Inigo Montoya: You keep using that word.
I do not think it means what you think it means.


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to