View previous topic :: View next topic |
Author |
Message |
boris_qd Apprentice

Joined: 29 Aug 2005 Posts: 158 Location: Bonn/Germany
|
Posted: Sat Nov 01, 2008 5:02 pm Post subject: Lazy Disk sync on Laptop |
|
|
I have a laptop and was wondering if there was a way to configure lazy disk sync - meaning that it wouldn't sync to disk unless absolutely necessary - which since i have 2GB of memory and I never use swap would mean mostly when shutting down or switching large programs (say when closing firefox and opening open office).
Mostly i'm using firefox and would be happy if it never wrote the cache, streamed files etc. to disk (since i delete them anyway when i quit).
I'm interested in preserving the battery as well as the disk. I am not concerned about data corruption.
So - any ideas on how to set this up?
Boris |
|
Back to top |
|
 |
zAfi Apprentice


Joined: 08 Aug 2006 Posts: 220 Location: Austria
|
Posted: Mon Nov 03, 2008 10:59 am Post subject: |
|
|
use laptop-mode-tools and configure it properly. This increases battery life time a lot (assuming proper config).
For the disk I use hdparm in the default/battery runlevel (google: gentoo power management guide), because I ran into that weird spin-up-kill-disk-bug.
/etc/conf.d/hdparm: | # /etc/conf.d/hdparm: config file for /etc/init.d/hdparm
# You can either set hdparm arguments for each drive using hdX_args,
# discX_args, cdromX_args and genericX_args, e.g.
#
# hda_args="-d1 -X66"
# disc1_args="-d1"
# cdrom0_args="-d1"
sda_args="-q -S 200 -q -B 200"
# or you can set options for all PATA drives
pata_all_args="-d1"
# or you can set options for all SATA drives
sata_all_args=""
# or, you can set hdparm options for all drives
all_args=""
|
and you should change the vm.swappiness value (I use 20), so the system tries to free some RAM before writing to swap. (quick google: http://www.chinwong.com/index.php/site/comments/ubuntu_speed_up_tips/ First tip!)
GL _________________ Gentoo 2008.0/desktop | Kernel: 2.6.27-tuxonice | Arch: amd64 | KDE 3.5.9 | WU Wien |
----------
Share your kernel information @ http://klive.cpushare.com/ |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|