My MGA2 setup has an entry in my /etc/rc.local file:
- Code: Select all
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: rc.local
# X-Mandriva-Compat-Mode
# Default-Start: 2 3 4 5
# Short-Description: Local initialization script
# Description: This script will be executed at the end of the boot process.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
### END INIT INFO
touch /var/lock/subsys/local
echo "0x7fffffff" > /proc/sys/kernel/shmmax
I have been doing that for years and whilst I confess that I don't remember why I put the shmmax setting there, it has always worked.
Now in MGA3, and 4 too I reckon, there is no rc.local and no place I can think of to get this setting applied on every boot.
As an alternative, if somebody knows how I can change the setting per user logon, that might be even better.
Any ideas?
Richard