Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ext4 discard flag, trim on Intel 520 SSD
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gaebb3r
n00b
n00b


Joined: 22 Oct 2007
Posts: 54
Location: 48°31′N, 9°3′E

PostPosted: Sun Apr 01, 2012 9:49 am    Post subject: ext4 discard flag, trim on Intel 520 SSD Reply with quote

Hey together,

I have now set up my Gentoo on an Intel 520 SSD with a capacity of 60 GB.
Linux is booting extremely fast and quiet, just as expected. :D

The filesystem for both - / and /boot - is ext4 which allows to enable trim on the SSD as native option. But before I enable this I need to know if this is already stable in order to prevent data loss.
Is any of you already using this trim command and wants to share his/her experience?

Code:
agph mw # cat /etc/fstab | grep /dev/sda
/dev/sda1               /boot                   ext4            defaults,noatime,data=ordered   1 1
/dev/sda3               /                       ext4            defaults,noatime,data=ordered   1 1
/dev/sda2               swap                    swap            defaults                        0 0


Many thanks for your help!

Cheers
_________________
Core i7-3960X - X79-UD3 - 16384 MB
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2117
Location: Germania

PostPosted: Sun Apr 01, 2012 10:07 am    Post subject: Reply with quote

running since july 2011 - operating 24/7. survived some power-outages. so, nothing experienced so far ... luckily?! :roll:

Quote:
/dev/sda1 /boot ext4 discard,noauto,noatime,nodiratime 1 2
/dev/sda2 / ext4 discard,noatime,nodiratime 0 1
added nodiratime - being paranoid. ;)
_________________
idiocracy - talk to your plants. they want brawndo. not water, like from the toilet. ... it's got electrolytes ...
Back to top
View user's profile Send private message
genstorm
Advocate
Advocate


Joined: 05 Apr 2007
Posts: 2482
Location: Austria

PostPosted: Sun Apr 01, 2012 10:14 am    Post subject: Reply with quote

I think trim support exists since 2.6.32 or so, it'd better be stable then by now ;)
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
gaebb3r
n00b
n00b


Joined: 22 Oct 2007
Posts: 54
Location: 48°31′N, 9°3′E

PostPosted: Sun Apr 01, 2012 11:18 am    Post subject: Reply with quote

geki wrote:
added nodiratime - being paranoid. ;)

Thanks for this "hint"... ;)

Which kind (manufacturer, type) of SSDs do you all use?
_________________
Core i7-3960X - X79-UD3 - 16384 MB
Back to top
View user's profile Send private message
genstorm
Advocate
Advocate


Joined: 05 Apr 2007
Posts: 2482
Location: Austria

PostPosted: Sun Apr 01, 2012 11:39 am    Post subject: Reply with quote

Got an Intel SSD 311 Series (SLC) in our server system, ext4 on it, since about half a year without issues.

Personally, I've put a Seagate Momentus XT 500 into my Laptop, it's got a 4GB OS-agnostic SLC cache inside. I still prefer that as a good fast access/data storage compromise when there's just one hdd slot available.

EDIT: discard is set as default anyway!
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
geki
Advocate
Advocate


Joined: 13 May 2004
Posts: 2117
Location: Germania

PostPosted: Sun Apr 01, 2012 12:24 pm    Post subject: Reply with quote

got an intel 520 / 120gb
_________________
idiocracy - talk to your plants. they want brawndo. not water, like from the toilet. ... it's got electrolytes ...
Back to top
View user's profile Send private message
EatMeerkats
Apprentice
Apprentice


Joined: 15 Mar 2006
Posts: 234

PostPosted: Sun Apr 01, 2012 2:04 pm    Post subject: Reply with quote

geki wrote:
running since july 2011 - operating 24/7. survived some power-outages. so, nothing experienced so far ... luckily?! :roll:

Quote:
/dev/sda1 /boot ext4 discard,noauto,noatime,nodiratime 1 2
/dev/sda2 / ext4 discard,noatime,nodiratime 0 1
added nodiratime - being paranoid. ;)


Noatime implies nodiratime: http://lwn.net/Articles/245002/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum