Gea-Suan Lin's BLOG

Sunday, December 18, 2005

DreamHost 的 php.cgi

這幾天我收到 DreamHost 寄來的信,說我使用的 CPU resource 超過合理使用的範圍:(有點長,所以我只挑出了重要的部分)

Unfortunately it appears that your site is using more than your
fair share of system resources on your shared hosting machine
pizarro. Our system has flagged your account because it is using a large number
of CPU minutes per day on pizarro. We need you to trim down your
resource consumption considerably. Should you ignore this or subsequent warnings your
account may be moved to an evaluation server which could cause downtime.

Specifically gslinn’s CPU minute usage for today is 73.01.

我到 shell account 上看了紀錄,發現都是 php.cgi 在吃 CPU resource:

Process CPU seconds user machine count average
php.cgi 3374.4700 86.183% 14.060% 13544 0.249
awstats.pl 534.4000 13.648% 2.227% 498 1.073
sh 4.7500 0.121% 0.020% 492 0.010
tcsh 1.1100 0.028% 0.005% 14 0.079
vim 0.5200 0.013% 0.002% 10 0.052
sshd 0.1100 0.003% 0.000% 4 0.028
cat 0.0300 0.001% 0.000% 11 0.003
ls 0.0300 0.001% 0.000% 8 0.004
sendmail 0.0200 0.001% 0.000% 1 0.020
w 0.0200 0.001% 0.000% 3 0.007
postdrop 0.0100 0.000% 0.000% 1 0.010
----------------------------------------------------------------------
Total: 3915.4700 100.000% 16.314% 14586
Average per day: 3915.4700 1 days
CPU percentage assumes 24000 cpu seconds per day total.

這讓我哭笑不得 :p 也許還是跑 mod_php4 好了,這樣 CPU resource 就不會算在我頭上了?XD

PS:在 What are CPU minutes? 這頁有一堆人這幾天在幹剿 XD 大概是 DreamHost 這幾天升級 php 升到某個 resource 吃比較兇的部分造成的?