On Monday, 25 September 2006 10:40, Pavel Machek wrote: > Hi! > > > > > > If you want to do it _right_, write timing info onto disk, then read > > > > > it from there. That will not slow the user down, while still telling > > > > > them nice statistics when resume is done. Hmmm? > > > > > > > > where? there's no fs mounted. Is there a place to put it in the swap > > > > that won't interfere with anything even after resume? I'll have to look > > > > at the disk format for swap. > > > > > > Just place it into swap header. uswsusp has to rewrite it with > > > "original" swap header, so just do it in two phases. > > > > But please remember that the swap header consists only of one page. ;-) > > > > Besides, it gets overwritten before the atomic restore, so it would be > > quite tricky to transfer the benchmark data to the "restored" suspend. > > I do not see the problems: > > before suspend, swap header says "this is swapspace" > suspend image is written, header says "this is image, suspend time was > 5 seconds" > then comes powerdown, powerup, reading image, and its overwrite with > "this is swapspace" > then comes atomic restore > > So let's do: > > before suspend, swap header says "this is swapspace" > suspend image is written, header says "this is image, suspend time was > 5 seconds" > then comes powerdown, powerup, reading image, and its overwrite with > "this is almost swapspace, suspend time was 5 seconds, resume time was > 3 seconds" > then comes atomic restore
and now it's _expected_ to be swap space. Greetings, Rafael -- You never change things by fighting the existing reality. R. Buckminster Fuller ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel