Re: replace MAX_MAP_COUNT with /proc/sys/vm/max_map_count

From: Andrew Morton
Date: Sat Mar 27 2004 - 01:19:56 EST

David Mosberger <davidm@xxxxxxxxxxxxxxxxx> wrote:
> Below is a warmed up version of a patch originally done by Werner
> Almesberger (see to replace the
> MAX_MAP_COUNT limit with a sysctl variable.

Fair enough.

> 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;
> atomic_t vm_committed_space = ATOMIC_INIT(0);
> EXPORT_SYMBOL(sysctl_overcommit_memory);
> EXPORT_SYMBOL(sysctl_overcommit_ratio);
> +EXPORT_SYMBOL(sysctl_max_map_count);
> EXPORT_SYMBOL(vm_committed_space);

The SELinux guys may want to hook into this. I assume that's why these
symbols are exported to modules at present?

Stephen, if my surmise is correct could you please prep the final patch?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at