From: Vivek Goyal <vgoyal@redhat.com>
To: Christoph Hellwig <hch@lst.de>
Cc: jaxboe@fusionio.com, peterz@infradead.org,
akpm@linux-foundation.org, kay.sievers@vrfy.org,
viro@zeniv.linux.org.uk, linux-mm@kvack.org,
linux-fsdevel@vger.kernel.org
Subject: Re: struct backing_dev - purpose and life time rules
Date: Tue, 27 Jul 2010 09:39:56 -0400 [thread overview]
Message-ID: <20100727133956.GA7347@redhat.com> (raw)
In-Reply-To: <20100727091459.GA11134@lst.de>
On Tue, Jul 27, 2010 at 11:14:59AM +0200, Christoph Hellwig wrote:
> In addition to these gem's there's an even worse issue in blk cfq,
> introduced in commit
>
> "blkio: Export disk time and sectors used by a group to user space"
>
> which parses the name inside the backing_dev sysfs device back into a
> major / minor number. Given how obviously stupid this is,
How can I do it better?
I needed a unique identifier with which user can work in terms of
specifying weights to devices and in terms of understanding what stats
mean. Device major/minor number looked like a obivious choice.
I was looking for how to determine what is the major/minor number of disk
request queue is associated with and I could use bdi to do that.
So I was working under the assumption that there is one request queue
associated with one gendisk and I can use major/minor number for that
disk to uniquely identify request queue.
But you seem to be suggesting that there can be multiple gendisk associated
with a single request queue. I am not sure how does that happen but if it
does, that means a single request queue has requests for multiple gendisks
hence for multiple major/minor number pairs?
If yes, then we need to come up with unique naming scheme for request queue
which CFQ can use to export stats to user space through cgroup interface
and also a user can use same name/indentifier to be able to specify per
device/request queue weigths.
> and given
> the whack a mole blkiocg is I'm tempted to simply break it and see if
> anyone cares.
I do care about blkiocg. Why do you think it is a mole? If things are
wrong, guide me how to go about fixing it and I will do that.
Thanks
Vivek
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2010-07-27 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 9:01 struct backing_dev - purpose and life time rules Christoph Hellwig
2010-07-27 9:14 ` Christoph Hellwig
2010-07-27 13:39 ` Vivek Goyal [this message]
2010-07-27 14:09 ` Christoph Hellwig
2010-07-27 23:55 ` FUJITA Tomonori
2010-07-28 4:42 ` Kay Sievers
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=20100727133956.GA7347@redhat.com \
--to=vgoyal@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=hch@lst.de \
--cc=jaxboe@fusionio.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=peterz@infradead.org \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).