I have DS with 3GB RAM and my processor is AMD Athlon(tm) 64 X2 Dual Core Processor 4200+.
My server is running:
Fedora release 15 (Lovelock)
Linux *** 2.6.40.6-0.fc15.x86_64 #1 SMP Tue Oct 4 00:39:50 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
my.cnf file is:
[mysqld]
#skip-innodb
#log
user=mysql
log-slow-queries=/var/log/mysql/log-slow-queries.log
long_query_time = 5
#query_cache_size = 20000000
query_cache_size = 134217728
thread_cache_size=40
wait_timeout=30
max_user_connections=40
max_connections=150
#default-character-set=cp1251
#skip-grant-tables
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1
init-connect="SET NAMES cp1251"
##############
##key_buffer = 128M
key_buffer_size = 256M
max_allowed_packet = 16M
table_cache = 3072
sort_buffer_size = 400M
read_buffer_size = 228M
read_rnd_buffer_size = 128M
myisam_sort_buffer_size = 456M
read_rnd_buffer_size = 128M
myisam_sort_buffer_size = 456M
#thread_cache_size = 8
thread_concurrency = 8
tmp_table_size = 32M
max_heap_table_size = 32M
################
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
the httpd(prefork) configuration is:
Timeout 30
KeepAlive off
MaxKeepAliveRequests 100
KeepAliveTimeOut 5
ServerLimit 300
MaxRequestsPerChild 500
MinSpareServers 20
MaxSpareServers 30
MaxClients 300
In plans(1 year) I have switchig to nginx + php-fpm, but currently i need to work with this.