Re: [lc-devel] Compressing a page using WKdm
Status: Beta
Brought to you by:
nitin_sf
From: Nitin G. <nit...@gm...> - 2006-06-09 08:35:02
|
Hi Briglia, > I have been trying to compress a page using that WKdm code from > project's CVS. But, something is wrong because the system hangs after > some compression/decompression pages. I'm using this interface: > > to compress "original_page": > > int len; > len = WKdm_compress(page_address(original_page), page_address(comp_page), 1024); > memcpy(page_address(original_page), page_address(comp_page), len); > > to decompress: > > WKdm_decompress(page_address(original_page), page_address(decomp_page), 1024); > memcpy(page_address(original_page), page_address(decomp_page), PAGE_SIZE); > > Is needed to do some padding? I saw at compress_test module that the > comp_data is filled with 0's after the compression. Is it necessary? Yes, WKdm only works when input is exactly 1024 words. Are you compressing pages with less than page-full of data and still without padding? Cheers, Nitin |