Operating System - Linux
1820114 Members
3467 Online
109619 Solutions
New Discussion юеВ

redht 7.2 increase shared memory

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

redht 7.2 increase shared memory

Hi Everyone

I'm in an education class and need a quick answer. Were using tuxedo 6.2 with redhat 7.2. I need to double the shared memory parmaters within my kernel.

Whats the quickest way to do this

Thanks in advance

Steve



take your time and think things through
8 REPLIES 8
Jerome Henry
Honored Contributor
Solution

Re: redht 7.2 increase shared memory

The size of the shared memory segment is controlled by the kernel
parameters shmmax and shmall, it can be changed while the system is running
with a command like

echo "67108864" >/proc/sys/kernel/shmmax
echo "67108864" >/proc/sys/kernel/shmall
Increasing the size of the Linux shared memory segment

hth

J
You can lean only on what resists you...
Jerome Henry
Honored Contributor

Re: redht 7.2 increase shared memory

BTW, you're on kernel 2.4.x, aren't you ? Otherwise, you need to recompile if your kernel is 2.2.x...

J
You can lean only on what resists you...
Mark Grant
Honored Contributor

Re: redht 7.2 increase shared memory

Put large numbers in these files

/proc/sys/kernel/shmall
/proc/sys/kernel/shmmax
/proc/sys/kernel/shmmni
Never preceed any demonstration with anything more predictive than "watch this"
steven Burgess_2
Honored Contributor

Re: redht 7.2 increase shared memory

Thanks Guys

Checking kernel type

Steve
take your time and think things through
steven Burgess_2
Honored Contributor

Re: redht 7.2 increase shared memory

Cheers Guys

The penny dropped !

/etc/sysctl.conf

Add new value

kernel.shmax=

Then

sysctl -p

Where are the system default values held though ?

Cheers

Ste
take your time and think things through
Jerome Henry
Honored Contributor

Re: redht 7.2 increase shared memory

Apart from /proc/sys/kernel, check /usr/src/linux/include/asm/shmparam.h and brothers...

hth

J
You can lean only on what resists you...
Jerome Henry
Honored Contributor

Re: redht 7.2 increase shared memory

Some more details about this file structure :
http://ps-ax.com/shared-mem.html

Pls 0 here (should have precised this in former post)

J
You can lean only on what resists you...
Stuart Browne
Honored Contributor

Re: redht 7.2 increase shared memory

The system defaults are in the kernel source.

The 'echo' commands that were given are the equivalent of using the sysctl, only one has a neater interface ;)

'sysctl' (if you wade through the man page) just allows a config-file-based interface to the '/proc/sys/' structure. Replace /'s with .'s, and you've got your paths.

unf. ;)
One long-haired git at your service...