Re: uswsusp history lesson [was Re: [Suspend2-devel] Re: swsusp / suspend2 reliability]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

> > We have kswapd frozen, hooks to stop other processes trying to free memory 
> > (yes, I'm going to switch to your method of taking the pages off the lists), 
> > and userspace processes are frozen or their pages are excluded from the list.
> > 
> > > However, if we are sure that we can use LRU pages as additional storage in
> > > b), they just can be included in the memory image without copying
> > > and we only need some extra room for the other data and code.
> > > If LRU pages take 50% of memory, this would allow us to create
> > > a signle snapshot image as big as 75% of RAM (on x86_64).  IMO the
> > > remaining 25% are not worth the increased complexity of suspend2,
> > > especially that on 1 GB machine 75% of RAM is too much to save
> > > for performance reasons (ie. the extra time you save by making the
> > > system more responsive after resume is lost for saving and restoring
> > > the image, even if compression is used).
> > 
> > It's only too slow on swsusp. With Suspend2, I regularly suspend 1GB images on 
> > both my desktop and laptop machines. I agree that it might be
> > slower on a 

uswsusp is as fast as suspend2. It does same LZF compression.

> > > Furthermore, I tried to measure how much time would actually be saved if
> > > the images were greater than 50% of RAM (current swsusp's limit) and it
> > > turned out to be 10% at the very last, with compression (on a 256MB box
> > > with PII).
> > 
> > I think you'll find that this depends very much on the kind of workload you 
> > have, and how you try to compare apples with apples. If you're running lots 
> > of memory intensive apps (say VMware with a couple of hundred meg allocated, 
> > Open Office writer, Kmail, a couple of terminals and so on - I'm just 
> > describing what I normally run), you'll miss that extra memory more.

Do you think you could get some repeatable benchmark for Rafael? He
worked quite hard on feature only to find out it makes little difference...

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux