LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-17-2017, 04:55 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
SSD free space, SSD interrupted fstrim


Hi,

I would like to ask you to make me clear two things about SSDs.

1) Very often, when reading about the subject, there is an advice to leave some free space on the SSD.
I would like to ask, what does it mean?
How does one leave free space on a disk?
If I partition the disk, leaving unpartitioned area somewhere at the end, will the disk controller actually understand that?

And most importantly, does it matter at all for modern disks?

2) Can bad thing happen if fstrim is interrupted during operation (e.g. system shutdown while fstrim was scheduled to run by cron)?

Thanks in advance!

My SSDs are:
- Samsung SSD 850 EVO M.2 250GB, EMT21B6Q, max UDMA/133
- Samsung SSD 850 PRO 256GB, EXM02B6Q, max UDMA/133

--
Best regards,
Andrzej Telszewski
 
Old 09-18-2017, 11:17 AM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,987

Rep: Reputation: 388Reputation: 388Reputation: 388Reputation: 388
I'll give you my opinions on this; others may have a different view.
Quote:
1) Very often, when reading about the subject, there is an advice to leave some free space on the SSD.
I would like to ask, what does it mean?
I believe this advice only applies to older SSDs. It refers to leaving some unallocated space(i.e. unpartitioned space) on the drive rather than partitioning the entire drive. This unallocated space can be used by the SSD firmware controller to increase the efficiency and life of the drive by using the unallocated space to perform certain functions peculiar to SSD drive maintenance, namely wear leveling, garbage collection and dealing with a technical phenomena known as write amplification:

https://en.wikipedia.org/wiki/Write_...r-provisioning

The practice is known as "over-provisioning". I believe most modern SSDs, and certainly your Samsung SSDs, already come from the factory with hidden space not seen by your bios or operating system to be used for this purpose, i.e. they come from the factory over-provisioned. That was not always true of early SSDs. You can certainly leave some unallocated space on your SSDs if you want and it will be added to your already provided over-provisioned space and automatically used by your SSD firmware controller as needed. It may even be useful to do so in certain situations. In practice, I haven't found it necessary on recent SSD drives from Samsung or Intel. I don't have experience with other manufacturers.

Quote:
Can bad thing happen if fstrim is interrupted during operation (e.g. system shutdown while fstrim was scheduled to run by cron)?
As I understand it, fstrim just clears unused blocks from an SSD drive. If fstrim is interrupted, I would assume it just wouldn't complete the "trimming" of unused blocks and the next time fstrim was run those blocks would be detected and cleared.
 
Old 09-20-2017, 06:52 AM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
Originally Posted by kilgoretrout View Post
I believe this advice only applies to older SSDs.
(..)
In practice, I haven't found it necessary on recent SSD drives from Samsung or Intel. I don't have experience with other manufacturers.
OK, I'm going to believe it too and won't bother any more. Thanks ;-)

Quote:
Originally Posted by kilgoretrout View Post
As I understand it, fstrim just clears unused blocks from an SSD drive. If fstrim is interrupted, I would assume it just wouldn't complete the "trimming" of unused blocks and the next time fstrim was run those blocks would be detected and cleared.
This sounds safe.

Thanks.

--
Best regards,
Andrzej Telszewski
 
  


Reply



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
Install Linux in Toshiba u940 series with 32gb ssd and 750gb hdd I would like to have boot code in ssd only cvkchary Linux - Laptop and Netbook 4 08-31-2016 04:26 PM
Sata 3 SSD vs PCI-E SSD (DELL 5520 laptop) my.forums Linux - Hardware 3 07-08-2016 05:08 PM
Fastest SATA SSD or pair of RAID 0 SSD's under aprox $200 Ulysses_ Linux - Hardware 1 03-26-2016 09:45 AM
Access To Encrypted SSD Partition With Native Password in SSD>SATA Enclosure skidvicious Linux - Hardware 5 12-03-2015 04:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:44 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
Open Source Consulting | Domain Registration