On Wednesday, 15 August 2007 18:43, Luca wrote:
> On 8/15/07, Rafael J. Wysocki <[EMAIL PROTECTED]> wrote:
> > 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?
> 
> That syscall is new (sort of), your libc doesn't support it yet. This
> issue came up last year too, look at swsusp.h (start_writeout) to see
> how it's currently handled (support for PPC is lacking btw...).

Ah, I see thanks.

Rafael

-------------------------------------------------------------------------
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

Reply via email to