replace MAX_MAP_COUNT with /proc/sys/vm/max_map_count
A message that is not in the archive (sent off-list or not yet received): 16485.5722.591616.846576@napali.hpl.hp.com.suse.lists.linux.kernel
Quoted 4 lines · David Mosberger
int
sysctl_overcommit_memory= 0; /* default is heuristic overcommit */
intsysctl_overcommit_ratio= 50; /* default is 50% */
+intsysctl_max_map_count=DEFAULT_MAX_MAP_COUNT;
I think it would be better to scale the default by available low mem size.
-Andi
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line · Andi Kleen
Quoted 1 line · Andi> David Mosberger <[email protected]> writes:
Quoted 1 line
+int
sysctl_max_map_count=DEFAULT_MAX_MAP_COUNT;
Andi> I think it would be better to scale the default by available Andi> low mem size.
I don't really care, but if you want this to be memory-dependent, there would be several other parameters that could/should be memory dependent as well (e.g., max. number of processes). In other words, you'd be opening a can of worms. Not sure that makes sense fo 2.6.
--david