January 20, 2005

test

MT Blog 測試...... plz .. ignore this ...

pre test ..


By default, *enter* finishes editing of a long node, and *control enter* enters a new line. By unchecking the check box "Enter confirms" you can reverse the function of the mentioned key combinations, i.e. *enter* enters new line and *control enter* finishes editing. You can set the default value of that check box in user.properties. Moreover the value of the box is saved during a session of FreeMind.

codenote test..


this is comment

int main( void ) { printf("Hello World!"); }

pre test ..


By default, *enter* finishes editing of a long node, and *control enter* enters a new line. By unchecking the check box "Enter confirms" you can reverse the function of the mentioned key combinations, i.e. *enter* enters new line and *control enter* finishes editing. You can set the default value of that check box in user.properties. Moreover the value of the box is saved during a session of FreeMind.

codenote test..


this is comment

int main( void ) { printf("Hello World!"); }
由 moto 發表於 03:29 PM | 迴響 (44)

January 09, 2004

樣式表測試

因為看到 jesse 大的 blog 也想來測試一下..

blah blah blah

YA... 看起來是 okay 的...

測試一下 moto

blah blah blah

YA... 看起來是 okay 的...

測試一下 moto

由 moto 發表於 06:18 PM | 迴響 (1961)

August 11, 2003

Linux: Benchmarking Filesystems In 2.6.0-test2

來自 http://kerneltrap.org/ 的一篇關於 linux 2.6.0-test2 中的 local 端日誌型檔案系統 ( 分散式檔案系統不包含於測試之列 ) 效能測試報告,數據顯示 resierfs 4 有不錯的表現.....

這項測試報告是由 Grant Miner 先生所完成的,測試的環境及方法如下:

在一台具備 512 MB 記憶體的機器上對一塊 11531.85MB 大小的分割區進行試驗,所採用的 linux 核心版本為 2.6.0-test2 , 以搬移整個 Mozilla 約 125 MB 的目錄結構為測試基準,測試各種檔案系統讀取與寫入的效能, sync 部分則透過附錄中的 script 完成。

Action reiserfs 4 reiserfs ext3 XFS JFS
copy 033.39,34% 039.55,32% 039.42,25% 043.50,32% 048.15,20%
sync 001.54,00% 003.15,01% 009.05,00% 002.08,01% 003.05,01%
recopy1 031.09,34% 075.15,13% 079.96,09% 102.37,12% 108.39,05%
recopy2 033.15,33% 077.62,13% 098.84,07% 108.00,12% 114.96,05%
sync 002.89,03% 003.84,01% 008.15,00% 002.40,02% 003.86,00%
du 002.05,42% 002.46,21% 003.31,11% 003.73,32% 002.42,17%
delete 007.41,52% 005.22,58% 003.71,39% 008.75,56% 015.33,07%
tar 052.25,25% 090.83,12% 074.93,13% 157.61,07% 135.86,06%
sync 006.77,02% 004.19,03% 001.67,01% 000.95,01% 038.18, 0%
overall 171.28,30% 302.53,16% 319.71,11% 429.79,13% 470.88,06%

(註: 結果值都是愈小愈好)

雖然以上測試結果是 reiserfs 4 站上風,但其它的檔案系統並非就沒有價值:
1.ext3 易於轉換為 ext2 , ext2 也易於轉換為 ext3 ,
使得 ext3 成了舊式電腦中,不必重新進行易於出錯的備份,
及無趣的重分割,還原過程,的日誌式檔案系統首選.
2.xfs 則有磁區大小有彈性,且支援稀疏檔案的虛擬檔案大小, 能節省磁碟空間.

註( brain13homepage@yahoo.com.tw 兄說明 ):
1.XFS 是由 SGI 貢獻出來的
2.XFS 的區塊大小由 0.5KB 到 64KB 不等.
3.所謂的稀疏檔案,是指檔案中含有相當多的同位元單字,
如 ...00000000000000000000000000000000000000000...
有些可執行檔就是這樣.
4.XFS 的 inode 是使用延伸區配置,
亦即指定由 block 0000003A 至 00000B7D
而非 0000003A , 0000003B ... ... 00000B7C 00000B7D
5.reiser 會把小檔案會被集中起來放進一個 block 裡,避免浪費空間.

深入閱讀:

reiserfs 4 : http://www.namesys.com/v4/v4.html
xfs : http://oss.sgi.com/projects/xfs/
jfs : http://oss.software.ibm.com/developerworks/opensource/jfs/
ext3 : http://olstrans.sourceforge.net/release/OLS2000-ext3/OLS2000-ext3.html
Linux 檔案系統深入剖析 9-789867-727633 培生教育出版 p5-2 至 p5-10

附錄 : 測試 sync 用的 script:

Here is the benchmark script:
#!/bin/sh
time='time -f%e,%P '
echo "Copying Tree"
$time cp -a /home/test/mozilla /mnt/test
echo "Sync"
$time sync
cd /mnt/test &&
echo "recopying tree to mozilla-2"
$time cp -a mozilla mozilla-2 &&
echo "recopying mozilla-2 to mozilla-3"
$time cp -a mozilla mozilla-2 &&
echo "sync"
$time sync &&
echo "du"
$time du mozilla > /dev/null &&
echo "rm -rf mozilla"
$time rm -rf mozilla
echo "tar c mozilla-2"
$time tar c mozilla-2 > mozilla.tar
echo "final sync"
$time sync


後記:
有人反應為什麼沒有一套測試的標準,事實上每個人對於檔案系統的需求都不盡相同,所以要有標準的測試條件似乎是蠻困難的,不過我個人認為可以針對不同的 case 多方面測試,相信結果會比較客觀。 ^_*

這項測試報告是由 Grant Miner 先生所完成的,測試的環境及方法如下:

在一台具備 512 MB 記憶體的機器上對一塊 11531.85MB 大小的分割區進行試驗,所採用的 linux 核心版本為 2.6.0-test2 , 以搬移整個 Mozilla 約 125 MB 的目錄結構為測試基準,測試各種檔案系統讀取與寫入的效能, sync 部分則透過附錄中的 script 完成。

Action reiserfs 4 reiserfs ext3 XFS JFS
copy 033.39,34% 039.55,32% 039.42,25% 043.50,32% 048.15,20%
sync 001.54,00% 003.15,01% 009.05,00% 002.08,01% 003.05,01%
recopy1 031.09,34% 075.15,13% 079.96,09% 102.37,12% 108.39,05%
recopy2 033.15,33% 077.62,13% 098.84,07% 108.00,12% 114.96,05%
sync 002.89,03% 003.84,01% 008.15,00% 002.40,02% 003.86,00%
du 002.05,42% 002.46,21% 003.31,11% 003.73,32% 002.42,17%
delete 007.41,52% 005.22,58% 003.71,39% 008.75,56% 015.33,07%
tar 052.25,25% 090.83,12% 074.93,13% 157.61,07% 135.86,06%
sync 006.77,02% 004.19,03% 001.67,01% 000.95,01% 038.18, 0%
overall 171.28,30% 302.53,16% 319.71,11% 429.79,13% 470.88,06%

(註: 結果值都是愈小愈好)

雖然以上測試結果是 reiserfs 4 站上風,但其它的檔案系統並非就沒有價值:
1.ext3 易於轉換為 ext2 , ext2 也易於轉換為 ext3 ,
使得 ext3 成了舊式電腦中,不必重新進行易於出錯的備份,
及無趣的重分割,還原過程,的日誌式檔案系統首選.
2.xfs 則有磁區大小有彈性,且支援稀疏檔案的虛擬檔案大小, 能節省磁碟空間.

註( brain13homepage@yahoo.com.tw 兄說明 ):
1.XFS 是由 SGI 貢獻出來的
2.XFS 的區塊大小由 0.5KB 到 64KB 不等.
3.所謂的稀疏檔案,是指檔案中含有相當多的同位元單字,
如 ...00000000000000000000000000000000000000000...
有些可執行檔就是這樣.
4.XFS 的 inode 是使用延伸區配置,
亦即指定由 block 0000003A 至 00000B7D
而非 0000003A , 0000003B ... ... 00000B7C 00000B7D
5.reiser 會把小檔案會被集中起來放進一個 block 裡,避免浪費空間.

深入閱讀:

reiserfs 4 : http://www.namesys.com/v4/v4.html
xfs : http://oss.sgi.com/projects/xfs/
jfs : http://oss.software.ibm.com/developerworks/opensource/jfs/
ext3 : http://olstrans.sourceforge.net/release/OLS2000-ext3/OLS2000-ext3.html
Linux 檔案系統深入剖析 9-789867-727633 培生教育出版 p5-2 至 p5-10

附錄 : 測試 sync 用的 script:

Here is the benchmark script:
#!/bin/sh
time='time -f%e,%P '
echo "Copying Tree"
$time cp -a /home/test/mozilla /mnt/test
echo "Sync"
$time sync
cd /mnt/test &&
echo "recopying tree to mozilla-2"
$time cp -a mozilla mozilla-2 &&
echo "recopying mozilla-2 to mozilla-3"
$time cp -a mozilla mozilla-2 &&
echo "sync"
$time sync &&
echo "du"
$time du mozilla > /dev/null &&
echo "rm -rf mozilla"
$time rm -rf mozilla
echo "tar c mozilla-2"
$time tar c mozilla-2 > mozilla.tar
echo "final sync"
$time sync


後記:
有人反應為什麼沒有一套測試的標準,事實上每個人對於檔案系統的需求都不盡相同,所以要有標準的測試條件似乎是蠻困難的,不過我個人認為可以針對不同的 case 多方面測試,相信結果會比較客觀。 ^_*

由 moto 發表於 10:55 AM | 迴響 (1155)