lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 10 Apr 2012 20:56:19 +0200
From:	Jens Axboe <axboe@...nel.dk>
To:	Vivek Goyal <vgoyal@...hat.com>
CC:	linux kernel mailing list <linux-kernel@...r.kernel.org>,
	Moyer Jeff Moyer <jmoyer@...hat.com>
Subject: Re: [RFC PATCH] block: Change default IO scheduler to deadline except
 SATA

On 2012-04-10 20:53, Vivek Goyal wrote:
> On Tue, Apr 10, 2012 at 08:41:08PM +0200, Jens Axboe wrote:
> 
> [..]
>>> So we are back to the question of can scsi devices find out if a Lun
>>> is backed by single disk or multiple disks.
>>
>> The cleanest would be to have the driver signal these attributes at
>> probe time. You could even adjust CFQ properties based on this, driving
>> the queue depth harder etc. Realistically, going forward, most fast
>> flash devices will be driven by a noop-like scheduler on multiqueue. So
>> CPU cost of the IO scheduler can mostly be ignored, since CFQ cost on
>> even big RAIDs isn't an issue due to the low IOPS rates.
> 
> Agreed that on RAID CPU cost is not a problem. Just that idling and low
> queue depth kills the performance.

Exactly, and both of these are trivially adjustable as long as we know
when to do it.

> So apart from "rotational" if driver can give some hints about underlying
> devices being RAID (or multi device), it will help. Just that it looks
> like scsi does not have a way to determine that.

This sort of thing should be done with a udev rule. It should not be too
hard to match for the most popular arrays, catching the majority of the
setups by default. Or you could ask the SCSI folks for some heuristics,
it's not unlikely that a few different attributes could make that bullet
proof, pretty much.

-- 
Jens Axboe

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ