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 吃比較兇的部分造成的?

3 thoughts on “DreamHost 的 php.cgi”

  1. 媽啊我也收到了!讓我當場心情down到了谷底XD

    之前似乎有人利用我帳號裡某個版本較舊的wp網站來當spam工具,已經讓我灰頭土臉,這下子又指控我是個資源濫用的人嗎?嗚嗚...不過看到這麼多同病相憐的人,我知道這叫做「德不孤、必有鄰」XD

  2. 不過,它的 php.cgi 應該是針對每一個 web site 進行統計的,所以算出來的是該 url 所使用的 PHP CPU 的統計。流量大的時候,對於像 wp 這種動態產生的站,還是會吃掉很多 CPU 才是。

Leave a Reply

Your email address will not be published. Required fields are marked *