Re: bad shmget()?? Out of shared memory?

From: Admin Mailing Lists (mlist@intergrafix.net)
Date: Tue Mar 07 2000 - 15:45:08 EST


some more info:

"ipcs -l" output:
------ Shared Memory Limits --------
max number of segments = 128
max seg size (kbytes) = 32768
max total shared memory (kbytes) = 16777216
min seg size (bytes) = 1

------ Semaphore Limits --------
max number of arrays = 128
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 32
semaphore max value = 32767

------ Messages: Limits --------
max queues system wide = 128
max size of message (bytes) = 4056
default max size of queue (bytes) = 16384

"ipcs -u" output:
------ Shared Memory Status --------
segments allocated 128
pages allocated 1549
pages resident 1526
pages swapped 23
Swap performance: 1957 attempts 23 successes

------ Semaphore Status --------
used arrays = 1
allocated semaphores = 32

------ Messages: Status --------
allocated queues = 0
used headers = 0
used space = 0 bytes

looks like i'm tying up 127 shmids with all my web servers, + 1 for some
root owned thing.

solutions?

-Tony
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
Anthony J. Biacco Network Administrator/Engineer
admin@intergrafix.net Intergrafix Internet Services

    "Dream as if you'll live forever, live as if you'll die today"
http://cygnus.ncohafmuta.com http://www.intergrafix.net
.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.

On Tue, 7 Mar 2000, Admin Mailing Lists wrote:

>
> Running kernel 2.2.14 with NR_TASKS set to 1024, dual PPro 200s, libc
> 5.4.38, binutils-2.9.1.0.15, gcc version 2.7.2.1, procps version 1.2.7
>
> On trying to start a new apache 1.3.9/ssl-1.3.7 web process I get:
> [Tue Mar 7 15:03:13 2000] [emerg] (28)No space left on device: could not
> call shmget
>
> /proc/meminfo outputs:
> total: used: free: shared: buffers: cached:
> Mem: 330436608 326524928 3911680 567758848 23367680 140308480
> Swap: 133885952 9543680 124342272
> MemTotal: 322692 kB
> MemFree: 3820 kB
> MemShared: 554452 kB
> Buffers: 22820 kB
> Cached: 137020 kB
> SwapTotal: 130748 kB
> SwapFree: 121428 kB
>
> /proc/sys/kernel/shmall outputs:
> 4194304
>
> /proc/sys/kernel/shmmax outputs:
> 33554432
>
> I really dont get the MemShared line.
>
> If i shut one down and then try running it for this domain, it'll work,
> but then the previous one outptus the same error.
>
> Any help is appreciated
>
> -Tony
> .-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
> Anthony J. Biacco Network Administrator/Engineer
> admin@intergrafix.net Intergrafix Internet Services
>
> "Dream as if you'll live forever, live as if you'll die today"
> http://cygnus.ncohafmuta.com http://www.intergrafix.net
> .-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-._.-.
>
>
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Mar 07 2000 - 21:00:23 EST