There has been a lot of discussions on the Internet about the older magnetic Hard Disk Drives (HDD) and Solid State Hard Drives (SSD). The major issue discussed is drive speed.
SSD disks do cost more than the older HDD disks. The SSD disk capacity is reaching twice the capacity as the largest HDD. Recently there has been an SSD at 30 TB and an HDD at 16 TB. A 7.68 TB SSD disk can cost as much as $6,700; whereas, a 16 TB HDD can be around $400.
An SSD stores information a lot faster than an HDD. Cache and RAM on a system operate in nanoseconds. HDD disks operate at milliseconds. Hard Disks are very slow compared to the rest of any newer PC. An HDD is a system bottleneck and severely limits a system that is data-intensive such as accessing a database.
SSD disks store information in a fashion similar to Random Access Memory (RAM) except that the data is not lost when powered down.
An SSD can slow down when it is getting full, an HDD does as well. Data is stored in blocks. The block size will vary depending on the SSD capacity.
To find the block size you can use the following command in a Terminal:
blockdev --getbsz /dev/sdb1
The value returned is in kilobytes (KB). These blocks can store data from a file. Multiple files can be stored in one block in what is called a page. When a file is deleted the pages are marked as unused. When a page is needed to write a new file the page is read and rewritten with the deleted pages as blank. The empty pages are then used to write the new file.
The issue in most cases is not what size of drive you may buy, but how to optimize its performance.
With any drive, the filesystem used to format that drive will dictate its abilities.
To optimize the possibilities with Linux, in this case, Ubuntu, we need to install more support for the various filesystems. When Ubuntu is first installed there are a few drivers installed by default. These filesystems supported are shown in Figure 1.