Skip to content

Commit

Permalink
less memory for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
drscream committed Sep 25, 2014
1 parent 125d6d1 commit 2bfd1de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copy/var/zoneinit/includes/31-mysql.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FLUSH PRIVILEGES;
install plugin sphinx soname 'ha_sphinx.so';"

# MySQL my.cnf tuning
MEMCAP=$(kstat -c zone_memory_cap -s physcap -p | cut -f2 | awk '{ printf "%d", $1/1024/1024/2 }');
MEMCAP=$(kstat -c zone_memory_cap -s physcap -p | cut -f2 | awk '{ printf "%d", $1/1024/1024/3 }');

# innodb_buffer_pool_size
INNODB_BUFFER_POOL_SIZE=$(echo -e "scale=0; ${MEMCAP}/2"|bc)M
Expand Down

0 comments on commit 2bfd1de

Please sign in to comment.