Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
mzOffline
Post subject: [SOLVED] Disk access every 5 seconds in KDE (really ext4)  PostPosted: 28.11.2010, 15:31



Joined: 2010-09-11
Posts: 57

Status: Offline
I'm giving KDE a try after many years with fvwm, and I am experiencing an annoyance. There is a disk access about every five seconds even when no applications are running. Is this normal, or is there something that I can turn off somewhere?

It is not necessarily a problem, but is becoming maddening, just like The Tell-tale Heart. (http://www.literature.org/authors/poe-edgar-allan/tell-tale-heart.html)


Last edited by mz on 28.11.2010, 23:14; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
diblOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 28.11.2010, 17:06



Joined: 2010-09-12
Posts: 302
Location: Dayton, Ohio, USA
Status: Offline
It is not KDE, it is the ext4 default "commit" time for syncing metadata. Read down the "Options" here:

http://www.mjmwired.net/kernel/Document ... s/ext4.txt

You can change it with a "commit=nnn" mount option in /etc/fstab, but of course the longer you make the commit time, the more exposed your fileystem (and data) becomes to a unexpected loss of power or crash.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mzOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 28.11.2010, 21:08



Joined: 2010-09-11
Posts: 57

Status: Offline
Thanks for the informative link. I think that ext4 is not for me and I will reinstall into ext3.
 
 View user's profile Send private message  
Reply with quote Back to top
devilOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 28.11.2010, 21:27



Joined: 2010-08-26
Posts: 491
Location: Berlin
Status: Offline
no need to reinstall, as far as i know, tune2fs can change back to ext3. if not, http://www.fsarchiver.org/Main_Page can do it.

greetz
devil
 
 View user's profile Send private message  
Reply with quote Back to top
mzOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 28.11.2010, 23:13



Joined: 2010-09-11
Posts: 57

Status: Offline
The kernel document referenced above discouraged attempts to convert ext4 to ext3 in place, so I booted aptosid-live, copied my root partition to another drive, and rebuilt the filesystem with the -U option to get the old UUID back.

I have always used the following to replicate filesystems, and it worked fine this time as well:
      Code:

mkdir destination-dir
cd source-dir
find . -depth -print | cpio -pdm destination-dir

After restoring the copy of the filesystem, I just had to change ext4 to ext3 in fstab; rebooted and all is well with no heartbeat.
 
 View user's profile Send private message  
Reply with quote Back to top
diblOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 28.11.2010, 23:25



Joined: 2010-09-12
Posts: 302
Location: Dayton, Ohio, USA
Status: Offline
You could have simply added a "commit=600" mount option, to change the sync to once every 10 minutes.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
mzOffline
Post subject: RE: Disk access every 5 seconds in KDE  PostPosted: 29.11.2010, 03:27



Joined: 2010-09-11
Posts: 57

Status: Offline
Yes, and I have added this to my ext3 options as well, now that I know that the commit parameter is not specific to ext4. I still hear more disk activity than I would like, but I am reaching the conclusion that this drive is just noisier than the one I was using prior to this recent installation. I suspect I won't be happy until I get an SSD for the boot drive.
 
 View user's profile Send private message  
Reply with quote Back to top
ikeinthaiOffline
Post subject: thanks for litlink!  PostPosted: 30.11.2010, 09:37



Joined: 2010-09-22
Posts: 119
Location: bigannastybkk
Status: Offline
@mz: thanks for poe link. it's always nice to have another good link for the timeless QUALITY free literature available on the interweb.

ike.

_________________
aptosid: magic in action, the point of the spear. bleedin pearls before swine? lets hope not. freesoftware/freedomsoftware=a chance at freedom. participants, engage your vehicle. . . avatar by zenren
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
broweOffline
Post subject: RE: thanks for litlink!  PostPosted: 30.11.2010, 14:39



Joined: 2010-09-12
Posts: 152
Location: Canada
Status: Offline
I noticed the same disk activity when using ext3 or ext4. What I find odd is that the sync continues even with no user input or programs running. It would be nice to have it set a longer sync if there is no other disk or user activity. One benefit of the short sync is it keeps the disk awake (prevents head parking) so that disk access is fast and less wear on the head parking mechanism. If you change the timings keep an eye on the load cycle:

      Code:

smartctl -a /dev/sda | grep Load_Cycle_Count
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio