Re: Fixed at last!

Martin Steigerwald <[email protected]> Mon, 2 Jul 2012 11:41:21 +0200
Newsgroups gmane.linux.swsusp.devel
Message-ID <[email protected]>
Am Freitag, 1. Juni 2012 schrieb Nigel Cunningham:
> Hi all.

Hi Nigel!

> I thought you might like to hear some good news.
> 
> I finally found some time to put a concerted effort into finding and
> fixing the cause of TuxOnIce not working with the BFS scheduler. The
> issue turned out, I think, to be the same one that's been causing those
> pesky occasional failures to read compressed data (the -22 error).

Oh, the infamous -22 error fixed at last? I took this as occasion to try 
TOI again.

Thanks a lot for your effort!

> And the outcome:
> 
> TuxOnIce debugging info:
> - TuxOnIce core  : 3.2.1
> - Kernel Version : 3.2.13+
> - Compiler vers. : 4.7
> - Attempt number : 1
> - Parameters     : 0 667661 0 1 -2 0
> - Overall expected compression percentage: 0.
> - Compressor is 'lzo'.
>    Compressed 1095974912 bytes into 261283523 (76 percent compression).
> - Block I/O active.
> - Max outstanding reads 1866. Max writes 3449.
>    Memory_needed: 1024 x (4096 + 352 + 112) = 4669440 bytes.
>    Free mem throttle point reached 0.
> - Swap Allocator enabled.
>    Swap available for image: 2097151 pages.
> - File Allocator active.
>    Storage available for image: 0 pages.
> - I/O speed: Write 782 MB/s, Read 1061 MB/s.
> - Extra pages    : 74 used/2000.
> - Result         : Succeeded.
> nigel@nigel:~$
> 
> Those astoundingly big speeds are due to this being an Intel 520 SSD on
> a quad-core laptop. I don't usually get a GB/s. More like about
> 900MB/s. This is having just booted - no real apps loaded.
> 
> Patches being applied to git trees now, and will be pushed to github
> shortly. Hopefully I'll also get some patches up on tuxonice.net soon.

Running now just to try it again and whether it will still be faster than 
in-kernel suspend for my ThinkPad T520. And wow! Its fast. Although I do 
not seem to get performance numbers:

[  508.004811] TuxOnIce debugging info:
[  508.004811] - TuxOnIce core  : 3.2.1
[  508.004811] - Kernel Version : 3.5.0-rc4-tp520-toi-3.2.1+
[  508.004811] - Compiler vers. : 4.7
[  508.004811] - Attempt number : 2
[  508.004811] - Parameters     : 0 663552 0 0 -2 5
[  508.004811] - Overall expected compression percentage: 0.
[  508.004811] - Checksum method is 'md4'.
[  508.004811]   0 pages resaved in atomic copy.
[  508.004811] - Compressor is 'lzo'.
[  508.004811]   Compressed 3551035392 bytes into 1137003134 (67 percent 
compression).
[  508.004811] - Block I/O active.
[  508.004811]   Used 281046 pages from swap on /dev/dm-1.
[  508.004811] - Max outstanding reads 1. Max writes 0.
[  508.004811]   Memory_needed: 1024 x (4096 + 368 + 128) = 4702208 bytes.
[  508.004811]   Free mem throttle point reached 0.
[  508.004811] - Swap Allocator enabled.
[  508.004811]   Swap available for image: 3145727 pages.
[  508.004811] - File Allocator active.


The line with I/O speed is missing here. With an SATA 300 based Intel SSD 
320 it won´t be that fast as with your SATA 600 based Intel SSD 510, but 
still I like to see whether it exceeds the 280-380 MB/s I get with in-
kernel-suspend.

(Using pm-utils with SLEEP_MODULE="tuxonice" and tuxonice-userui for the 
moment, cause it integrates well with KDE Solid susped/hibernate 
functionality)

Ciao,
-- 
Martin 'Helios' Steigerwald - http://www.Lichtvoll.de
GPG: 03B0 0D6C 0040 0710 4AFA  B82F 991B EAAC A599 84C7