public inbox for linux-arch@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Christoph Hellwig <hch@infradead.org>, Mike Snitzer <snitzer@redhat.com>
Cc: Tea <sweettea@redhat.com>,
	wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>,
	Heinz, system security <alios_sys_security@linux.alibaba.com>,
	Tsironis <ntsironis@arrikto.com>,
	Eric Biggers <ebiggers@google.com>,
	Mauelshagen <heinzm@redhat.com>,
	Sweet, Nikos, Shenghui Wang <shhuiw@foxmail.com>,
	linux-block@vger.kernel.org, dm-devel@redhat.com,
	Patocka <mpatocka@redhat.com>,
	Mikulas, Jaegeuk Kim <jaegeuk@kernel.org>,
	Colin Ian King <colin.king@canonical.com>,
	linux-arch@vger.kernel.org,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Milan Broz <gmazyland@gmail.com>,
	Alasdair G Kergon <agk@redhat.com>,
	AliOS
Subject: Re: [git pull] device mapper changes for 4.21
Date: Sun, 30 Dec 2018 11:40:19 -0800	[thread overview]
Message-ID: <1546198819.2844.16.camel@HansenPartnership.com> (raw)
In-Reply-To: <20181230090646.GB1022@infradead.org>

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

WARNING: multiple messages have this Message-ID (diff)
From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Christoph Hellwig <hch@infradead.org>, Mike Snitzer <snitzer@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
	dm-devel@redhat.com, linux-block@vger.kernel.org,
	Alasdair G Kergon <agk@redhat.com>,
	AliOS system security <alios_sys_security@linux.alibaba.com>,
	Colin Ian King <colin.king@canonical.com>,
	Eric Biggers <ebiggers@google.com>,
	Heinz Mauelshagen <heinzm@redhat.com>,
	Jaegeuk Kim <jaegeuk@kernel.org>,
	Mikulas Patocka <mpatocka@redhat.com>,
	Milan Broz <gmazyland@gmail.com>,
	Nikos Tsironis <ntsironis@arrikto.com>,
	Shenghui Wang <shhuiw@foxmail.com>,
	Sweet Tea <sweettea@redhat.com>,
	wuzhouhui <wuzhouhui14@mails.ucas.ac.cn>,
	linux-arch@vger.kernel.org
Subject: Re: [git pull] device mapper changes for 4.21
Date: Sun, 30 Dec 2018 11:40:19 -0800	[thread overview]
Message-ID: <1546198819.2844.16.camel@HansenPartnership.com> (raw)
Message-ID: <20181230194019.OEGh_cyEp7eh8FkrS7w8R2jA5spFe5ZHj8N84vq98LY@z> (raw)
In-Reply-To: <20181230090646.GB1022@infradead.org>

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

       reply	other threads:[~2018-12-30 19:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20181227160944.GA12190@redhat.com>
     [not found] ` <20181230090646.GB1022@infradead.org>
2018-12-30 19:40   ` James Bottomley [this message]
2018-12-30 19:40     ` [git pull] device mapper changes for 4.21 James Bottomley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1546198819.2844.16.camel@HansenPartnership.com \
    --to=james.bottomley@hansenpartnership.com \
    --cc=agk@redhat.com \
    --cc=alios_sys_security@linux.alibaba.com \
    --cc=colin.king@canonical.com \
    --cc=dm-devel@redhat.com \
    --cc=ebiggers@google.com \
    --cc=gmazyland@gmail.com \
    --cc=hch@infradead.org \
    --cc=heinzm@redhat.com \
    --cc=jaegeuk@kernel.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=mpatocka@redhat.com \
    --cc=ntsironis@arrikto.com \
    --cc=shhuiw@foxmail.com \
    --cc=snitzer@redhat.com \
    --cc=sweettea@redhat.com \
    --cc=torvalds@linux-foundation.org \
    --cc=wuzhouhui14@mails.ucas.ac.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox