Wednesday, February 07, 2007

over 60% performance boost for "tar xf"

"tar" is a commonly used single threaded utility for generating and extracting archives. With recent advances in filesystem implementations like e.g. Sun Solaris' ZFS, I read several time the wish that tar really should be multi-threaded to get better performance.

Well, I gave it a shot and wrote a preloadable binary patch that hands of write and close requests to worker threads. Unfortunately, I don't have a ZFS with many spindles, but I wanted to know if there might be a performance boost. So I tried it on a memory based TMPFS on a 4 processor Sun Fire V440 with 16GB of RAM running Solaris. I extracted a 1GB tar file first with the patched version of tar and then in single threaded mode. Result: over 60% performance improvement for the multi-threaded version.

I'd say it was worth the effort writing the patch. If you'd like to use it, too, you can get it here.

39 Comments:

Blogger EdwinaHugh said...

情色成人小說情色性愛貼片區情色性愛自拍情色性愛情色影片性高潮情色影片下載情色影片下載區情色影片交流情色影院情色影音王國情色影音短片情色影音視訊情色影音光碟網情色影音分享情色影音下載情色影音中心情色影城情色往情色後宮網情色性生活情色成人派情色按摩情色排行榜情色曉遊戲情色最犀利情色本土影片論壇情色欣賞情色武俠文學情色下載情色下載影城情色游戲情色之星情色亂倫小說情色五月天情色交友情色交流區情色人妻情色漫畫情色漫畫免費情色日本帖圖

11:25 AM  
Blogger 3d電影 said...

幸福是人人都要,又怎麼可能都歸你所有?要知道這世界幸福本來就不多 ..................................................

4:34 AM  
Blogger 時尚 said...

一定要保持最佳狀況呦,祝您開心 ........................................

7:17 PM  
Blogger 廷雯 said...

台灣本土性愛影片性愛遊性愛文性愛性交自拍走光貼色情片無碼色情片貼片色情片影片色情卡通貼圖色情光牒色情米克色情自拍圖貼色情自拍網站色情免費成人無碼電影片色情片gogo色情片色情文說色美眉寫真色美眉影片色站排行榜色情!色情DVD色情qvod色情人無碼影片色情上床色情女圖片色情介紹色情分享片色情天室色情文小說少年阿賓系列小說言情小說免費線上閱讀 貼圖片區女同志聊天室

5:55 AM  
Blogger 明秋明秋 said...

很喜歡你的blog哦...加油唷 ........................................

10:18 PM  
Blogger 于雅慧毓 said...

要怎麼收穫,先怎麼栽。......................................................

5:01 AM  
Blogger 水慧 said...

Cool blog網愛聊天室色情網站交友找啦咧免費影片成人笑話成人圖庫sexy女同志聊天室愛戀情人用品情趣爽翻天咆哮小老鼠入口85cc6k脫衣人妻sexy85c脫光光taiwansex淫女情色成人男女做愛美女做愛脫衣秀a片正妹淫蕩色情後宮040185c85c77p2p77p2p性幻想手淫18禁

5:02 AM  
Blogger R110926oseH said...

cool blog,期待更新........................................

10:51 PM  
Blogger 裕以 said...

每一粒厄運的種子,卻包孕著未來豐盛的果實..............................

4:06 AM  
Blogger wilfredkdefilippo236 said...

台灣夫妻自拍做愛自拍照片打炮自拍貼圖夫妻自拍片免費a動畫交友內容同志聊天室ut同志線上看吊帶襪美女圖后工后宮無碼圭賢七年間的愛歌詞圭賢圖片好色貼片區如何延遲射精如何做愛持久如何做愛最爽如何讓女生舒服宅女的幸福生活同志性愛片同志色網站同志色文學交援妹伊莉討論區小說伊莉貼圖區伊莉影片網伊莉論台伊葉情貼片區伊葉情貼圖視訊聊天室 免費視訊 pc交友4u成人

4:53 AM  
Blogger 玄雨 said...

文章很棒~感謝!!..................................................

3:42 AM  
Blogger 俊宏 said...

I love readding, and thanks for your artical. ..............................

5:03 AM  
Blogger 姜姜 said...

很棒的分享~如有打擾之處,敬請原諒!.............................................

8:13 PM  
Blogger 子名子名 said...

失意人前,勿談得意事;得意人前,勿談失意事。........................................

5:05 AM  
Blogger 萱祥 said...

人不能像動物一樣活著,而應該追求知識和美德..................................................

6:52 PM  
Blogger 暴枝盈 said...

we‘re so proud of you!............................................................

5:24 AM  
Blogger 冠慧 said...

Keep in contact. Good Luck..................................................

1:08 AM  
Blogger 姜志銘 said...

知識可以傳授,智慧卻不行。每個人必須成為他自己。....................................................................

7:19 PM  
Blogger 家谷家谷 said...

死亡是悲哀的,但活得不快樂更悲哀。......................................................................

1:16 AM  
Blogger 明霖明霖 said...

當一個人內心能容納兩樣相互衝突的東西,這個人便開始變得有價值了。............................................................

6:11 PM  
Blogger 陳登陽 said...

人有兩眼一舌,是為了觀察倍於說話的緣故。............................................................

7:35 PM  
Blogger 吳婷婷 said...

rain before seven; fine before eleven.............................................................

12:50 AM  
Blogger 婉婷 said...

Practice what you preach.............................................................

12:19 AM  
Blogger 倍汝蔡倍汝 said...

Fancy may kill or cure...................................................

7:15 AM  
Blogger 楊儀卉 said...

你不能改變容貌~~但你可以展現笑容............................................................

8:15 PM  
Blogger 楊儀卉 said...

Make yourself necessary to someone.............................................................

4:40 AM  
Blogger 王美妹 said...

有用的才華若不用,便如同日晷儀放在陰暗之中............................................................

8:28 PM  
Blogger 淑娟淑娟淑娟 said...

要在憂患恥辱的環境裡,創造我們自力更生的新生活。..................................................

5:44 PM  
Blogger 曹彥均曹彥均 said...

做好事,不需要給人知道,雖然只是一件微不足道的事,但我相信,這會帶給我快樂。..................................................

7:16 AM  
Blogger 珍盈洪 said...

人應該做自己認為對的事,而不是一味跟著群眾的建議走。..................................................

12:53 PM  
Blogger 陳泓程怡文發 said...

吃飽了嗎?~~~還沒下班,好餓哦............................................................

6:49 PM  
Blogger 子吳吳豪 said...

打擾你實在不好意思, 你的blog很好看呢!!!!............................................................

5:18 PM  
Blogger 蔡曼鄭美玉屏 said...

你要保守你的心,勝過保守一切,因為一生的果效是由心發出................................................

4:03 AM  
Blogger 陳倩江陳倩江陳倩江 said...

愛情是盲目的,但婚姻恢復了它的視力。......................................................................

7:53 PM  
Blogger 秋協盛協盛昀 said...

感謝大大的無私分享 讓小弟獲益良多 終於知道網上還有這麼多的好東西≧▽≦"
............................................................

3:20 AM  
Blogger  said...

好看耶~一定每天有空給你支持............................................................

4:10 AM  
Blogger 翊翊翊翊張瑜翊翊翊 said...

這麼用心的經營你的文章, 當然值得我們留連拜訪的!...............................................................

3:04 PM  
Blogger 江趙雲虹趙雲虹仁昆 said...

卡爾.桑得柏:「除非先有夢,否則一切皆不成。」共勉!.................................................................

8:16 PM  
Blogger 薛雍 said...

感謝你的分享 要繼續發表好文章喔..................................................

6:01 AM  

Post a Comment

<< Home