SUMMARY: Increasing Shared Memory: shmx ?

From: Paul Reilly <pareilly_at_tcd.ie>
Date: Tue, 24 Sep 2002 16:51:01 +0100 (IST)

Thanks to all for the quick responses.

The answer is to increase the 'shm_mni' attribute in the IPC subsystem.
Of course I looked at sys_attrs_proc and vm and general, just not ipc!
Responses follow:

-------------------------- start original quetsion ------------------------

Hi gurus,

I have a problem with an application in that it won't execute more than
about 127 times. I think the problem is allocating shared memory, as if
I run the shared memory excerciser "shmx" when near the 127 invocations,
it gives a fault,

shmx: Shmget[0] Fault: No space left on device

whereas on the same unloaded system 'shmx' works ok.
How do I increase the total available shared memory on a 5.1A system? In
4.0 there was a shmmni kernel parameter, but I can't see anything like
that in 5.1.

Any feedback appreciated !

Paul
-------------------------- end original quetsion ----------------------------

-------------------------------------------------------------------------------
From: Jan Mark Holzer
Subject: RE: Increasing Shared Memory: shmx ?


 You may want to increase shm_mni in the ipc subsystem.
 This parameter controls the maximum number of shared
 memory regions that can be used on the system at one
 time.

-------------------------------------------------------------------------------
From: "Ballowe, Charles"
Subject: RE: Increasing Shared Memory: shmx ?

there should be a shm_mni variable in the IPC section (dxkerneltuner
or sysconfig should be able to give you information about what it's
set to, sysconfigdb or dxkerneltuner to change it -- or edit your
/etc/sysconfigtab by hand, but that's not necessarily recommended)

man sys_attrs_ipc for information on the variables available in that
section -- note: the sys_attrs* pages are a great resource.

hope that helps
-charlie
-------------------------------------------------------------------------------
From: "Brusche, Johan"
Subject: RE: Increasing Shared Memory: shmx ?

Paul,

Please check the manpage sys_attrs_ipc and look for shm_mni.
Use the command "/sbin/sysconfig -q ipc shm_mni" to check for the
current setting.
sysconfig -Q, tells me you need to reboot to make a new value
in /etc/sysconfigtab effective.

Cheers,
   Johan.

-------------------------------------------------------------------------------
From: James W. Caldwell
Subject: Re: Increasing Shared Memory: shmx ?

Look in dxkerneltuner under "ipc" for shm***, alternatively
edit /etc/sysconfigtab by hand and add the shm_*** entries
in the ipc area.

jim


k
Received on Tue Sep 24 2002 - 15:52:04 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:43 NZDT