Re: Fighting for the power.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Peter Jeremy
Date: Tuesday, May 5, 2009 - 2:19 am

On 2009-May-04 06:19:36 +0300, Alexander Motin <mav@freebsd.org> wrote:

Yes, but a tickless kernel will let the CPU stay asleep for longer
since it doesn't need to wake up just to discover there's nothing
to do.


I've recently (in the last few days) worked through minimising the
write activity on the SSD in my laptop (I wrote a tool that monitors
write transfers via devstat(3) and it would be possible to track down
the actual modified files via kqueue(2) if necessary).  I'm now down
to about two chunks of about 13 transfers each per hour (due to entopy
saving and ntp.drift updating).  The changes I made were:
1) Mount the SSD filesystems as noatime
2) Turn off all local syslogging (syslog is directed to another
   system when my laptop is at home, lost otherwise).
3) Change maillog rotation to size instead of daily
4) Run save-entropy once per hour instead of every 11 minutes.
5) Patch the save-entropy script to reduce the write load when
   it's run (see PR bin/134225).
6) Use a swap-back /tmp

By default, ntpd updates ntp.drift every hour.  I might do some
monitoring and see if the drift changes significantly over time.  If
it doesn't, hard-wiring the ntp.drift file will save some writes.
(The other option would be to tweak the relevant timecounter until the
actual drift is 0 and then stop ntpd and just run something like
ntpdate regularly to compensate for the remaining drift).

Experimentation shows that firefox3 generates a fairly heavy write
load - continuously updating several internal databases whilst it
is in use.  Turning off the "Block reported attack sites" and
"Block reported web forgeries" options under 'Security' stops it
updating urlclassifier3.sqlite.

Note that when you update a file, you implicitly update the associated
inode and the filesystem superbock.


I'd recommend avoiding a heavyweight window manager and using
something like fwvm or vtwm.

--=20
Peter Jeremy
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Fighting for the power., Alexander Motin, (Sun May 3, 3:18 pm)
Re: Fighting for the power., Nate Lawson, (Sun May 3, 4:32 pm)
Re: Fighting for the power., Adam McDougall, (Sun May 3, 6:14 pm)
Re: Fighting for the power., Alexander Motin, (Sun May 3, 8:19 pm)
Re: Fighting for the power., Alexander Motin, (Sun May 3, 8:45 pm)
Re: Fighting for the power., Hans Petter Selasky, (Mon May 4, 12:26 am)
Re: Fighting for the power., Alexander Motin, (Mon May 4, 12:50 am)
Re: Fighting for the power., Paul B. Mahol, (Mon May 4, 2:40 am)
Re: Fighting for the power., Alexander Motin, (Mon May 4, 2:51 am)
Re: Fighting for the power., Alexandre "Sunny" Ko ..., (Mon May 4, 5:09 am)
Re: Fighting for the power., Lucius Windschuh, (Mon May 4, 11:19 am)
Re: Fighting for the power., Alexander Motin, (Mon May 4, 3:28 pm)
Re: Fighting for the power., Lucius Windschuh, (Mon May 4, 4:22 pm)
Re: Fighting for the power., Peter Jeremy, (Tue May 5, 2:19 am)
Re: Fighting for the power. [syslogd], Sam Leffler, (Tue May 5, 9:17 am)
Re: Fighting for the power., Eitan Adler, (Tue May 5, 2:30 pm)
Re: Fighting for the power., Wilkinson, Alex, (Tue May 5, 3:29 pm)
Re: Fighting for the power., Jakub Lach, (Wed May 6, 10:04 am)
Re: Fighting for the power., Peter Jeremy, (Wed May 6, 12:07 pm)
Re: Fighting for the power., M. Warner Losh, (Wed May 6, 11:10 pm)
Re: Fighting for the power., Paul B. Mahol, (Fri May 8, 3:34 am)
Re: Fighting for the power., M. Warner Losh, (Fri May 8, 6:06 am)
Re: Fighting for the power., Tim Kientzle, (Sun May 10, 10:49 pm)
Re: Fighting for the power., Alexander Motin, (Mon May 11, 5:22 am)
Re: Fighting for the power. [syslogd], Chuck Swiger, (Mon May 11, 12:38 pm)
Re: Fighting for the power., Paul B. Mahol, (Mon May 11, 1:08 pm)
Re: Fighting for the power. [syslogd], Sam Leffler, (Mon May 11, 1:13 pm)
Re: Fighting for the power. [syslogd], Chuck Swiger, (Mon May 11, 2:37 pm)
Re: Fighting for the power., Alexander Motin, (Mon May 11, 4:13 pm)
Re: Fighting for the power., Gary Dunn, (Mon May 11, 11:40 pm)
Re: Fighting for the power., Ian Smith, (Tue May 12, 3:25 am)
Re: Fighting for the power., Alexander Motin, (Tue May 12, 4:44 am)
Re: Fighting for the power., Nate Lawson, (Wed May 13, 3:04 pm)