2010/4/2 Graham Dumpleton <graham.dumple...@gmail.com>: > I have never implemented memory limits on mod_wsgi daemon process > because RLIMIT_DATA with setrlimit() doesn't work on MacOS X and > didn't used to be implemented in older Linux kernels either. > > Can people give some feedback on whether latest Linux distributions > now all have sufficiently new enough kernels that could at least > implement memory limits on Linux. Can anyone also give some feedback > about Solaris as well. > > The feedback I want is for you to download: > > http://oops.se/~malte/resources/rlimittest.tar.gz > > and simply run 'make' in the 'rlimitest' directory it unpacks. > > Provide the output from it running its tests. For example, on MacOS X > (10.5) you get: > > ./datasoftlimit > soft: 50000 > hard: 9223372036854775807 (infinite) > Allocating 100000 bytes. > ./datahardlimit > soft: 50000 > hard: 50000 > Allocating 100000 bytes.
Fedora 10: # uname -a Linux d2.localdomain 2.6.27.41-170.2.117.fc10.x86_64 #1 SMP Thu Dec 10 10:36:29 EST 2009 x86_64 x86_64 x86_64 GNU/Linux ./datasoftlimit soft: 50000 hard: -1 (infinite) Allocating 100000 bytes. ./datahardlimit soft: 50000 hard: 50000 Allocating 100000 bytes. Centos 5: # uname -a Linux c5.dkt 2.6.18-164.15.1.el5 #1 SMP Wed Mar 17 11:30:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux ./datasoftlimit soft: 50000 hard: -1 (infinite) Allocating 100000 bytes. ./datahardlimit soft: 50000 hard: 50000 Allocating 100000 bytes. Fedora 12: # uname -a Linux f1264.dkt 2.6.32.10-90.fc12.x86_64 #1 SMP Tue Mar 23 09:47:08 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux ./datasoftlimit soft: 50000 hard: -1 (infinite) Allocating 100000 bytes. ./datahardlimit soft: 50000 hard: 50000 Allocating 100000 bytes. Regards, Clodoaldo > > which shows that even with limits set it doesn't prohibit you from > allocating more memory. > > When giving feedback, indicate what Linux distribution you are using > and what kernel version it uses. For Solaris, what version is > suffcient. > > If you are are using any other operating system and this feature would > be important to you, then provide output for test from your system as > well. > > If recent versions of Linux support this now without problem, then > will implement a 'memory-limit' option to WSGIDaemonProcess. > > Thanks. > > Graham > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to modw...@googlegroups.com. > To unsubscribe from this group, send email to > modwsgi+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.