eaccelerator.shm_size bigger than /proc/sys/kernel/shmmax

193 views
Skip to first unread message
Message has been deleted

kai

unread,
Feb 25, 2008, 11:21:36 AM2/25/08
to eaccelerator
and it looks like it works anyhow.

http://eaccelerator.net/wiki/Settings tells: "On Linux the maximum
amount of memory a process can allocate is limited by the number set
in /proc/sys/kernel/shmmax. Allocating more than this value will
result in eAccelerator failing to initialise."

shmmax is 32MB
eaccelerator.shm_size is 128MB

cat /proc/sys/kernel/shmmax
33554432

But control.php shows Memory usage 81.78% (104.68MB/ 128.00MB)

Do I have to adjust shmmax to eaccelerator.shm_size?
Why is it working, I'm clueless

zoeloelip

unread,
Mar 25, 2008, 10:14:30 AM3/25/08
to eaccelerator
On 25 feb, 17:21, kai <g00...@kaihauser.de> wrote:
> and it looks like it works anyhow.
>
> http://eaccelerator.net/wiki/Settingstells: "On Linux the maximum
> amount of memory a process can allocate is limited by the number set
> in /proc/sys/kernel/shmmax. Allocating more than this value will
> result in eAccelerator failing to initialise."
>
> shmmax is 32MB
> eaccelerator.shm_size is 128MB
>
> cat /proc/sys/kernel/shmmax
> 33554432
>
> But control.php shows Memory usage 81.78% (104.68MB/ 128.00MB)
>
> Do I have to adjust shmmax to eaccelerator.shm_size?
> Why is it working, I'm clueless

This limit only applies when sysv style shared memory is used.
Configure probably selected an other type of shared memory like mmap
which doesn't suffer from that limitation.

gr,

Bart
Reply all
Reply to author
Forward
Message has been deleted
0 new messages