Hi. On Thursday 09 February 2006 23:22, Rafael J. Wysocki wrote: > > > I've begun briefly to have a look at this. > > > > > > Part of the problem I have, both with doing incremental patches for > > > swsusp and with doing a userspace version, is that some of the > > > fundamentals are redesigned in suspend2. The most important of these is > > > that we store the metadata in bitmaps (for pageflags) and extents (for > > > storage) instead of pbes. Do you have thoughts on how to overcome that > > > issue? Are you willing, for example, to do work on switching swsusp to > > > use a different method of storing its data? > > > > Any changes to userspace are a fair game. OTOH kernel provides linear > > image to be saved to userspace, and what it uses internally should not > > be important to userland parts. (And Rafael did some changes in that > > area to make it more effective, IIRC). > > Yes. The code is now split into the part that handles the snapshot image > (in snapshot.c) and the part that writes/reads it to swap (in swap.c). [I'm > referring to recent -mm kernels.] > > The access to the snapshot image is provided via the functions > snapshot_write_next() and snapshot_read_next() that are called by the > code in swap.c and may be used by the user space tools via the > interface in user.c. In principle it ought to be possible to plug > something else instead of the code in snapshot.c without > breaking the rest. So, what is the answer then? If I submitted patches to provide the possibility of separating LRU pages into a separate stream of pages to be read/written, would it have any chance of getting merged? (Along with other patches to make writing a full image of memory possible). Regards, Nigel -- See our web page for Howtos, FAQs, the Wiki and mailing list info. http://www.suspend2.net IRC: #suspend2 on Freenode
Attachment:
pgpdVSrwuMNgp.pgp
Description: PGP signature
- Follow-Ups:
- References:
- [ 00/10] [Suspend2] Modules support.
- From: Nigel Cunningham <[email protected]>
- Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- From: Pavel Machek <[email protected]>
- Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- From: "Rafael J. Wysocki" <[email protected]>
- [ 00/10] [Suspend2] Modules support.
- Prev by Date: Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- Next by Date: Re: [PATCH] mm: Implement Swap Prefetching v22
- Previous by thread: Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- Next by thread: Re: Which is simpler? (Was Re: [Suspend2-devel] Re: [ 00/10] [Suspend2] Modules support.)
- Index(es):