LinuxQuestions.org
Help answer threads with 0 replies.
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 09-09-2011, 08:50 PM   #1
TheOneKEA
Member
 
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 7.4.0 (amd64) w/kernel 3.13.0
Posts: 279

Rep: Reputation: 30
Question Online block discard support (aka TRIM) isn't working with kernel 3.0.4


I just finished installing Debian 6.0.2.1 to my new OCZ Vertex 3 SSD and built all of my GPT partitions and ext4 filesystems in such a way to ensure that they were properly aligned to both the 4KiB pages and the 512KiB erase blocks within the SSD. I also specified the discard mount option for my SSD filesystems to ensure that online block discard support was enabled, but it doesn't appear to actually be working.

I tried the test at http://sites.google.com/site/lightru...bledandworking and confirmed that after deleting the temporary file and sync'ing all filesystems, the block discard code doesn't wipe the LBA sector of the file - I have to use the wiper.sh script to do an online manual block discard to clean up the SSD. Has anyone experienced this problem too and been able to solve it?
 
Old 09-09-2011, 09:59 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 327Reputation: 327Reputation: 327Reputation: 327
I doubt that takes into consideration the batched discard support.
 
Old 09-10-2011, 07:33 AM   #3
TheOneKEA
Member
 
Registered: Oct 2003
Location: Somewhere in Surrey
Distribution: Debian GNU/Linux 7.4.0 (amd64) w/kernel 3.13.0
Posts: 279

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by macemoneta View Post
I doubt that takes into consideration the batched discard support.
I was aware of that patch but I didn't really stop and consider the implications of it until I actually read the code. Now I think I understand why the LBAs weren't trimmed immediately.
 
  


Reply

Tags
discard, ext4, hdparm, kernel, trim


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
[SOLVED] subversion: how to discard a checked out working copy Jerry Mcguire Linux - Software 2 06-15-2010 01:14 AM
[SOLVED] Fedora 13 SSD TRIM Support Potatos Linux - Hardware 6 06-14-2010 03:17 PM
SSD TRIM support on Linux Thoreau Linux - Kernel 2 03-25-2009 04:05 AM
Mousewheel isn't working with kernel 2.6 TazG Linux - Hardware 6 06-01-2004 06:30 PM
mkinitrd isn't working when compilaing a new kernel citrus Linux - General 6 02-12-2004 06:42 PM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
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