Re: Suspend 2 merge

From: Pavel Machek (pavel_at_ucw.cz)
Date: 11/29/04

  • Next message: Rui Nuno Capela: "Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7"
    Date:	Mon, 29 Nov 2004 14:03:36 +0100
    To: Nigel Cunningham <ncunningham@linuxmail.org>
    
    

    Hi!

    > > > > My machine suspends in 7 seconds, and that's swsusp1. According to
    > > > > your numbers, suspend2 should suspend it in 1 second and LZE
    > > > > compressed should be .5 second.
    > > >
    > > > Seven seconds? How much memory is in use when you start, and how much is
    > > > actually written to disk? If you're starting with 1GB of RAM in use,
    > > > I'll sit up and listen, but I suspect you're talking about something
    > > > closer to 20MB and init S :>
    > >
    > > It was on .5GB machine, with X running, IIRC. Specify how should I
    > > load the system and I'll try it here. swsusp1 got some speedups with
    > > O(n^2) killing (not yet merged).
    >
    > So it wrote .5GB of memory in seven seconds, or started with .5GB of RAM
    > in use?

    Machine had .5GB total, not surehow much was really used.

    > If we want to compare apples with apples, we're going to have to make
    > the only difference which code is run. A normal load on my computer is
    > evolution, cyrus imapd, opera, win4lin running Libronix and a kernel
    > tree in the cache (last image sizes were 1000, 1002, 995, 949 and
    > 910MB). I'm happy to run your sped-up code for some tests, if you'd
    > like. You know where to find mine if you want to make sure I'm not
    > cheating :>

    Okay, I started galeon (no opera here :-(), evolution, xpdf,
    oowriter. Well, it is not going to be too much "apples-to-apples"
    since swsusp1 cheats and discards caches (etc). Machine has 1GB memory
    total, before suspend attempt 800MB were in use. Suspend took 20
    seconds, after resume (and some swap-in) 250MB was in use.

    > > > These discussions are getting really unreasonable. "I don't want that
    > > > feature, therefore it shouldn't be merged" isn't a valid argument.
    > > > Neither is "Well, I can suspend in seven seconds with hardly any memory
    > > > in use." If you just don't want suspend2 in the kernel, come out and say
    > > > it.
    > >
    > > Ok, "I do not want suspend2 in kernel". Not what you'd call suspend2,
    > > anyway. I thought that stripping down suspend2 then merging it is
    > > reasonable way to go, but now it seems to me that enhancing swsusp1 is
    > > easier way to go. At least I'll be able to do it incrementally.
    >
    > You'll be able to do that within limits, but once you do seriously given
    > up on the max-half-of-memory limit, you'll need some major redesigning.
    > If that's the way you want to go, okay. Assuming nothing else changes,

    I'm not sure if I want to do full page-cache saving (and without that,
    half-of-memory limit does not bite too badly). "Everything is swapped
    out" problem is actually not limited to swsusp, updatedb overnight
    tends to have the same effect. Perhaps more generic solution is
    needed...

    cat `cat /proc/[0-9]*/maps | grep / | sed 's:.* /:/:' | sort -u` > /dev/null

    does solve part of the problem. (Another problem is how to actually
    measure improvements in this area).
                                                                    Pavel

    -- 
    People were complaining that M$ turns users into beta-testers...
    ...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Rui Nuno Capela: "Re: Real-Time Preemption, -RT-2.6.10-rc2-mm3-V0.7.31-7"

    Relevant Pages

    • Re: 2.6.9-rc2-mm1 swsusp bug report.
      ... > It is easy to lose sight of the user perspective on these things if all ... > sprinkling the code with panics, ... never fails to suspend and is in Linus' tree. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: swsusp disk fails in bk-current - intel_agp at fault?
      ... You are right, for resume-during-suspend, we may as well risk it. ... > suspend and Nigel's partial device trees) would be so much ... :-) I think we can simply make device freeze/unfreeze fast enough. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Screwy clock after apm suspend
      ... something wanting timeout of five minutes, then suspend one minute ... machine sleeps for a hour. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [lhcs-devel] Re: [PATCH][2.6-mm] i386 Hotplug CPU
      ... we steer the APs straight into the offline cpu ... I do not understand what AP and BSP means in this context. ... we can just shut those cpus down on suspend and completely boot ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)