Skip to content

Commit

Permalink
Kernel shmmax must be set
Browse files Browse the repository at this point in the history
  • Loading branch information
marktheunissen committed Aug 22, 2012
1 parent c25fb84 commit a0ef497
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion common-tasks/ubuntu-eaccelerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
action: file path=/var/cache/eaccelerator state=directory owner=www-data mode=700
tags: eaccel

- name: eAccelerator | And a log file
- name: eAccelerator | Make a log file
action: file path=/var/log/eaccelerator.log state=file owner=www-data mode=666
tags: eaccel

- name: eAccelerator | Configure the kernel max shm size to support large memory allocation.
action: file src=files/etc-sysctl-d-65-shm-size-conf dest=/etc/sysctl.d/65-shm-size.conf
tags: eaccel

- name: eAccelerator | Configure the kernel max shm size to support large memory allocation.
action: shell echo "260000000" > /proc/sys/kernel/shmmax
tags: eaccel
1 change: 1 addition & 0 deletions ubuntu-10.04-lamp-dev/files/etc-sysctl-d-65-shm-size-conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kernel.shmmax = 260000000
2 changes: 1 addition & 1 deletion ubuntu-10.04-lamp-dev/vars/default-settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ php_upload_max_filesize: '32M'
php_date_timezone: 'US/Central'

# eaccelerator.ini
eaccel_shm_size: '256'
eaccel_shm_size: '128'

# memcached.conf
memcached_memory: '128'
Expand Down

0 comments on commit a0ef497

Please sign in to comment.