Skip to contentSkip to conversation

Migrating SYSV Limits to rlimit ?

DISCUSSION Francois - kml 1 participant 1 message Mar 31, 2009 Memory management

lore
Share & tools
lore
#0 lore raw

Hi,

Most distros sets their own shmmax/shmall values.
DB admins wants and usually sets large values for their processes. Global limits means there's no guarantee, except the upper limit.

So I'm currently working on a patch moving sysv shm limits to rlimit, which would allow a finer grained tuning. Currently:
- Lower by default shmmax/shmall values (at least the mainline ones)
- Allow raising those limits through sysctl, privilegied /proc access or setrlimit w/CAP_SYS_RESOURCE
- Limit resources by user with the user accounting struct
- Set the initial values through Kconfig
- Bind of sysctl modifications to init's rlimit hard values

I'm looking for comments.
Is that something that could interest a specific branch ?

Refs: Bugzilla Bug 11381
Some discussion about it:
http://marc.info/?t=112315565600001&r=1&w=2

Francois

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>