SSD hard disks and AmigaOS

A forum for general AmigaOS 4.x support questions that are not platform-specific
Gregor
Posts: 103
Joined: Thu Sep 08, 2011 10:44 am

SSD hard disks and AmigaOS

Post by Gregor »

Is there somewehere a FAQ concerning the use of SSDs with AmigaOS 4.1? If not, here are some questions...

1. AmigaOS does not have TRIM support and probably never will as discussed here earlier. Thus, is there any sense of using SSDs in their current state with AmigaOS...?

2. How to choose a drive which would work best with AmigaOS? Some manufacturers claim that their internal 'cleaning' processes are adequate for an OS without TRIM support. E.g. Crucial has in their SSDs so called 'Active Garbage Collection', but has anyone tested this with AmigaOS? Does it really work...?

3. What is the correct way to prep and partition a SSD (with HDToolbox)? If I have understood right, the borders of partitions should be placed in a certain way... Does HDToolbox do that automatically with SSDs?

4. What filesystem(s) should be used with SSDs?

5. Something else to take into consideration... ?
User avatar
thomasrapp
Posts: 310
Joined: Sat Jun 18, 2011 11:22 pm

Re: SSD hard disks and AmigaOS

Post by thomasrapp »

Gregor wrote:Some manufacturers claim that their internal 'cleaning' processes are adequate for an OS without TRIM support. E.g. Crucial has in their SSDs so called 'Active Garbage Collection', but has anyone tested this with AmigaOS? Does it really work...?
Automatic trim can only work in conjunction with wear-levelling. And wear-levelling only works if there is enough unused space on the disk. This means:
- leave some space without partitions
- never format a partition. Only use quick-format

What is the correct way to prep and partition a SSD (with HDToolbox)? If I have understood right, the borders of partitions should be placed in a certain way...
Change geometry so that one cylinder is 1 MB (2048 blocks). Then partitions will be aligned automatically. Do not use 1008 or 2016 blocks per cylinder.

What filesystem(s) should be used with SSDs?
Use a file system which supports different block sizes and set block size to 4096 or 8192.
Gregor
Posts: 103
Joined: Thu Sep 08, 2011 10:44 am

Re: SSD hard disks and AmigaOS

Post by Gregor »

thomasrapp wrote: Automatic trim can only work in conjunction with wear-levelling. And wear-levelling only works if there is enough unused space on the disk. This means:
- leave some space without partitions
- never format a partition. Only use quick-format

Change geometry so that one cylinder is 1 MB (2048 blocks). Then partitions will be aligned automatically. Do not use 1008 or 2016 blocks per cylinder.

Use a file system which supports different block sizes and set block size to 4096 or 8192.
Thank you for your advice!-) Maybe this information could also be added into the AmigaOS wiki? There was hardly anything about using SSDs yet... They are becoming more and more common but it is not easy for ordinary end users to figure out all these details, especially how to adjust the geometry.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: SSD hard disks and AmigaOS

Post by tonyw »

I have two Kingston SSDs, a 120 GB and a 340 GB. Both identify themselves as having 512-byte blocks, so I can't use them in a native 4096-byte manner.

Perhaps the device drivers have to be enhanced to enable "native" operation? Is it disabled by default and must be enabled by the driver?

BTW, a user should not *have* to do anything especial to use a device that plugs into a standard SATA port and uses a standard device driver. It's a hardware issue and should be handled at that level.
cheers
tony
User avatar
HKvalhe
Posts: 256
Joined: Mon Sep 03, 2012 9:39 am
Location: Bergen, Norway
Contact:

Re: SSD hard disks and AmigaOS

Post by HKvalhe »

tonyw wrote:I have two Kingston SSDs, a 120 GB and a 340 GB. Both identify themselves as having 512-byte blocks, so I can't use them in a native 4096-byte manner.

Perhaps the device drivers have to be enhanced to enable "native" operation? Is it disabled by default and must be enabled by the driver?

BTW, a user should not *have* to do anything especial to use a device that plugs into a standard SATA port and uses a standard device driver. It's a hardware issue and should be handled at that level.
It would be great if it was possible to use the maximum capacity of speed and quality of SSD in AmigaOS. It would certainly help a lot if such could be done...
Helge Kvalheim, Norway
AmigaOne 500 @ 1.15Ghz Samsung SSD 840 EVO 500GB, AmigaOS 4.1 Final, 2GB DDR2, Sapphire Radeon HD 6670 1GB GDDR5 PCI-E, ESI@Juli XTe PCIe audio
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: SSD hard disks and AmigaOS

Post by Srtest »

thomasrapp wrote:
Gregor wrote:Some manufacturers claim that their internal 'cleaning' processes are adequate for an OS without TRIM support. E.g. Crucial has in their SSDs so called 'Active Garbage Collection', but has anyone tested this with AmigaOS? Does it really work...?
Automatic trim can only work in conjunction with wear-levelling. And wear-levelling only works if there is enough unused space on the disk. This means:
- leave some space without partitions
- never format a partition. Only use quick-format

What is the correct way to prep and partition a SSD (with HDToolbox)? If I have understood right, the borders of partitions should be placed in a certain way...
Change geometry so that one cylinder is 1 MB (2048 blocks). Then partitions will be aligned automatically. Do not use 1008 or 2016 blocks per cylinder.

What filesystem(s) should be used with SSDs?
Use a file system which supports different block sizes and set block size to 4096 or 8192.
Gparted:
"The Cylinder/Head/Sector values reported by modern disk devices no longer have a direct physical relationship to the data stored on the disk device. Hence it is no longer valid to use this alignment setting to achieve enhanced performance."
User avatar
thomasrapp
Posts: 310
Joined: Sat Jun 18, 2011 11:22 pm

Re: SSD hard disks and AmigaOS

Post by thomasrapp »

Srtest wrote:Gparted:
"The Cylinder/Head/Sector values reported by modern disk devices no longer have a direct physical relationship to the data stored on the disk device. Hence it is no longer valid to use this alignment setting to achieve enhanced performance."
Exactly. That's why you have to edit the geometry manually. Using the values reported by devices, you still get this 63/16 thing. To get proper performance from an SSD you should enter values which ensure megabyte alignment.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: SSD hard disks and AmigaOS

Post by tonyw »

Why megabyte?
cheers
tony
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: SSD hard disks and AmigaOS

Post by gazelle »

An SSD has its own way of writing data. Normaly an SSD doesn't only write one Block to the disk. It does some merging (to 256 or 512KiB I think).

A partition should not cross this "merged" block to get better performance. If you set the alignment to 1MiB you can be sure of that. It could be lower but you would need to know the details of your SSD, so the general rule is 1MiB.

Or that's how I understand it.
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: SSD hard disks and AmigaOS

Post by Srtest »

"it isn't immediately clear to me exactly what an SSD should report its topology as given the current interfaces."
https://lwn.net/Articles/428584/
Post Reply