https://bugzilla.novell.com/show_bug.cgi?id=672055 https://bugzilla.novell.com/show_bug.cgi?id=672055#c7 --- Comment #7 from Jan Engelhardt <jengelh@medozas.de> 2011-02-16 17:51:02 UTC --- jengelh@jng-0:/dev/shm> ./m 0xffffffffffffffff jengelh@jng-0:/dev/shm> free total used free shared buffers cached Mem: 2050944 107560 1943384 0 12364 60004 -/+ buffers/cache: 35192 2015752 Swap: 0 0 0 jengelh@jng-0:/dev/shm> cat m.c #include <sys/mman.h> #include <stdio.h> int main(void) { void *p = mmap(NULL, 2000000000, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS, 0, 0); printf("%p\n", p); } jengelh@jng-0:/dev/shm> su Password: jng-0:/dev/shm # echo 1 >/proc/sys/vm/overcommit_memory jng-0:/dev/shm # exit jengelh@jng-0:/dev/shm> ./m 0xffffffffffffffff jengelh@jng-0:/dev/shm> cat /etc/SuSE-release openSUSE 11.4 Milestone 6 of 6 (x86_64) VERSION = 11.4 CODENAME = Celadon jengelh@jng-0:/dev/shm> uname -a Linux jng-0 2.6.38-rc1+ #25 SMP PREEMPT Wed Feb 16 18:01:16 CET 2011 x86_64 x86_64 x86_64 GNU/Linux -- 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.