mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wenqiang Song <wsong.cn@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Squashfs 4.0 performance benchmark
Date: Mon, 8 Jun 2009 22:05:00 +0800	[thread overview]
Message-ID: <6f9b6d3e0906080705g3692f1b7l9c75322633ea6d29@mail.gmail.com> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 2729 bytes --]

Hi folks,
I just did a performance test on Squashfs 4.0, similar to this one:http://www.celinuxforum.org/CelfPubWiki/SquashFsComparisons
The result is quit good. But I don't understand why performance isbetter on a loop back file than raw partition.
My test machine:AMD Sempron(tm) Processor LE-1200, 2G memory
Ext4 uncompressed data: 2887704KSquashfs 4.0 Image: 1256892K, generate by "mksquashfs . test.squash"
2.1.1 Directory Lookup performanceTime taken to perform "ls -lR --color=alawys | cat > /dev/null" onfilesystem mounted
First time, Ext4real    0m13.896suser    0m3.556ssys     0m4.436s
Second time, Ext4real    0m6.700suser    0m2.676ssys     0m2.816s

First time, Squashfs on raw partitionreal    0m9.850suser    0m2.268ssys     0m6.712s
Second time, Squashfs on raw partitionreal    0m4.487suser    0m2.096ssys     0m2.392s

First time, Squashfs loop back file on an Ext4 partition.real    0m8.356suser    0m2.104ssys     0m6.112s
Second time, Squashfs loop back file on an Ext4 partition.real    0m5.112suser    0m2.116ssys     0m2.992s
---------------------------------------------------------------------------------------------2.1.2 Sequential I/O performance
Time taken to perform "tar cf - | cat > /dev/null" on filesystem mounted
Ext4real    5m28.694suser    0m3.816ssys     0m29.966s

Squashfs on raw partitionreal    1m23.226suser    0m2.416ssys     1m2.680s

Squashfs loop back file on an Ext4 partition
real    0m53.867suser    0m1.820ssys     0m42.611s

--------------------------------------------------------------------------------------------2.1.3 Random I/O performanceRandom access pattern generated by find . -type f -printf "%s %p\n" |sort -g | awk '{ print $2 }' > /tmp/sort
First time, Ext4real    33m21.603suser    0m5.724ssys     0m33.734s
Squashfs on raw partitionreal    7m35.962suser    0m4.192ssys     5m40.973s
Squashfs loop back file on an Ext4 partitionreal    5m33.566suser    0m3.316ssys     4m47.942s
----------------------------------------------same test with 256M memorySquashfs on raw partitionreal    10m25.518suser    0m4.432ssys     6m41.133s
Squashfs loop back file on an Ext4 partitionreal    11m0.271suser    0m5.156ssys     6m59.942s

Wenqiang Song
--有志者,事竟成,破釜沉舟,百二秦关终属楚苦心人,天不负,卧薪尝胆,三千越甲可吞吴ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

                 reply	other threads:[~2009-06-08 14:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6f9b6d3e0906080705g3692f1b7l9c75322633ea6d29@mail.gmail.com \
    --to=wsong.cn@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®