On Wednesday, 15 August 2007 17:20, Couriousous wrote: > Hello > > Le mercredi 15 août 2007, Rafael J. Wysocki a écrit : > > Hi, > > > > On Saturday, 11 August 2007 00:32, Couriousous wrote: > > > Hello > > > > > > Here is an easy way to speed up the image writing. It simply tell the > > > kernel to immediatly start writing the data to disk asynchronously and > > > not to do the traditional buffering. > > > > > > Mesurement: > > > System: pentium D820, Harddisk ~58Mo/s, image size 500Mo > > > Time of suspend to disk, average of 3 run. > > > > > > Compression enabled: > > > Without patch: 35 sec. > > > With patch: 27 sec. > > > Speedup: 22% > > > > > > Compression disabled: > > > Without patch: 17 sec. > > > With patch: 14 sec. > > > Speedup: 18% > > > > OK, thanks. > > > > Still, I think we should only sync if we have called write(), no? > > > > Yes, you're right, even if a lseek failing at this stage is pretty uncommon.
I have problems with compiling it on openSUSE 10.2 due to a linking failure: cc -g -I/usr/local/include -DS2RAM -O2 -Wall -DCONFIG_COMPRESS -DCONFIG_ENCRYPT vt.o md5.o encrypt.o config.o loglevel.o splash.o bootsplash.o suspend.c -o s2disk -L/usr/local/lib -llzf -L/usr/lib64 -lgcrypt -L/usr/lib64 -lgpg-error /tmp/ccLdqLq2.o: In function `write_area': /home/rafael/src/utilities/suspend/suspend.c:243: undefined reference to `sync_file_range' collect2: ld returned 1 exit status Any ideas? ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Suspend-devel mailing list Suspend-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/suspend-devel