LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-19-2008, 04:14 PM   #1
altella
Member
 
Registered: Dec 2005
Posts: 84

Rep: Reputation: 16
Obtain better performance from the hard disk


Hello collegues;

I have recently resized my Ubuntu partitions using Gparted to give them more space in the hard disk. Everything has gone OK and Ubuntu runs fine. I know that Linux does not have the Windows file systems'problems (defragmentation and so on), but Is there any trick or action to tune up the hard disk and optimize its speed?

Thank you very much in advance for oyur attention,

Regards,
 
Old 11-19-2008, 04:27 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
there are different ways to speed up different files systems based on how you use them, soooo...

Do you want to optimize for large files or small files (small files would be, say, 5-50MB or less)?

What file system are you using (i.e. ext3, reiser, xfs)?
 
Old 11-20-2008, 05:01 AM   #3
altella
Member
 
Registered: Dec 2005
Posts: 84

Original Poster
Rep: Reputation: 16
ext 3

Hello, thank you por your replay,

I am using Ext3 filesystem. I would like to optimize the performance globally, but if this is not possible I think small files would be my choice.

Regards,


Quote:
Originally Posted by BrianK View Post
there are different ways to speed up different files systems based on how you use them, soooo...

Do you want to optimize for large files or small files (small files would be, say, 5-50MB or less)?

What file system are you using (i.e. ext3, reiser, xfs)?
 
Old 12-05-2008, 10:01 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
I'm sorry that this isn't more timely, but...

If it is an IDE/PATA drive (probably isn't, if its recent; SATA is more likely), you can check that DMA is on. For IDE drives, using the highest supported mode should increase the performance fairly reliably, so the only concern with this tweak is what IDE modes are supported. You may see something about this in 'dmesg', otherwise use hdparm to investigate.

For volumes for which the majority of files are small (...actually, its the majority of file accesses that is the issue, rather than the majority of files...) Reiser should be faster than Ext3. Reiser has special ways of dealing with small files (...providing that you don't turn it off [ie, activate notail]...) which do increase the speed. Its a closer comparison for Reiser and an EXT4 system correctlt tuned, but EXT4 is probably still a bit experimental for my taste. Reiser 4 is probably a bit further out still than Ext4, but is probably noticeably faster than Reiser 3 in some operations.

Note also that tuning of an Ext4 filesystem probably makes more difference than earlier filesystems; if you get it wrong, you can probably make an Ext4 fs slow down more than an Ext3 one would, in percentage terms. even sub-optim,ally tuned, it should probably still be at least as fast as EXT3 though.

(Note that these comments of FS speed are, in effect, averages; for all file systems there is something that they do (relatively) well and something that they do relatively badly. In extremis, your mileage will vary.)

Probably more useful for you than consideration of which file system might have been better for you to choose at install time, but which it is no longer the optimal time for you to choose is to turn off 'atime' for particular volumes.

'atime' is access time; if you turn it off, you will no longer know when a file was last accessed (but you will still know mtime - the modification time - which is usually more interesting). In some workloads, this will make an appreciable difference, in others it will only be an indistiguishably small difference, but I don't think there are any circumstances in which this slows things down. Obviously, if you think you will need access time for, eg, forensics, you shouldn't do this, but most people won't want this.
 
Old 12-07-2008, 04:15 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by salasi View Post
'atime' is access time; if you turn it off, you will no longer know when a file was last accessed (but you will still know mtime - the modification time - which is usually more interesting). In some workloads, this will make an appreciable difference, in others it will only be an indistiguishably small difference, but I don't think there are any circumstances in which this slows things down. Obviously, if you think you will need access time for, eg, forensics, you shouldn't do this, but most people won't want this.
Ubuntu currently uses the relatime option in fstab for this purpose. This article suggests that changing "relatime" to "noatime" will improve performance:
http://kmandla.wordpress.com/set-up-...e-and-noatime/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Hard Disk Performance (trouble) on Slack 12.1 The One Slackware 2 06-03-2008 09:07 PM
Very low hard disk performance... vale_1969 Linux - Hardware 8 10-25-2006 02:09 AM
hard disk drive performance SaxiDawg Linux - Hardware 10 06-04-2006 05:27 PM
how would choice of hard disk partioning affect performance of Mandriva minsky Linux - Newbie 2 04-07-2006 12:02 AM
Hard Disk performance tfrye10 Linux - Hardware 2 12-13-2004 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:00 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