[lkml]   [2003]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux 2.4.23-rc5
On Tue, 25 Nov 2003 17:50:20 +0100, you wrote in linux.kernel:

> "overcommit_memory < 0" supposed to not allow apps to overallocate
> memory - but still it works not like it is said in
> Documentation/filesystems/proc.txt.

Actually, looking at vm_enough_memory in mm/mmap.c in 2.4, which seems to
be the only user of sysctl_overcommit_memory, it is just used directly in
an if clause:

if (sysctl_overcommit_memory)
return 1;

This means any value different from 0 will turn overcommit on, no matter
whether positive or negative value.

Documentation bug, I would say.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:58    [W:0.019 / U:7.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site