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

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

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

Postby jaywalker » Oct 18th, '14, 22:38

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
Last edited by jaywalker on Oct 19th, '14, 02:10, edited 1 time in total.
jaywalker
 
Posts: 341
Joined: Nov 17th, '11, 02:38
Location: Belfast, Northern Ireland

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

Postby doktor5000 » Oct 19th, '14, 00:38

Please search the forum, rc.local has been asked already pretty often.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18066
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

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

Postby jaywalker » Oct 19th, '14, 01:35

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
jaywalker
 
Posts: 341
Joined: Nov 17th, '11, 02:38
Location: Belfast, Northern Ireland

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

Postby jaywalker » Oct 19th, '14, 02:20

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
jaywalker
 
Posts: 341
Joined: Nov 17th, '11, 02:38
Location: Belfast, Northern Ireland


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron