LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-09-2018, 02:52 AM   #1
LinuxAssailant
LQ Newbie
 
Registered: Dec 2018
Location: Pinkofornia.
Distribution: Slackware (& Knoppix occasionally, when not using cygwin)
Posts: 8

Rep: Reputation: Disabled
Have you done any performance testing with smaller block sizes for SSD partitions?


With all the slack-space that is wasted, and every SSD I have owned having 512 byte blocks (not emulated, nor 4k), I can't really see a need to use full 4k blocks.

Can someone enlighten my to the drawbacks of smaller blocks if one has 512 byte sectors on their SSDs?
 
Old 12-10-2018, 03:13 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,138

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Sectors on an HDD refer to physical sectors of 512 or 4K. SSD sectors are all logical. Erase blocks on SSD range from 128K to 1M or so. The firmware on the drive manages logical sector reads and writes from RAM cache and maps the logical blocks to physical blocks in flash. The main drawback of small sector size is that each sector requires CPU cycles to add it to an I/O list and mark it complete when done, so there is slightly lower CPU overhead for larger block sizes.
 
1 members found this post helpful.
Old 01-15-2019, 08:00 PM   #3
LinuxAssailant
LQ Newbie
 
Registered: Dec 2018
Location: Pinkofornia.
Distribution: Slackware (& Knoppix occasionally, when not using cygwin)
Posts: 8

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by smallpond View Post
Sectors on an HDD refer to physical sectors of 512 or 4K. SSD sectors are all logical. Erase blocks on SSD range from 128K to 1M or so. The firmware on the drive manages logical sector reads and writes from RAM cache and maps the logical blocks to physical blocks in flash. The main drawback of small sector size is that each sector requires CPU cycles to add it to an I/O list and mark it complete when done, so there is slightly lower CPU overhead for larger block sizes.
So the happy place would be 128K blocks?

Seems like a waste of writes.
 
Old 01-15-2019, 09:29 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,973

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Seems kind of unusual to have that small of writes unless this is a dedicated data disk. ?? dunno
 
  


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 logical/physical block sizes... LinuxAssailant Linux - Hardware 4 12-15-2018 09:25 AM
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
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
kaffeine digital TV recordings - smaller file sizes biggles1963 Linux - General 1 08-21-2010 04:43 AM
Free disk space in '/' getting smaller and smaller. simjii SUSE / openSUSE 5 12-16-2005 11:24 AM

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

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

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