[haiku] Re: Haiku and SSD's

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Fri, 28 Jul 2017 15:51:59 +0200

On 28.07.2017 07:08, Adrien Destugues wrote:

On Fri, Jul 28, 2017 at 01:42:50AM +0200, Giovanni Mugnai wrote:
Hi, I can't remember where (maybe on IRC), but recently I've read
something about Haiku and SSD's compatibility: I remember something
about the fact that Haiku manage SSD's like standard mechanical disks,
which means that could cause slow disk I/O... Was about polling? Maybe
I've read these topics on the IRC channel.

That was me on IRC, mentionning that the io_scheduler was never designed
to work with SSDs. Wether we could make it work better there is an open
question, what I meant is it is one thing we need to investigate.

What it changes is the order in which operations are performed. There
result is that operations are slower than they could be, but still much
faster than with old spinning disks, because SSD have basically no seek
time, and as such they are much more forgiving to bad scheduling.

FWIW an I/O scheduler instance is instantiated per device. In theory even a different implementation could be used for a device (as long as it implements the interface IOScheduler), though so far we only have one implementation (IOSchedulerSimple).

TBH ATM I'm not even sure in which way this I/O scheduling strategy would be detrimental. Tweaking the configuration parameters (some are currently hard-coded) might help as well.

I guess the main issue is that we don't have a file system that is SSD friendly.

CU, Ingo


Other related posts: