]> git.baikalelectronics.ru Git - kernel.git/commit
squashfs: Enhance parallel I/O
authorMinchan Kim <minchan@kernel.org>
Mon, 28 Oct 2013 05:26:30 +0000 (14:26 +0900)
committerPhillip Lougher <phillip@squashfs.org.uk>
Wed, 20 Nov 2013 03:35:18 +0000 (03:35 +0000)
commit69a16a3240c5ee62907c8ffe5549192ee44260a8
tree10c3dca3e50bdc1f58f025f02cd85a2bfd8d3420
parent1a932117fc0c2592ef9f2416990169e530d3a32b
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: Minchan Kim <minchan@kernel.org>
Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
fs/squashfs/Kconfig
fs/squashfs/Makefile
fs/squashfs/decompressor_multi.c [new file with mode: 0644]