How ZFS's version of RAID-5 can be better than normal RAID-5

ZFS's 'raidz' and 'raidz2' storage methods are single and dual parity,but they are not exactly the same as normal RAID-5 and RAID-6. Thedifference is in how each handles partial stripe writes, such as whathappens when you write only a small amount to disk.

In a conventional RAID implementation, a partial write to a stripe alsohas to update the parity, which means additional disk IO (at least adisk read and a disk write). Even if this


聯署

飄流歲月,團聚無期——居港權十年爭取

(有一個很長很長的故事,請到連結去看。你按過去之後發現的並不是故事,但這就是故事流傳的方式之一。)

我們要求:
1.在每天150人的單程證配額中,加設港人在內地的成年子

Speed surprises in reimplementing the .find() string method

In yesterday's entry , I mentioned that Iwas surprised by the relative performances of my three reimplementationsof the .find() string method.

The src[i:].startswith(sub) version was the slowest, and why isobvious in hindsight: it's summed up clearly in the first bit, where wecreate a big new string ( src[i:] ) on every iteration of the loop. Nowonder it's slow; creating big strings is slow in general, because


全方位批鬥大會

全方位批鬥大會

Keith之所以在公司裡犯眾憎,除了因為他但求就手而搞女秘書,還因為他是女皇的親信,奸的。女皇為了鞏固勢力,鏟除異己,於是收了Keith為公公,專門混進同事當中收風。譬如早前有女同事踢爆女皇打Botox,Keith知道

唔知自己想點, 淨係知自己唔想點

下文涉及個人情緒, 以部份廣東話寫出.

「唔知自己想點, 淨係知自己唔想點」, 確是現今廿零歲人既做人態度. 因為好多野唔到自己話事, 唔夠膽主宰自己命運, 無能力改變現狀之下, 只好退一步令自己唔會太輸蝕. 我係其中

An illustration of the speed advantage of Python builtins

As a followup to my entry on the two sorts of languages , I decided to actually tryimplementing the string .find() method in Python to see how muchslower it is. The Python version uses the brute force C style approach,roughly:

for i in range(0, len(src)-len(sub)+1):    if src[i:i+len(sub)] == sub:       return ireturn -1

I actually did three versions, each with a different


20080229 網摘 – 側側膊之國際影業

Fansite

HK


少扣帽子,再談spin doctor

搞文學的人最怕重複,重複是因為被扭曲和無回應。扣帽子和假溝通的麻煩在於,它令所有的東西重複。不少人search「spin doctor,spin doctor」到此,大概很難接受世上真有人這樣姓屈,光天化日把人家沒說過的話塞到人家口裡。 spin doctor, spin doctor

My likely Firefox 3 extensions

My current personal version of Firefox is more than a little bit behindthe times, so I've been looking at upgrading to Firefox 3 (I compilemy own version with various hacks, and it's easiest to build from thebleeding edge CVS sources). As a result, I spent part of today tryingvarious of my essential extensions to see which ofthem still work.

Here's the current state of affairs:

  • NoScript has beenupdated for the current Firefox 3 beta and works fine. It'

書報攤

(圖片來自 HKStories

這一陣子都沒有看別的漫畫,只買現在以潮珍版重出的《超霸世紀》,不是特別好看,只是一份情意結。這本書是逢星期三出版的,也算蠻搶手,因為書報攤對這些「經典書」,不會入很大量貨,通常都只會有四至