Page 1 of 1

[SOLVED for MGA3] How should I set shmmax in MGA3 and MGA4?

PostPosted: Oct 18th, '14, 22:38
by jaywalker
It has taken me a while to get around to asking this question but I am in need of the answer now that I am finally ready to get Cinelerra working on MGA3 & 4.

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

Re: How should I set shmmax in MGA3 and MGA4?

PostPosted: Oct 19th, '14, 00:38
by doktor5000
Please search the forum, rc.local has been asked already pretty often.

Re: How should I set shmmax in MGA3 and MGA4?

PostPosted: Oct 19th, '14, 01:35
by jaywalker
thanks Doc, not so much interested in rc.local as in a better way to set it or not set it, depending on how I log on.

R

Re: [SOLVED for MGA3] How should I set shmmax in MGA3 and MG

PostPosted: Oct 19th, '14, 02:20
by jaywalker
Hmmm Searched for rc.local and got 961 matches - and no, I didn't read them all. I searched for shmmax instead and got a solution wich does work for MGA3 but thanks to the moving target which is systemd it is unlikely to work beyond MGA4 if indeed I can get it to work there.

The method I took came from a suggestion from viewtopic.php?f=7&t=7190&p=45987&hilit=shmmax#p45987.

I created a file in the empty directory /etc/sysctl.d. I called it 99-sysctl.conf and it contains
Code: Select all
kernel.shmmax=0x7fffffff


On reboot all is well so I reckon I can safely use this on the Cinelerra machine running MGA3. I'll see how I get on with the MGA4 when I have built Cinelerra there.

R