Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Shared memory region - too many open files
@ 2002-10-07 19:07 Gerhard Stegemann
  2002-10-08  9:55 ` Johan Brusche
  0 siblings, 1 reply; 5+ messages in thread
From: Gerhard Stegemann @ 2002-10-07 19:07 UTC (permalink / raw)


I have an application running under Tru64 V4.0F which issues under some situation this
error message:

KER: shmat() in get_segs: Too many open files
shared memory id = 188, errno = 24

Checking the cause for this error I have found the following:

errno = 24 -> /sys/include/sys/errno.h -> EMFILE - Too many open files

man shmat -> Return values -> [EMFILE] An attempt to attach a shared memory region
exceeded the maximum number of attached regions allowed for any one process.


My current conclusion is, that one of the many system or kernel parameters has a wrong
setting. But which parameter controls this? What parameter(s) have to be tweaked to
prevent this error?


--
Gerhard Stegemann





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shared memory region - too many open files
  2002-10-07 19:07 Gerhard Stegemann
@ 2002-10-08  9:55 ` Johan Brusche
  2002-10-08 18:11   ` Gerhard Stegemann
  0 siblings, 1 reply; 5+ messages in thread
From: Johan Brusche @ 2002-10-08  9:55 UTC (permalink / raw)



"Gerhard Stegemann" <Gerhard.Stegemann@t-online.de> wrote in message
news:ansm7g$kdc$07$1@news.t-online.com...
> I have an application running under Tru64 V4.0F which issues under some
situation this
> error message:
>
> KER: shmat() in get_segs: Too many open files
> shared memory id = 188, errno = 24
>
> Checking the cause for this error I have found the following:
>
> errno = 24 -> /sys/include/sys/errno.h -> EMFILE - Too many open files
>
> man shmat -> Return values -> [EMFILE] An attempt to attach a shared
memory region
> exceeded the maximum number of attached regions allowed for any one
process.
>
>
> My current conclusion is, that one of the many system or kernel parameters
has a wrong
> setting. But which parameter controls this? What parameter(s) have to be
tweaked to
> prevent this error?
>
>
> --
> Gerhard Stegemann
>
>
>

Gerhard,

Check for shm-seg ( see man sys_attrs_ipc) in the ipc parameter subset.
The default value is 32 (max number of process attached shared mem regions)

You need to reboot after modification in /etc/sysconfigtab.

Johan.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shared memory region - too many open files
  2002-10-08  9:55 ` Johan Brusche
@ 2002-10-08 18:11   ` Gerhard Stegemann
  0 siblings, 0 replies; 5+ messages in thread
From: Gerhard Stegemann @ 2002-10-08 18:11 UTC (permalink / raw)


Johan Brusche wrote:

> > My current conclusion is, that one of the many system or kernel
> > parameters has a wrong setting. But which parameter controls this?
> > What parameter(s) have to be tweaked to prevent this error?

> Check for shm-seg ( see man sys_attrs_ipc) in the ipc parameter
> subset. The default value is 32 (max number of process attached
> shared mem regions)

Several IPC related parameter settings have already been raised:

 ipc:
 msg-max = 32767
 msg-mnb = 65535
 num-of-sems = 1500
 sem-msl = 256
 sem-mni=256
 shm-max = 200000000
 shm-mni=2048
 shm-seg = 512
 proc:
 max-proc-per-user=512
 maxusers=64

Shall I try to increase shm-seg again? Or is there another parameter
which has an effect on attached shared memory regions?


> You need to reboot after modification in /etc/sysconfigtab.

Yes, I know. Thanks.


--
Gerhard Stegemann




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shared memory region - too many open files
@ 2003-01-03 13:12 Gerhard Stegemann
  0 siblings, 0 replies; 5+ messages in thread
From: Gerhard Stegemann @ 2003-01-03 13:12 UTC (permalink / raw)


Johan Brusche wrote:

> > My current conclusion is, that one of the many system or kernel
> > parameters has a wrong setting. But which parameter controls this?
> > What parameter(s) have to be tweaked to prevent this error?

> Check for shm-seg ( see man sys_attrs_ipc) in the ipc parameter
> subset. The default value is 32 (max number of process attached
> shared mem regions)

May have ssm-threshold also an effect on this?

May proc:max-open-soft or max-open-hard limit the maximum no.
of attached shared memory segments on a per process basis?

-- 
Gerhard Stegemann






^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Shared memory region - too many open files
@ 2003-08-08  8:06 Gerhard Stegemann
  0 siblings, 0 replies; 5+ messages in thread
From: Gerhard Stegemann @ 2003-08-08  8:06 UTC (permalink / raw)


Gerhard Stegemann wrote:
> Johan Brusche wrote:
>
> > > My current conclusion is, that one of the many system or kernel
> > > parameters has a wrong setting. But which parameter controls this?
> > > What parameter(s) have to be tweaked to prevent this error?
>
> > Check for shm-seg ( see man sys_attrs_ipc) in the ipc parameter
> > subset. The default value is 32 (max number of process attached
> > shared mem regions)

We have raised this parameter to 3000, which didn't help at all.

But now we have found that there seems to be hard limit 185 shared
memory regions which may ever allocated to one process. At least a
shmat system call will fail attempting to attach the 186th shared
memory region. Could this be a bug in Tru64 V4?


-- 
Gerhard Stegemann




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-08  8:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-03 13:12 Shared memory region - too many open files Gerhard Stegemann
  -- strict thread matches above, loose matches on Subject: below --
2003-08-08  8:06 Gerhard Stegemann
2002-10-07 19:07 Gerhard Stegemann
2002-10-08  9:55 ` Johan Brusche
2002-10-08 18:11   ` Gerhard Stegemann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox