* Re: [git pull] device mapper changes for 4.21
[not found] ` <20181230090646.GB1022@infradead.org>
@ 2018-12-30 19:40 ` James Bottomley
2018-12-30 19:40 ` James Bottomley
0 siblings, 1 reply; 2+ messages in thread
From: James Bottomley @ 2018-12-30 19:40 UTC (permalink / raw)
To: Christoph Hellwig, Mike Snitzer
Cc: Tea, wuzhouhui, Heinz, system security, Tsironis, Eric Biggers,
Mauelshagen, Sweet, Nikos, Shenghui Wang, linux-block, dm-devel,
Patocka, Mikulas, Jaegeuk Kim, Colin Ian King, linux-arch,
Linus Torvalds, Milan Broz, Alasdair G Kergon, AliOS
On Sun, 2018-12-30 at 01:06 -0800, Christoph Hellwig wrote:
> On Thu, Dec 27, 2018 at 11:09:44AM -0500, Mike Snitzer wrote:
> > - Fix various DM targets to check for device sector overflow if
> > CONFIG_LBDAF is not set.
>
> Question to Jens and Linus:
>
> is there any good reason to keep the CONFIG_LBDAF=n option around?
> Less than 2gig block devices seem to be an absolutele niche, and I
> wonder if it is still worth maintaining the special case just for
> that.
It's really a question for embedded isn't it? since they're the ones
with this set to 'n' in their default configs (linux-arch cc added).
What LBDAF=n does is make sector_t and blkcnt_t unsigned long instead
of u64. The maintenance burden to us is we have to use sector_div
instead of do_div in the code and remember that sector_t may be 32 bit
(the current problem in LVM). The benefit to embedded architectures is
that they don't have to do 64 bit arithmetic for every block
transaction and the price is they can't support block devices larger
than 2TB (not 2GB, although the AF part means we can't support file
sizes bigger than 2GB).
So the first question is: is there an embedded platform where anyone
thinks the cost of the 64 bit arithmetic is important? and if there is
can they benchmark it so we get an idea of the value of keeping LBDAF
(i.e. if it's just a few percent then likely it's not worth it, if it's
in the tens of percent, it might be).
James
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [git pull] device mapper changes for 4.21
2018-12-30 19:40 ` [git pull] device mapper changes for 4.21 James Bottomley
@ 2018-12-30 19:40 ` James Bottomley
0 siblings, 0 replies; 2+ messages in thread
From: James Bottomley @ 2018-12-30 19:40 UTC (permalink / raw)
To: Christoph Hellwig, Mike Snitzer
Cc: Linus Torvalds, dm-devel, linux-block, Alasdair G Kergon,
AliOS system security, Colin Ian King, Eric Biggers,
Heinz Mauelshagen, Jaegeuk Kim, Mikulas Patocka, Milan Broz,
Nikos Tsironis, Shenghui Wang, Sweet Tea, wuzhouhui, linux-arch
On Sun, 2018-12-30 at 01:06 -0800, Christoph Hellwig wrote:
> On Thu, Dec 27, 2018 at 11:09:44AM -0500, Mike Snitzer wrote:
> > - Fix various DM targets to check for device sector overflow if
> > CONFIG_LBDAF is not set.
>
> Question to Jens and Linus:
>
> is there any good reason to keep the CONFIG_LBDAF=n option around?
> Less than 2gig block devices seem to be an absolutele niche, and I
> wonder if it is still worth maintaining the special case just for
> that.
It's really a question for embedded isn't it? since they're the ones
with this set to 'n' in their default configs (linux-arch cc added).
What LBDAF=n does is make sector_t and blkcnt_t unsigned long instead
of u64. The maintenance burden to us is we have to use sector_div
instead of do_div in the code and remember that sector_t may be 32 bit
(the current problem in LVM). The benefit to embedded architectures is
that they don't have to do 64 bit arithmetic for every block
transaction and the price is they can't support block devices larger
than 2TB (not 2GB, although the AF part means we can't support file
sizes bigger than 2GB).
So the first question is: is there an embedded platform where anyone
thinks the cost of the 64 bit arithmetic is important? and if there is
can they benchmark it so we get an idea of the value of keeping LBDAF
(i.e. if it's just a few percent then likely it's not worth it, if it's
in the tens of percent, it might be).
James
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-12-30 19:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20181227160944.GA12190@redhat.com>
[not found] ` <20181230090646.GB1022@infradead.org>
2018-12-30 19:40 ` [git pull] device mapper changes for 4.21 James Bottomley
2018-12-30 19:40 ` James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox