LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2010, 01:56 PM   #1
Potatos
LQ Newbie
 
Registered: Apr 2010
Distribution: Fedora 13
Posts: 20

Rep: Reputation: 1
Question Fedora 13 SSD TRIM Support


Hi,

Ive been working with seting up a linux image to be used on the computers at my work. Its based off Fedora 13 and uses the 2.6.33.5-112 kernel.

The PC's will use SSDs, currently I'm developing with a Intel X-25E 64GB SSD, Firmware version 8850.

I have been trying to test the TRIM feature that is included in this kernel. To do this I have followed the instructions I found here: http://forums.gentoo.org/viewtopic-t...b1eef7eb11b70f

Essentially I create a tempfile on the drive, read the memory location, delete the file and check the memory location again. The file has not been deleted from the SSD, If I am correct this means the TRIM feature is not functioning correctly.

My Fstab has the drive set up for discard.

Is there something I am missing in order to get TRIM working properly or am I misunderstanding the test. If you need any other information I'd gladly provide it.
 
Old 06-12-2010, 03:02 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Have you got the data=writeback flag in your mount options ?

Which actual version of the SSD is it, because according to this the X25-V has TRIM enabled, but I can't see any references to anything earlier that either didn't support TRIM or you needed to flash the firmware which seemed to break the SSDs.

X25-E looks earlier than X25-V to me.

Last edited by smoker; 06-12-2010 at 03:04 AM.
 
Old 06-12-2010, 03:42 AM   #3
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use DRAM based SSD, then you do not have to worry about TRIM. Yes you will have to worry about the battery, but that is easier to replace than trying to figure out a way to get NAND Flash based SSD to function correctly in any operating systems.
 
Old 06-13-2010, 06:42 PM   #4
mrgroover
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 1
AFAIK the Intel X-25E does not support TRIM, so no matter if it is included in the kernel, the SSD will not know what to do with the command...
 
Old 06-14-2010, 10:21 AM   #5
Potatos
LQ Newbie
 
Registered: Apr 2010
Distribution: Fedora 13
Posts: 20

Original Poster
Rep: Reputation: 1
Thanks for the help everyone,

The actual model number is: SSDSA2SH064G1GC with FW: 8850

I can't find anything to suggest that the drive does or doesn't have trim support. I assumed that it being a higher priced intel drive would have the support.

I also didn't have the data=writeback flag and will look into testing with that enabled. Additionally I am also going to see if i can find another SSD to test, I will update when I get a chance.
 
Old 06-14-2010, 12:27 PM   #6
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
From the link I gave :
Quote:
Anyways, all X25-V are shipped with TRIM enabled firmware.
My current firmware is 2CV102HD.
hdparm -I /dev/sda gives this, too:
Enabled Supported:
* Data Set Management TRIM supported
* Deterministic read ZEROs after TRIM
can you try running that on the correct drive and see what you get ?
 
Old 06-14-2010, 04:17 PM   #7
Potatos
LQ Newbie
 
Registered: Apr 2010
Distribution: Fedora 13
Posts: 20

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by smoker View Post
From the link I gave :


can you try running that on the correct drive and see what you get ?
I ran that on the X25-E and I got neither of those flags.

I was able to test with a X25-M and it worked perfectly with just the discard option!

The X25-M had the 2CV102HD firmware but I didn't get a chance to run the hdparm test before I returned it .

Thanks again for all the help
 
  


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
SSD TRIM support on Linux Thoreau Linux - Kernel 2 03-25-2009 05:05 AM
fedora boot hanging at - starting ssd venlinux Fedora 5 12-17-2006 01:14 PM
trim my box ekdya Fedora 6 09-25-2006 02:50 PM
LXer: Debian developers trim platform support LXer Syndicated Linux News 0 01-04-2006 06:16 PM
trim a line schneidz Programming 2 10-07-2005 07:47 PM


All times are GMT -5. The time now is 04:06 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration