[linux-mm-cc] Re: [lc-devel] Chunk list issues

Anderson Briglia briglia.anderson at gmail.com
Fri Jun 30 16:28:36 EDT 2006


Hi Nitin,

> On 6/28/06, Anderson Briglia <briglia.anderson at gmail.com> wrote:
> > > > 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?
> >
>
> Yes, but 'procedure' will be same as for transferring a page from a
> swap to any other swap: change it swp_entry_t to have 'type' for other
> swap and it will get written to this second swap.

What will be the factor that determines when/which page will be
migrated from vswap to real swap?

How the chk->count is increased or decreased? Is this count related to
page->_count?

Cheers,

Anderson Briglia


More information about the linux-mm-cc mailing list