Write requests are sorted in a red-black tree structure and are submitted
in the sorted order.
In theory the sorting should be performed by the underlying disk scheduler,
however, in practice the disk scheduler accepts and sorts only 128 requests.
In order to sort more requests, we need to implement our own sorting.
cc->write_thread = kthread_create(dmcrypt_write, cc, "dmcrypt_write");
if (IS_ERR(cc->write_thread)) {
--
1.7.10.4
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
08-21-2012, 10:57 AM
Alasdair G Kergon
dm-crypt: sort writes
On Tue, Aug 21, 2012 at 11:09:31AM +0200, Mikulas Patocka wrote:
> In theory the sorting should be performed by the underlying disk scheduler,
> however, in practice the disk scheduler accepts and sorts only 128 requests.
> In order to sort more requests, we need to implement our own sorting.
Why 128? Isn't this nr_requests?
(I thought we discussed this before.)
Alasdair
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel
08-21-2012, 01:39 PM
Mikulas Patocka
dm-crypt: sort writes
On Tue, 21 Aug 2012, Alasdair G Kergon wrote:
> On Tue, Aug 21, 2012 at 11:09:31AM +0200, Mikulas Patocka wrote:
> > In theory the sorting should be performed by the underlying disk scheduler,
> > however, in practice the disk scheduler accepts and sorts only 128 requests.
> > In order to sort more requests, we need to implement our own sorting.
>
> Why 128? Isn't this nr_requests?
> (I thought we discussed this before.)
>
> Alasdair
Yes, that's nr_requests. The user can raise it, but the default is 128.
Mikulas
--
dm-devel mailing list
dm-devel@redhat.com
https://www.redhat.com/mailman/listinfo/dm-devel