[lc-devel] LZO to kernel mode
Status: Beta
Brought to you by:
nitin_sf
From: Nitin G. <nit...@gm...> - 2006-06-09 03:02:07
|
Hi All, Just finished porting LZO (ver 2.02) to kernel mode. The attached file is a kernel module (compress-test) that I created to test these kernel ports of de/compression algorithms. This module has been much refined since it was last posted. Now, two algos are ported - LZO and WKdm (WK4x4 also soon). You can test both of them using this module. It creates 3 /proc entries: /proc/compress-test/{compress, decompress, algo_idx}. --------------------- * In short: Write to /proc/compress-test entries: 1. compress: compress data witten to it and store in internal buffer. 2. algo_idx: write index of algo you want to test (0: WKdm, 1: LZO) Read from /proc/compress-test entries: 1. compress: show original and compressed size (TODO: add other stats like time taken too) 2. decompress: decompress compressed data stored in internal buffer. 3. algo_idx: shows list of algos supported with their index. ---------------------- * commited these two algos to CVS in linux26/lib/{WKdm, LZO} * linux-mm.org/CompressedCaching/Code page has been updated -- this module (with both these algos) is available there. * TODO Next: get virt swap actually working. Cheers, Nitin Gupta |