Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-19-2008, 04:14 PM
|
#1
|
Member
Registered: Dec 2005
Posts: 84
Rep:
|
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,
|
|
|
11-19-2008, 04:27 PM
|
#2
|
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334
Rep:
|
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)?
|
|
|
11-20-2008, 05:01 AM
|
#3
|
Member
Registered: Dec 2005
Posts: 84
Original Poster
Rep:
|
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
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)?
|
|
|
|
12-05-2008, 10:01 AM
|
#4
|
Senior Member
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070
|
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.
|
|
|
12-07-2008, 04:15 AM
|
#5
|
Senior Member
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230
|
Quote:
Originally Posted by salasi
'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/
|
|
|
All times are GMT -5. The time now is 08:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|