On Fri, 25 Nov 2005, Chris Lightfoot murmured woefully: > 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.
Well, mlocking it is certainly not practical for everyone :) while shm_open() and friends *is* practical as a general solution. e.g., one of my more important UMLs, my firewall: [EMAIL PROTECTED] 27 /home/nix% ps -o rss,vsz -C uml-esperi RSS VSZ 34296 99788 1468 1624 34296 99788 34296 99788 34296 99788 That's a very large RSS because I'm sshing in through it; normally it's more like 5Mb. The host only has 128Mb RAM and does many other things as well: mlock()ing that 99Mb into RAM would render the host almost useless! -- `Y'know, London's nice at this time of year. If you like your cities freezing cold and full of surly gits.' --- David Damerell ------------------------------------------------------- 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