LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-18-2013, 06:10 PM   #1
kox444
Member
 
Registered: Aug 2012
Posts: 128

Rep: Reputation: Disabled
ext4 journaling and speed


I think my HDD is really slow. It's 6 years old though. I recently bought a new hardware and boot time didn't increased at all in Debian Wheezy. It takes 20+ seconds to get from bootloader to login screen. I went from amd sempron 1.6Ghz to quad core phenom 3.4Ghz. I heard there's an option to disable journaling in ext4. Is it safe and does it increase performance? Is there anything else I can do to speed up this old bastard?
 
Old 01-18-2013, 06:30 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Did you just swap the drive or do a clean install?

I haven't seen any speed tests but I suspect that a slight increase in boot speed may be possible with ext2. Check on that to be sure. Part of the issue can't be fixed. The bios and power up will still consume some time. The second part is how services are being started.

This is still good stuff. http://www.techrepublic.com/blog/10t...oot-faster/387

Kind of some risky stuff here. http://community.linuxmint.com/tutorial/view/114


Some systems might boot faster from hibernate also.
 
1 members found this post helpful.
Old 01-18-2013, 08:32 PM   #3
BoraxMan
Member
 
Registered: Apr 2010
Posts: 103

Rep: Reputation: 11
It will improve write performance slightly, but make very little difference, if any, to read performance. You might shave a little time off your boot time, but it would be barely noticeable.

20+ seconds isn't too bad. systemd is a replacement for the old init scripts, which can increase boot time a bit, but there are a whole slew of other problems and it might be difficult to install.

Other options are to disable unused services, and look at using hdparm to tweak your hard drive. I've found with older drives this can help quite a bit.

Lastly, make sure you are using noatime, or relatime mount options in /etc/fstab. This stops Linux from updating the access time for every file read, though it may be your system is already not doing this.

But don't disable the journal, and 20 seconds or so boot time isn't too slow.
 
1 members found this post helpful.
Old 01-19-2013, 07:23 AM   #4
kox444
Member
 
Registered: Aug 2012
Posts: 128

Original Poster
Rep: Reputation: Disabled
I disabled a few of services. Added noatime (I think application loading time might decreased a little bit thanks to that). Also used this Debian hack from the first article.
I measured full time it takes to load desktop environment (starting from bootloader) and it is 52seconds! The first text part lasts 20 seconds, but the part where I have a cursor and black screen lasts horribly long. There's nothing I can do about it other than changing desktop environment or new hdd or rather ssd. I'm using autologin of course. The Bootchart app doesn't seem to log things at all.
How to use this hdparm? Is there a gui for this?
I may push Wheezy partition to the top but I don't know if it is worth it. My HDD is 110GB and before Wheezy stands 8GB partition that I used for my main OS on old hardware.
Edit: I was wrong. There's over 50GB of partitions before Wheezy. I thought it is second partition, but it is 6th partition. Moving it to the top should optimize speeds a little.
Edit2: I gained about 5 seconds of boot time.

Last edited by kox444; 01-19-2013 at 12:38 PM.
 
Old 01-20-2013, 09:31 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,020

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Is this a new clean install?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usage of journaling venkatas4u Linux - General 2 01-06-2013 08:48 PM
[SOLVED] rsync backup exclude directory discussion - from running OS on ext4 journaling part masuch Linux - General 7 03-08-2012 03:07 PM
Old file system discovered after disabling ext4 journaling k14 Linux - General 6 05-13-2011 07:36 AM
Is it safe to format USB flash to ext4 or ext4? joham34 Linux - Newbie 2 01-08-2011 11:58 AM
Improving MetaData Performance of the Ext4 Journaling Device DragonSlayer48DX Linux - News 0 01-06-2010 08:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration