Home > linux > Jbd2 forces frequent hard-drive wake-ups

Jbd2 forces frequent hard-drive wake-ups

System: Debian GNU/Linux (wheezy) 3.2.0-2-amd64

Some time ago I realized frequent spinup-spindowns of the hard drive of my laptop. Not only this is annoying, it also kills power-management.

After a little investigation using iotop, I found jbd2-service having write-access to the disk every few seconds. According to this thread: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/607560 jbd2 flushes ext4 journal to disk. This is a necessary evil, but the interval between two flushes can be increased by adding ‘commit=$N‘, where $N is the amount of time in seconds, to all regarding options columns in /etc/fstab.


UUID=820b416a-993f-4fe9-8191-a9453efaa923    /    ext4    errors=remount-ro,commit=180    0    1

The interval should not be to large to prevent massive data loss on failures. I decided to choose 3 minutes here. Don’t forget to remount/reboot! By now all works fine 🙂

Categories: linux Tags: , , ,
  1. June 7th, 2012 at 13:03 | #1

    Maybe you can keep the journal somewhere different than the HDD (USB stick?) and have even longer gaps between syncs to disk? Disclaimer: I’m probably talking out of my butt.

  2. December 26th, 2015 at 10:14 | #2

    Cheap Jerseys,Buy our official shop online jerseys top five seller –
    San Francisco 49ers,save up to 50% off.China nfl apparel supplier offer
    at the wholesale price.
    more from : Cheap San Francisco 49ers

  1. No trackbacks yet.