mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Dilger <adilger@dilger.ca>
To: Sayan Ghosh <sgdgp.2014@gmail.com>
Cc: Ext4 Developers List <linux-ext4@vger.kernel.org>,
	Linux FS Devel <linux-fsdevel@vger.kernel.org>,
	"Bhattacharya, Suparna" <suparna.bhattacharya@hpe.com>,
	niloy ganguly <ganguly.niloy@gmail.com>,
	Madhumita Mallick <madhu.cse.ju@gmail.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	"Bharde, Madhumita" <madhumita.bharde@hpe.com>,
	Jens Axboe <axboe@kernel.dk>
Subject: Re: [Patch 0/4] RFC : Support for data gradation of a single file.
Date: Fri, 6 Apr 2018 15:31:39 -0600	[thread overview]
Message-ID: <63F7D7EC-EDF0-49FC-BAFA-F49695F1263F@dilger.ca> (raw)
In-Reply-To: <CAExFE6n2npo8Uomk=bNYnC4CVL9aWQDMRdOeav0vAdce1prNMQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2322 bytes --]

On Apr 6, 2018, at 5:41 AM, Sayan Ghosh <sgdgp.2014@gmail.com> wrote:
> 
> Hi all,
> 
> The following series of patches aim to store a file with a graded
> information. Consider a scenario of video indexing for learning
> programme where some of the portions of the video is annotated and
> important than other portions, hence to be accessed more often. We
> consider the similar scenario where we have a file along with a grade
> information that mentions which blocks are important and which are
> not. The grades we consider are binary with 1 denoting high grade.
> Now the file is stored in a LVM which comprises of different set of
> storage devices belong to different tiers (as ext4 doesn’t support
> spanning over multiple block driver), - one combination could be
> persistent memory and hard-disk. The target is to store the higher
> graded blocks in the higher performance tier and the lower graded
> blocks in the lower performance tier.
> Consider a C code where the grade of the file blocks are being set in
> the user space through extended attribute. The grade structure stores
> the span of different high graded segments in the file with starting
> high grade block numbers and the span length of the segments. We
> assume grade of rest of the blocks as 0 (low).

There was a considerable amount of work and discussion on implementing
Stream IDs for the block layer.  This would annotate writes from userspace
and allow the underlying storage (filesystem and block layer) to use the
stream ID for block allocation.  See the following for more details:

    https://lwn.net/Articles/717755/
    https://lwn.net/Articles/726477/
    http://lists.infradead.org/pipermail/linux-nvme/2017-June/011322.html

In the absence of other information, the Stream ID would just mean "group
allocations with the same ID together". After some discussion, it looks
like the latest patch has generic "lifetime" hints rather than "stream IDs",
but the end result is largely the same.

It would make sense for you to spend time testing and fixing that patch
series instead of trying to introduce a new interface.  IMHO, there is
no need to make these hints persistent on disk, since their state could
be inferred by the allocation placement directly.

Cheers, Andreas






[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 873 bytes --]

           reply	other threads:[~2018-04-06 21:31 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <CAExFE6n2npo8Uomk=bNYnC4CVL9aWQDMRdOeav0vAdce1prNMQ@mail.gmail.com>]

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=63F7D7EC-EDF0-49FC-BAFA-F49695F1263F@dilger.ca \
    --to=adilger@dilger.ca \
    --cc=axboe@kernel.dk \
    --cc=ganguly.niloy@gmail.com \
    --cc=linux-ext4@vger.kernel.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=madhu.cse.ju@gmail.com \
    --cc=madhumita.bharde@hpe.com \
    --cc=sgdgp.2014@gmail.com \
    --cc=suparna.bhattacharya@hpe.com \
    /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

all inboxes | Powered by JetHome®