Skip to content
Commit cd59c2ec authored by Minchan Kim's avatar Minchan Kim Committed by Phillip Lougher
Browse files

squashfs: Enhance parallel I/O



Now squashfs have used for only one stream buffer for decompression
so it hurts parallel read performance so this patch supports
multiple decompressor to enhance performance parallel I/O.

Four 1G file dd read on KVM machine which has 2 CPU and 4G memory.

dd if=test/test1.dat of=/dev/null &
dd if=test/test2.dat of=/dev/null &
dd if=test/test3.dat of=/dev/null &
dd if=test/test4.dat of=/dev/null &

old : 1m39s -> new : 9s

* From v1
  * Change comp_strm with decomp_strm - Phillip
  * Change/add comments - Phillip

Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
Signed-off-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
parent 9508c6b9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment