|
Home > Archive > Unix Programming > April 2006 > How to avoid Errno=12 when calling shmget() ?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to avoid Errno=12 when calling shmget() ?
|
|
| Claude Yih 2006-04-27, 7:55 am |
| Hello everyone. I have a question:
When I was running a program, I got a ENOMEM error and the error
message showed that it was the function shmget() that caused this
error. According to the man page of shmget, it seems that four kernel
parameters may influence that function. They are SHMALL, SHMMAX,
SHMMIN and SHMMNI. (The OS I used was Red Hat Advanced Server 4). I
tried to change the values of those parameters, but it didn't work at
all. So I want to ask for somebody to help me. I don't want to see the
"ERROR=12" any more.
PLZ help me, Thanks.
| |
| Fred Kleinschmidt 2006-04-27, 7:55 am |
|
"Claude Yih" <wing0630@gmail.com> wrote in message
news:1144832754.438538.127690@g10g2000cwb.googlegroups.com...
> Hello everyone. I have a question:
>
> When I was running a program, I got a ENOMEM error and the error
> message showed that it was the function shmget() that caused this
> error. According to the man page of shmget, it seems that four kernel
> parameters may influence that function. They are SHMALL, SHMMAX,
> SHMMIN and SHMMNI. (The OS I used was Red Hat Advanced Server 4). I
> tried to change the values of those parameters, but it didn't work at
> all. So I want to ask for somebody to help me. I don't want to see the
> "ERROR=12" any more.
>
> PLZ help me, Thanks.
>
ERROR=12 means the amount of available memory is not sufficient to fill the
request.
You need more memory than your machine has.
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
|
|
|
|
|