Re: [PATCH]: In kernel hibernation, suspend to both

From: Borislav Petkov
Date: Tue Jun 19 2012 - 10:21:30 EST


On Tue, Jun 19, 2012 at 12:09:57PM +1000, Bojan Smojver wrote:
> On Mon, 2012-06-18 at 23:28 +0200, Rafael J. Wysocki wrote:
> > I think I'd prefer a full status line every 10%. Or even maybe every
> > 20%.
>
> Here is one that does a line every 10%:

Yep, here's the output:

[ 168.703731] PM: thaw of devices complete after 1474.836 msecs
[ 168.713213] PM: Using 1 thread(s) for compression.
[ 168.713213] PM: Compressing and saving image data (75028 pages)...
[ 168.713497] PM: Saved 0%...
[ 169.440467] PM: Saved 10%...
[ 169.775404] PM: Saved 20%...
[ 170.143273] PM: Saved 30%...
[ 170.677134] PM: Saved 40%...
[ 171.430144] PM: Saved 50%...
[ 172.279117] PM: Saved 60%...
[ 173.046114] PM: Saved 70%...
[ 173.581322] PM: Saved 80%...
[ 174.088198] PM: Saved 90%...
[ 174.584271] PM: Saved 100%...
[ 174.612895] PM: Saving image done.
^^^^^^^^^^^ This one is probably not needed - we say 100% in the line above.

[ 174.614692] PM: Wrote 300112 kbytes in 5.90 seconds (50.86 MB/s)

And then the "Saved %d%%... " could probably issue on a single line using
KERN_CONT (or what was it now with the new printk changes?):

PM: Saving image: 10%... 20%... 30%... ... 100%.
PM: Wrote 300112 kbytes in 5.90 seconds (50.86 MB/s)

which, on the whole, is nice and compact and still contains the whole
info.

Thanks.

--
Regards/Gruss,
Boris.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/