|
nutballs
|
 |
« Reply #3 on: August 27, 2009, 09:09:34 AM » |
|
sort of.
my point about mysql not being the bottleneck was not about your code quality, but possibly an external bottleneck. For example, you say its a spider, soooo, are you sure its actually spidering at a high speed? maybe the pipe is slow or has a lot of hops?
But overall, that TOP doesnt sound right. each php is eating 15%??? thats harsh. That makes me think that the PHP script is doing alot of the heavy lifting, and would be the bottleneck? To give you a comparison I run 120 queries per second average, but spike to about 300 every half hour due to a process. These are not just select where type queries. These are Insert Ignore, fulltext queries, and of course some plain old Select Where. I have 25MILLION slow queries in the past 14 days. I have slow set to 5 seconds... LOL
top looks like this pretty much constant: top - 09:06:37 up 14 days, 23:07, 1 user, load average: 1.14, 1.20, 1.04 Tasks: 70 total, 2 running, 68 sleeping, 0 stopped, 0 zombie Cpu(s): 1.0%us, 0.3%sy, 0.0%ni, 79.2%id, 19.3%wa, 0.0%hi, 0.2%si, 0.0%st Mem: 8259964k total, 8230916k used, 29048k free, 180284k buffers Swap: 19800072k total, 45092k used, 19754980k free, 7626572k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 4946 mysql 20 0 412m 145m 6632 S 4 1.8 2580:48 mysqld 1 root 20 0 4020 880 592 S 0 0.0 0:01.14 init
machine is Dual Opteron Dual-core 2.8ghz with 8gb ram and a raid1 array, running ubuntu server. So obviously quite a bit more power, but it seems disproportionate to me?
|