mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Squashfs 4.0 performance benchmark
@ 2009-06-08 14:05 Wenqiang Song
  0 siblings, 0 replies; only message in thread
From: Wenqiang Song @ 2009-06-08 14:05 UTC (permalink / raw)
  To: linux-kernel

[-- 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¥

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-08 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08 14:05 Squashfs 4.0 performance benchmark Wenqiang Song

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®