Home » 2005 » December (Page 3)

三菱的可擦拭中性筆

剛剛在 看到的,買了一支回來試看看,寫起來很像水性筆,查了一下資料,果然是某種水性筆:各式文具的歷史, 可擦拭原子筆(Erasable Pen)的歷史簡述請問擦擦筆~

在三菱的官方網站上也有這項產品的資訊:ユニボール シグノ イレイサブル細字ユニボール シグノ イレイサブル

不過書寫的感覺跟 .5 油性筆 (筆心的編號是 UMR-5) 比起來差多了,大概不會再買第二支吧 :p

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

FreeBSD 6.0 MySQL Performance

I use databases/mysql50-{client,server} and use benchmarks/super-smack to test. There are 3*2*2*2 = 24 cases:

  • Compile options: none, WITH_PROC_SCOPE_PTH=yes, WITH_LINUXTHREADS=yes
  • /etc/libmap.conf: none (libpthread), libthr
  • kern.timecounter.choice: ACPI-fast, TSC
  • kernel: ULE+PREEMPTION, ULE

These benchmarking were tested on my laptop (IBM x31 2672-IQV, Pentium-M 1.5G with 512MB RAM), and powerd was disabled. Detail informations (dmesg, sysctl, and kernel config file) will post later.

The commands are:

for i in 1 2 3 4 5; do super-smack select-key.smack 10 1000 | grep select_index; done
for i in 1 2 3 4 5; do super-smack update-select.smack 10 1000 | grep select_index; done

mysql-linuxthreads-libpthread-acpifast-ule+pre.txt

select_index    20000   0       0       14097.47
select_index    20000   0       0       13741.43
select_index    20000   1       0       13704.01
select_index    20000   0       0       13626.05
select_index    20000   0       0       13769.32
select_index    10000   2       0       1891.63
select_index    10000   2       0       1758.65
select_index    10000   2       0       1836.00
select_index    10000   4       0       2058.71
select_index    10000   14      0       2050.05

(more…)

Archives