https://bugzilla.novell.com/show_bug.cgi?id=257484 Summary: ulimit -m doesn't work Product: openSUSE 10.2 Version: Final Platform: x86 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: llunak@novell.com QAContact: qa@suse.de $ ulimit -m 300000 $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited file size (blocks, -f) unlimited pending signals (-i) 8192 max locked memory (kbytes, -l) 32 max memory size (kbytes, -m) 300000 open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) 8192 virtual memory (kbytes, -v) 828880 file locks (-x) unlimited $ ./a.out Allocated 100MB Allocated 200MB Allocated 300MB Allocated 400MB Allocated 500MB $ As far as I can say the testapp should crash after allocating 300MB. Using ulimit -d doesn't work either, however ulimit -v does. The testapp is: === #include <stdlib.h> #include <stdio.h> #include <string.h> int main() { for( int i = 1; i <= 5; ++i ) { char* a = new char[ 100 * 1024 * 1024 ]; memset( a, 0, 100 * 1024 * 1024 ); printf( "Allocated %i00MB\n", i ); } } === $ rpm -q kernel-default kernel-default-2.6.18.8-0.1 $ rpm -q glibc glibc-2.5-25 $ rpm -q bash bash-3.1-55 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.