From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Smith Subject: Benchmark : ext3 vs reiser4 and effects of fragmentation. Date: Thu, 16 Sep 2004 06:02:54 +0800 Message-ID: <4148BC0E.5010509@willsmith.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: reiserfs-list@namesys.com I've spent the last 2 days coding and running benchmarks on the effects of fragmentation on both ext3 and reiser4 performance. Explanation and source code is at http://www.willsmith.org/opensource/reiser4/fragperf/ Results and graphs are at http://www.willsmith.org/opensource/reiser4/fragperf/test1/ Dataset is a kernel source (~200Mb) in a small 350Mb partition, with random deletes, copies and overwrites to cause fragmentation. In conclusion: 1) reiser4 is slightly faster than ext3 in some cases, but much faster in others (no surprise). However, deletes are slightly slower. 2) ext3 degrades badly from fragmentation when running ordered (non-random) access patterns. reiser4 also degrades but not as much. 3) the repacker can bring performance of reiser4 back to full speed, but only if run several times. 4) the repacker is not yet stable - I had to run fsck a few times after repacking, and once got a kernel stack trace during repacking resulting in an un-unmountable filesystem. I'll gladly rerun with different parameters and/or change the script if requested. Will Smith