Re: [lc-devel] Chunk list issues
Status: Beta
Brought to you by:
nitin_sf
From: Anderson B. <bri...@gm...> - 2006-06-28 12:33:48
|
Hi Gupta, > > I have a doubt related to chunk operations: > > > > - I guess you will use the virtual swap as the compressed cache for > > anon pages, right? If yes, how will you swapin/swapout chunks? If a > > single chunk points to a portion of a physical page, and the > > swapin/swapout operations handle entire pages of data. > > Yes, vswap is for anon pages. I think you are mistaken somewhere...I'm not using > bio structs or anything to swapin/out pages from vswap. Ok. Will be possible to transfer pages from vswap to a 'real' swap area? > So, for swap out: Get enough free chunks from free list and store compressed > page in them. And the free chunks will point to pages inserted into the vswap memory area? So, all chunks are allocated using the vswap area? > And, for swap in: chunk_head->chunk_list gives to first chunk and chunks are > linked. So, you can get data from all these chunks, (maybe) collect them in a > page, decompress it and return to caller. > > I have started implementation for this compression structure and post when its > ready. This should also reveal possible problems which I don't see now. Cheers, Anderson Briglia |