You are not logged in.

#1 2008-06-20 14:56:02

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 124

Slow hibernate, pm-utils

Pm-hibernate works fine but... system starts from swap in ~40 seconds. Normal system start takes 20-30 seconds. I can see 2 problems:
- pm-ulils safe disk cache to swap, which takes ~50-70% of RAM!
- only ~16Mb/s in read. I think, that my HDD in Thinkapd T42 is a little faster...

Any ideas how to fix this?

Offline

#2 2008-06-20 15:22:21

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Slow hibernate, pm-utils

Buy a faster harddrive?


What is the RPM of your current drive?

How much RAM do you have?

Offline

#3 2008-06-20 15:38:02

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 124

Re: Slow hibernate, pm-utils

It is laptop, so 5400 RPM.

1024MB ram + 2048MB swap. When I made hibernate I used ~100MB for programs and ~180MB HDD cache.

Is pm-utils check data when it load data from swap?
Is it possible, to do not write cache from ram do hdd?

Offline

#4 2008-06-20 16:49:50

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Slow hibernate, pm-utils

dext wrote:

It is laptop, so 5400 RPM.

There are 7200 and 4800 RPM drives also . . .

dext wrote:

Is pm-utils check data when it load data from swap?

I am assuming that pm-utils would check the data before reloading it.


Looks like my laptop:

25 Second resume from Hibernate
22 Second boot (loading cups, hal, wicd, alsa, and mpd)

So  . . . 12% +/- time difference.

What programs are you running when hibernating?

Offline

#5 2008-06-20 17:11:51

mini
Member
Registered: 2006-12-18
Posts: 138

Re: Slow hibernate, pm-utils

I have had the same problem.
Now I do not use hibernate
My laptop HP6910p , 3GB RAM

Offline

#6 2008-06-20 18:18:46

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: Slow hibernate, pm-utils

My laptop needs about the same time to boot and to resume from hibernation (about 50 secs to a fully usable graphical environment in both cases).


arch(3) adj amused because you think you understand something better than other people ;P

Offline

#7 2008-06-20 20:23:41

timetrap
Member
From: Here and There
Registered: 2008-06-05
Posts: 342
Website

Re: Slow hibernate, pm-utils

Yeah, the times I quoted were to a login prompt, I don't use a login manager, so it's pretty fast for me.

Offline

#8 2008-06-21 16:06:13

dext
Member
From: Poland, Kraków
Registered: 2008-02-01
Posts: 124

Re: Slow hibernate, pm-utils

sync
echo 1 > /proc/sys/vm/drop_caches
pm-hibernate

Wakes up in 24s.

Offline

#9 2008-06-21 17:05:02

JeremyTheWicked
Member
From: Poland
Registered: 2008-05-23
Posts: 193

Re: Slow hibernate, pm-utils

@dext: A really cool hack. My computer wakes up in 30s now (it was more like 50-60s before).

A suggestion: if you want pm-hibernate to use this hack automatically (e.g. when you hibernate from a Gnome menu etc.) you can create a file under /etc/pm/sleep.d/ that takes care of that.

Eg., create /etc/pm/sleep.d/drop_caches with this content:

#!/bin/bash

if [ "$1" = "hibernate" ]; then
  sync 
  echo 1 > /proc/sys/vm/drop_caches
fi

Make sure it's owned by root and has permissions set to 755 and voila.

Edit: I added an if clause so that it only gets invoked before hibernation and not upon wakeup or suspend.

Last edited by JeremyTheWicked (2008-06-21 17:21:32)


arch(3) adj amused because you think you understand something better than other people ;P

Offline

Board footer

Powered by FluxBB