[Python-Dev] mlockall() in Python? (original) (raw)
Guilherme Polo ggpolo at gmail.com
Mon Nov 24 02:31:15 CET 2008
- Previous message: [Python-Dev] mlockall() in Python?
- Next message: [Python-Dev] subprocess.Popen: change default buffer size?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Nov 23, 2008 at 10:44 PM, Evgeni Golov <sargentd at die-welt.net> wrote:
Hi,
I'd like to write a small daemon in Python, which should never be swapped out (on Linux, this daemon will be Linux specific, so no need in a platform-independent solution). In C I'd do: #include <sys/mman.h> mlockall(MCLFUTURE); //do stuff here munlockall(); Is there anything similar in Python?
Python doesn't wrap those function itself, but maybe some extension modules does (or you could wrap it a second: http://pastebin.com/m3286272c http://pastebin.com/m33ca908d)
Also, this list is for development of Python, not development with Python (one of the most used messages this month).
TIA & kind regards Evgeni Golov
Python-Dev mailing list Python-Dev at python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/ggpolo%40gmail.com
-- -- Guilherme H. Polo Goncalves
- Previous message: [Python-Dev] mlockall() in Python?
- Next message: [Python-Dev] subprocess.Popen: change default buffer size?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]