Fedora Linux Support Community & Resources Center
  #1  
Old 27th July 2011, 06:20 PM
fedoralinx Offline
Registered User
 
Join Date: Jul 2011
Posts: 17
windows_xp_2003firefox
Fedora 15 SSD optimization

Hi,


I am trying to optimize my SSD for Fedora 15 but ran into a few problems.

I read a couple of guides and most start with changing/adding "discard" to the /etc/fstab.

But the drives listen as per guide start with /dev/sda. I only get a UUID with a long string and can't tell which drive is which.

I have 3 partitions but eventhough I only see 2 drives, or 2 UUIDs that seem relevant.

So what do I do?



Thanks.
Reply With Quote
  #2  
Old 27th July 2011, 06:38 PM
leigh123linux
Guest
 
Posts: n/a
linuxredhatfirefox
Re: Fedora 15 SSD optimization

Try


Code:
blkid
Reply With Quote
  #3  
Old 27th July 2011, 07:21 PM
fedoralinx Offline
Registered User
 
Join Date: Jul 2011
Posts: 17
windows_xp_2003firefox
Re: Fedora 15 SSD optimization

Nice...

And than I just add it I guess? The extra partition.

So that in fstab it will look like:

UUID=50560-jhks9-string-id-etc / etx4 noatime,discard,defaults 1 2

Is that about correct? Or do I make it "1 1" at the end?

And what if a partition doesn't have a mount point which is what the "/" is for I think? I intend to encrypt that partition, if it makes any difference.
Reply With Quote
  #4  
Old 27th July 2011, 07:26 PM
magnusk Offline
Registered User
 
Join Date: Sep 2008
Location: Arlov, Sweden
Posts: 42
linuxfirefox
Re: Fedora 15 SSD optimization

Some reading that might be useful:
http://tombuntu.com/index.php/2008/0...-state-drives/
http://www.zdnet.com/blog/perlow/gee...and-linux/9190

My sda is an SSD and I have added the following to my /etc/rc.local:
Code:
# Use deadline scheduler for SSD-disk
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch
# Write-back caching
hdparm -W1 /dev/sda
and added "discard" to my fstab.
__________________
F17 x86_64 Gnome.
Reply With Quote
  #5  
Old 27th July 2011, 09:05 PM
fedoralinx Offline
Registered User
 
Join Date: Jul 2011
Posts: 17
windows_xp_2003firefox
Re: Fedora 15 SSD optimization

Yes but I really don't wanna go that far. I also read about data loss and life span if you do most of that. The data on the disk is important.

Setting just the partitions will do it for it me. If what I posted earlier is correct?
Reply With Quote
  #6  
Old 27th July 2011, 09:30 PM
leigh123linux
Guest
 
Posts: n/a
linuxredhatfirefox
Re: Fedora 15 SSD optimization

Quote:
Originally Posted by fedoralinx View Post
Yes but I really don't wanna go that far. I also read about data loss and life span if you do most of that. The data on the disk is important.

Setting just the partitions will do it for it me. If what I posted earlier is correct?

I use this with my ssd

Code:
UUID=91faae69-0fa6-42d8-8d94-1d0070678d8a /                       ext4    defaults,discard        1 1
I would also recommend moving /tmp to RAM

Code:
none                    /tmp                    tmpfs   defaults        0 0
Reply With Quote
  #7  
Old 27th July 2011, 09:49 PM
fedoralinx Offline
Registered User
 
Join Date: Jul 2011
Posts: 17
windows_xp_2003firefox
Re: Fedora 15 SSD optimization

Yes that seems best.

Should I do that for the second partition (add it) and swap partition as well?
Reply With Quote
  #8  
Old 27th July 2011, 11:09 PM
leigh123linux
Guest
 
Posts: n/a
linuxredhatfirefox
Re: Fedora 15 SSD optimization

Quote:
Originally Posted by fedoralinx View Post
Yes that seems best.

Should I do that for the second partition (add it) and swap partition as well?

I believe trim is automatic with swap

http://forums.fedoraforum.org/showthread.php?t=256068
Reply With Quote
  #9  
Old 28th July 2011, 07:26 AM
stevea Online
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,795
linuxfedorafirefox
Re: Fedora 15 SSD optimization

Quote:
UUID=50560-jhks9-string-id-etc / etx4 noatime,discard,defaults 1 2
You don't need the 'defaults' string if there is any other option - it's just a placeholder
noatime is a good idea for any file system.
Nearly every Linux filesystem you might want to consider takes the "discard" option including vfat, btrfs, ext3/4, xfs.

UUID=50560-jhks9-string-id-etc / ext4 noatime,discard 1 2

Yes ,TRIM is automatic with swap and has been for a while.
Recently (~2.6.36 IIRC) LVM supports TRIM passthrough.


FWIW - IF you've been using your disk without the TRIM option, then any blocks deleted from the file system are not known to be free by the drive. So on a clean install all the writes are fine, but when you start upgrading packages ...or otherwise deleting files - the block go into limbo. It's not a big deal for a few percent of the disk size - but it may be a long long time before those blocks ar recouped through garbage collection.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe

Last edited by stevea; 28th July 2011 at 07:33 AM.
Reply With Quote
  #10  
Old 28th July 2011, 01:34 PM
fedoralinx Offline
Registered User
 
Join Date: Jul 2011
Posts: 17
windows_xp_2003firefox
Re: Fedora 15 SSD optimization

Oh ok. I will do that.

Should I add the last partition too, eventhough it has no mount point? It shows up in "blkid" but not /etc/fstab.

And I had a problem doing "dd if=/dev/urandom of=/dev/sda". It seems to stall before finished. "dd: Writing ... Out Of Space ...". Eventhough the partition is 10gb it only wrote 1500mb to it. It said so in its report.
Reply With Quote
Reply

Tags
fedora, optimization, ssd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora 15 Boot Optimization (from 45 to 26 seconds) mightymouse2045 Guides & Solutions (No Questions) 0 2nd July 2011 03:41 PM
SSD Optimization LongeFlucht Installation, Upgrades and Live Media 3 23rd February 2011 05:24 AM
Fedora Core 10 SSD optimization aspect_p Hardware & Laptops 0 27th November 2008 12:55 AM
With which gcc optimization level is built Fedora software Vouters Using Fedora 0 13th July 2008 02:10 PM
Optimization tool for Fedora 4 pkpanda Hardware & Laptops 1 1st March 2006 12:40 AM


Current GMT-time: 20:59 (Wednesday, 27-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat