Skip to contentSkip to conversation

replace MAX_MAP_COUNT with /proc/sys/vm/max_map_count

DISCUSSION Andi Kleen 2 participants 2 messages Mar 28, 2004 – Mar 29, 2004 1 message not in the archive

lore
Share & tools
lore

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

Andi Kleen

author
#1 lore raw
Quoted 4 lines · David Mosberger

int sysctl_overcommit_memory = 0; /* default is heuristic overcommit */
int sysctl_overcommit_ratio = 50; /* default is 50% */
+int sysctl_max_map_count = DEFAULT_MAX_MAP_COUNT;

I think it would be better to scale the default by available low mem size.

-Andi

#2 lore raw
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