Kevlar
Fri 24th Feb '06, 3:50pm
Time to squeeze some power from the rock again... I think the searches are what are causing the problem, but I am unsure. Loads on the low end are around 3.5 while on the upper end there are around 7 going up to 10 occasionally.
Thanks for the help :D
1.
Dedicated Forum PHP and Dedicated DB Servers (images are servered from a 3rd seperate box)
2.
Forum php Box
4x1.6Ghz Xeon 1mb cache
4GB RAM
5x36GB 10k SCSI RAID5
RH9
Apache 2.0.54
Php 4.4.1
mySQL 4.20
DB mySQL Box
4x1.6Ghz Xeon 1mb cache
8GB RAM
5x36GB 10k SCSI RAID5
RH9
Apache 2.0.52
Php 4.4.1
mySQL 4.0.25
3.
Nope...
4.
RPM installed
5.
forum box
14:45:47 up 14 days, 5:59, 1 user, load average: 3.27, 3.41, 3.73
239 processes: 233 sleeping, 5 running, 1 zombie, 0 stopped
CPU0 states: 33.0% user 6.4% system 0.0% nice 0.0% iowait 60.0% idle
CPU1 states: 30.4% user 1.0% system 0.0% nice 0.0% iowait 68.0% idle
CPU2 states: 38.1% user 3.3% system 0.0% nice 0.0% iowait 58.0% idle
CPU3 states: 24.1% user 2.3% system 0.0% nice 0.0% iowait 72.4% idle
CPU4 states: 43.4% user 1.0% system 0.0% nice 0.0% iowait 54.4% idle
CPU5 states: 44.1% user 1.2% system 0.0% nice 0.0% iowait 54.0% idle
CPU6 states: 26.1% user 1.3% system 0.0% nice 0.0% iowait 71.4% idle
CPU7 states: 32.2% user 2.2% system 0.0% nice 0.0% iowait 64.4% idle
Mem: 4010688k av, 2033068k used, 1977620k free, 0k shrd, 250524k buff
352816k active, 463204k inactive
Swap: 8185108k av, 0k used, 8185108k free 565428k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
27050 root 8 0 4132 4132 3996 S 99.9 0.1 17:41 2 httpd
7484 root 13 0 1228 1228 868 R 2.1 0.0 0:00 3 top
3 root 19 19 0 0 0 RWN 0.1 0.0 16:01 0 ksoftirqd_CPU
25728 root 9 0 556 556 476 S 0.1 0.0 3:19 4 syslogd
19702 root 9 0 1492 1492 1356 S 0.1 0.0 0:20 2 sshd
1 root 8 0 476 476 428 S 0.0 0.0 0:24 3 init
2 root 8 0 0 0 0 SW 0.0 0.0 0:00 3 keventd
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd_CPU
5 root 19 19 0 0 0 SWN 0.0 0.0 0:00 2 ksoftirqd_CPU
DB Box
14:42:35 up 77 days, 20:44, 1 user, load average: 0.74, 0.67, 0.60
387 processes: 386 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 7.1% user 9.4% system 0.0% nice 0.0% iowait 83.3% idle
CPU1 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU2 states: 4.7% user 28.8% system 0.0% nice 0.0% iowait 66.3% idle
CPU3 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU4 states: 1.3% user 1.3% system 0.0% nice 0.0% iowait 97.2% idle
CPU5 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU6 states: 4.3% user 22.1% system 0.0% nice 0.0% iowait 73.4% idle
CPU7 states: 0.1% user 0.0% system 0.0% nice 0.0% iowait 99.8% idle
Mem: 4011124k av, 3885344k used, 125780k free, 0k shrd, 15348k buff
1643880k active, 1625148k inactive
Swap: 8128880k av, 1284k used, 8127596k free 3253604k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
17812 root 16 0 1384 1384 868 R 48.0 0.0 0:13 2 top
2817 mysql 9 0 406M 406M 2660 S 30.7 10.3 18363m 0 mysqld-max
1 root 9 0 472 472 424 S 0.0 0.0 1:06 2 init
2 root 8 0 0 0 0 SW 0.0 0.0 0:00 2 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 15:22 0 ksoftirqd_CPU
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd_CPU
5 root 19 19 0 0 0 SWN 0.0 0.0 0:00 2 ksoftirqd_CPU
6 root 19 19 0 0 0 SWN 0.0 0.0 0:00 3 ksoftirqd_CPU
7 root 19 19 0 0 0 SWN 0.0 0.0 0:00 4 ksoftirqd_CPU
6.
DB Server
[root@cny101 root]# cat /etc/my.cnf
[mysqld]
datadir=/home/mysql
tmpdir=/sqltmp
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
max_connections = 800
key_buffer = 96M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 600
connect_timeout = 20
tmp_table_size = 128M
max_allowed_packet = 64M
max_connect_errors = 10
thread_concurrency = 4
query_cache_limit = 2M
query_cache_size = 196M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
server-id=1
ft_min_word_len=3
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysql]
no-auto-rehash
[mysqlhotcopy]
interactive-timeout
7.
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 1034 |
| Aborted_connects | 170 |
| Bytes_received | 385214730 |
| Bytes_sent | 2638813191 |
| Com_admin_commands | 0 |
| Com_alter_table | 5 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 50228998 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 2 |
| Com_delete | 1583263 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 2 |
| Com_flush | 96 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 13216328 |
| Com_insert_select | 47521 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 96 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 1395592 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 110858039 |
| Com_set_option | 192 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 1 |
| Com_show_databases | 2 |
| Com_show_fields | 7 |
| Com_show_grants | 0 |
| Com_show_keys | 5 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 0 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 2 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 130 |
| Com_show_variables | 791 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 96 |
| Com_update | 45937188 |
| Com_update_multi | 0 |
| Connections | 50080736 |
| Created_tmp_disk_tables | 173692 |
| Created_tmp_tables | 1701490 |
| Created_tmp_files | 22172 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 5061667 |
| Handler_read_first | 24771442 |
| Handler_read_key | 4154564598 |
| Handler_read_next | 3038474322 |
| Handler_read_prev | 194244402 |
| Handler_read_rnd | 1569208093 |
| Handler_read_rnd_next | 2950306189 |
| Handler_rollback | 0 |
| Handler_update | 51334547 |
| Handler_write | 66226716 |
| Key_blocks_used | 93763 |
| Key_read_requests | 1485725310 |
| Key_reads | 257956863 |
| Key_write_requests | 35729767 |
| Key_writes | 29454143 |
| Max_used_connections | 325 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 1155 |
| Open_files | 1042 |
| Open_streams | 0 |
| Opened_tables | 43204 |
| Questions | 421222067 |
| Qcache_queries_in_cache | 2858 |
| Qcache_inserts | 109917599 |
| Qcache_hits | 147873677 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 940440 |
| Qcache_free_memory | 195806120 |
| Qcache_free_blocks | 787 |
| Qcache_total_blocks | 6719 |
| Rpl_status | NULL |
| Select_full_join | 63286 |
| Select_full_range_join | 181 |
| Select_range | 31159977 |
| Select_range_check | 0 |
| Select_scan | 9490529 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 7072 |
| Sort_merge_passes | 11086 |
| Sort_range | 27830697 |
| Sort_rows | 1605914847 |
| Sort_scan | 5048567 |
| Table_locks_immediate | 314761093 |
| Table_locks_waited | 3698406 |
| Threads_cached | 322 |
| Threads_created | 326 |
| Threads_connected | 4 |
| Threads_running | 3 |
| Uptime | 4201363 |
+--------------------------+------------+
8.
Yup
9.
1600-1900 w/ a cookie timeout of 2100
10.
Forum Server
http://forums.bimmerforums.com/phpinfo.php
11.
KeepAlive Off
MaxKeepAliveRequests 1000
KeepAliveTimeout 15
IfModule prefork.c
StartServers 5
MinSpareServers 5
MaxSpareServers 20
MaxClients 256
MaxRequestsPerChild 1000
/IfModule
IfModule worker.c
StartServers 5
MaxClients 256
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 1000
/IfModule
IfModule perchild.c
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 1000
/IfModule
12.
3.5.4
13.
Logging has been disabled
Thanks for the help :D
1.
Dedicated Forum PHP and Dedicated DB Servers (images are servered from a 3rd seperate box)
2.
Forum php Box
4x1.6Ghz Xeon 1mb cache
4GB RAM
5x36GB 10k SCSI RAID5
RH9
Apache 2.0.54
Php 4.4.1
mySQL 4.20
DB mySQL Box
4x1.6Ghz Xeon 1mb cache
8GB RAM
5x36GB 10k SCSI RAID5
RH9
Apache 2.0.52
Php 4.4.1
mySQL 4.0.25
3.
Nope...
4.
RPM installed
5.
forum box
14:45:47 up 14 days, 5:59, 1 user, load average: 3.27, 3.41, 3.73
239 processes: 233 sleeping, 5 running, 1 zombie, 0 stopped
CPU0 states: 33.0% user 6.4% system 0.0% nice 0.0% iowait 60.0% idle
CPU1 states: 30.4% user 1.0% system 0.0% nice 0.0% iowait 68.0% idle
CPU2 states: 38.1% user 3.3% system 0.0% nice 0.0% iowait 58.0% idle
CPU3 states: 24.1% user 2.3% system 0.0% nice 0.0% iowait 72.4% idle
CPU4 states: 43.4% user 1.0% system 0.0% nice 0.0% iowait 54.4% idle
CPU5 states: 44.1% user 1.2% system 0.0% nice 0.0% iowait 54.0% idle
CPU6 states: 26.1% user 1.3% system 0.0% nice 0.0% iowait 71.4% idle
CPU7 states: 32.2% user 2.2% system 0.0% nice 0.0% iowait 64.4% idle
Mem: 4010688k av, 2033068k used, 1977620k free, 0k shrd, 250524k buff
352816k active, 463204k inactive
Swap: 8185108k av, 0k used, 8185108k free 565428k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
27050 root 8 0 4132 4132 3996 S 99.9 0.1 17:41 2 httpd
7484 root 13 0 1228 1228 868 R 2.1 0.0 0:00 3 top
3 root 19 19 0 0 0 RWN 0.1 0.0 16:01 0 ksoftirqd_CPU
25728 root 9 0 556 556 476 S 0.1 0.0 3:19 4 syslogd
19702 root 9 0 1492 1492 1356 S 0.1 0.0 0:20 2 sshd
1 root 8 0 476 476 428 S 0.0 0.0 0:24 3 init
2 root 8 0 0 0 0 SW 0.0 0.0 0:00 3 keventd
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd_CPU
5 root 19 19 0 0 0 SWN 0.0 0.0 0:00 2 ksoftirqd_CPU
DB Box
14:42:35 up 77 days, 20:44, 1 user, load average: 0.74, 0.67, 0.60
387 processes: 386 sleeping, 1 running, 0 zombie, 0 stopped
CPU0 states: 7.1% user 9.4% system 0.0% nice 0.0% iowait 83.3% idle
CPU1 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU2 states: 4.7% user 28.8% system 0.0% nice 0.0% iowait 66.3% idle
CPU3 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU4 states: 1.3% user 1.3% system 0.0% nice 0.0% iowait 97.2% idle
CPU5 states: 0.0% user 0.0% system 0.0% nice 0.0% iowait 100.0% idle
CPU6 states: 4.3% user 22.1% system 0.0% nice 0.0% iowait 73.4% idle
CPU7 states: 0.1% user 0.0% system 0.0% nice 0.0% iowait 99.8% idle
Mem: 4011124k av, 3885344k used, 125780k free, 0k shrd, 15348k buff
1643880k active, 1625148k inactive
Swap: 8128880k av, 1284k used, 8127596k free 3253604k cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
17812 root 16 0 1384 1384 868 R 48.0 0.0 0:13 2 top
2817 mysql 9 0 406M 406M 2660 S 30.7 10.3 18363m 0 mysqld-max
1 root 9 0 472 472 424 S 0.0 0.0 1:06 2 init
2 root 8 0 0 0 0 SW 0.0 0.0 0:00 2 keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 15:22 0 ksoftirqd_CPU
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 1 ksoftirqd_CPU
5 root 19 19 0 0 0 SWN 0.0 0.0 0:00 2 ksoftirqd_CPU
6 root 19 19 0 0 0 SWN 0.0 0.0 0:00 3 ksoftirqd_CPU
7 root 19 19 0 0 0 SWN 0.0 0.0 0:00 4 ksoftirqd_CPU
6.
DB Server
[root@cny101 root]# cat /etc/my.cnf
[mysqld]
datadir=/home/mysql
tmpdir=/sqltmp
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
max_connections = 800
key_buffer = 96M
myisam_sort_buffer_size = 64M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 2M
table_cache = 1800
thread_cache_size = 384
wait_timeout = 600
connect_timeout = 20
tmp_table_size = 128M
max_allowed_packet = 64M
max_connect_errors = 10
thread_concurrency = 4
query_cache_limit = 2M
query_cache_size = 196M
query_cache_type = 1
query_prealloc_size = 16384
query_alloc_block_size = 16384
server-id=1
ft_min_word_len=3
[mysql.server]
user=mysql
basedir=/var/lib
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[myisamchk]
key_buffer=64M
sort_buffer=64M
read_buffer=16M
write_buffer=16M
[mysql]
no-auto-rehash
[mysqlhotcopy]
interactive-timeout
7.
+--------------------------+------------+
| Variable_name | Value |
+--------------------------+------------+
| Aborted_clients | 1034 |
| Aborted_connects | 170 |
| Bytes_received | 385214730 |
| Bytes_sent | 2638813191 |
| Com_admin_commands | 0 |
| Com_alter_table | 5 |
| Com_analyze | 0 |
| Com_backup_table | 0 |
| Com_begin | 0 |
| Com_change_db | 50228998 |
| Com_change_master | 0 |
| Com_check | 0 |
| Com_commit | 0 |
| Com_create_db | 0 |
| Com_create_function | 0 |
| Com_create_index | 0 |
| Com_create_table | 2 |
| Com_delete | 1583263 |
| Com_delete_multi | 0 |
| Com_drop_db | 0 |
| Com_drop_function | 0 |
| Com_drop_index | 0 |
| Com_drop_table | 2 |
| Com_flush | 96 |
| Com_grant | 0 |
| Com_ha_close | 0 |
| Com_ha_open | 0 |
| Com_ha_read | 0 |
| Com_insert | 13216328 |
| Com_insert_select | 47521 |
| Com_kill | 0 |
| Com_load | 0 |
| Com_load_master_data | 0 |
| Com_load_master_table | 0 |
| Com_lock_tables | 96 |
| Com_optimize | 0 |
| Com_purge | 0 |
| Com_rename_table | 0 |
| Com_repair | 0 |
| Com_replace | 1395592 |
| Com_replace_select | 0 |
| Com_reset | 0 |
| Com_restore_table | 0 |
| Com_revoke | 0 |
| Com_rollback | 0 |
| Com_savepoint | 0 |
| Com_select | 110858039 |
| Com_set_option | 192 |
| Com_show_binlog_events | 0 |
| Com_show_binlogs | 0 |
| Com_show_create | 1 |
| Com_show_databases | 2 |
| Com_show_fields | 7 |
| Com_show_grants | 0 |
| Com_show_keys | 5 |
| Com_show_logs | 0 |
| Com_show_master_status | 0 |
| Com_show_new_master | 0 |
| Com_show_open_tables | 0 |
| Com_show_processlist | 0 |
| Com_show_slave_hosts | 0 |
| Com_show_slave_status | 0 |
| Com_show_status | 2 |
| Com_show_innodb_status | 0 |
| Com_show_tables | 130 |
| Com_show_variables | 791 |
| Com_slave_start | 0 |
| Com_slave_stop | 0 |
| Com_truncate | 0 |
| Com_unlock_tables | 96 |
| Com_update | 45937188 |
| Com_update_multi | 0 |
| Connections | 50080736 |
| Created_tmp_disk_tables | 173692 |
| Created_tmp_tables | 1701490 |
| Created_tmp_files | 22172 |
| Delayed_insert_threads | 0 |
| Delayed_writes | 0 |
| Delayed_errors | 0 |
| Flush_commands | 1 |
| Handler_commit | 0 |
| Handler_delete | 5061667 |
| Handler_read_first | 24771442 |
| Handler_read_key | 4154564598 |
| Handler_read_next | 3038474322 |
| Handler_read_prev | 194244402 |
| Handler_read_rnd | 1569208093 |
| Handler_read_rnd_next | 2950306189 |
| Handler_rollback | 0 |
| Handler_update | 51334547 |
| Handler_write | 66226716 |
| Key_blocks_used | 93763 |
| Key_read_requests | 1485725310 |
| Key_reads | 257956863 |
| Key_write_requests | 35729767 |
| Key_writes | 29454143 |
| Max_used_connections | 325 |
| Not_flushed_key_blocks | 0 |
| Not_flushed_delayed_rows | 0 |
| Open_tables | 1155 |
| Open_files | 1042 |
| Open_streams | 0 |
| Opened_tables | 43204 |
| Questions | 421222067 |
| Qcache_queries_in_cache | 2858 |
| Qcache_inserts | 109917599 |
| Qcache_hits | 147873677 |
| Qcache_lowmem_prunes | 0 |
| Qcache_not_cached | 940440 |
| Qcache_free_memory | 195806120 |
| Qcache_free_blocks | 787 |
| Qcache_total_blocks | 6719 |
| Rpl_status | NULL |
| Select_full_join | 63286 |
| Select_full_range_join | 181 |
| Select_range | 31159977 |
| Select_range_check | 0 |
| Select_scan | 9490529 |
| Slave_open_temp_tables | 0 |
| Slave_running | OFF |
| Slow_launch_threads | 0 |
| Slow_queries | 7072 |
| Sort_merge_passes | 11086 |
| Sort_range | 27830697 |
| Sort_rows | 1605914847 |
| Sort_scan | 5048567 |
| Table_locks_immediate | 314761093 |
| Table_locks_waited | 3698406 |
| Threads_cached | 322 |
| Threads_created | 326 |
| Threads_connected | 4 |
| Threads_running | 3 |
| Uptime | 4201363 |
+--------------------------+------------+
8.
Yup
9.
1600-1900 w/ a cookie timeout of 2100
10.
Forum Server
http://forums.bimmerforums.com/phpinfo.php
11.
KeepAlive Off
MaxKeepAliveRequests 1000
KeepAliveTimeout 15
IfModule prefork.c
StartServers 5
MinSpareServers 5
MaxSpareServers 20
MaxClients 256
MaxRequestsPerChild 1000
/IfModule
IfModule worker.c
StartServers 5
MaxClients 256
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 1000
/IfModule
IfModule perchild.c
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 1000
/IfModule
12.
3.5.4
13.
Logging has been disabled