From: Divyesh Shah <dpshah@google.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: jens.axboe@oracle.com, linux-kernel@vger.kernel.org,
nauman@google.com, ctalbott@google.com
Subject: Re: [PATCH 2/3] blkio: Add io controller stats like
Date: Fri, 2 Apr 2010 11:54:50 -0700 [thread overview]
Message-ID: <w2naf41c7c41004021154qeb061645u9a0a0b074f90252b@mail.gmail.com> (raw)
In-Reply-To: <20100402181754.GC3516@redhat.com>
On Fri, Apr 2, 2010 at 11:17 AM, Vivek Goyal <vgoyal@redhat.com> wrote:
> On Thu, Apr 01, 2010 at 03:01:24PM -0700, Divyesh Shah wrote:
>
> [..]
>> +#define GET_STAT(__VAR, __CONV) \
>> +uint64_t get_##__VAR##_stat(struct blkio_group *blkg, int dummy) \
>> +{ \
>> + uint64_t data = blkg->stats.__VAR; \
>> + if (__CONV) \
>> + data = (uint64_t)jiffies_to_msecs(data) * NSEC_PER_MSEC;\
>> + return data; \
>> +}
>> +
>
> Hi Divyesh,
>
> I think now you are exporting blkio.time in ns instead of ms?
This is an error.. I should be exporting this in ms. Will send out a
patchset with the change once I also address you other comments in a
bit. Thanks for the review!
> - First of all your are breaking ABI.
> - Secondly, how does that help. You are capturing all your slice used
> stats in ms. You already lost any ns granularity. What's the point
> in converting these to ns now?
> - Does user space software really need that fine grained accounting. If
> this information is used for charging purposes, isn't ms good enough.
>
> Thanks
> Vivek
>
next prev parent reply other threads:[~2010-04-02 18:55 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-01 22:00 [PATCH 0/3] blkio: IO controller stats Divyesh Shah
2010-04-01 22:01 ` [PATCH 1/3] blkio: Remove per-cfqq nr_sectors as we'll be passing Divyesh Shah
2010-04-01 22:01 ` [PATCH 2/3] blkio: Add io controller stats like Divyesh Shah
2010-04-02 18:10 ` Vivek Goyal
2010-04-02 20:53 ` Divyesh Shah
2010-04-05 14:45 ` Vivek Goyal
2010-04-05 22:16 ` Divyesh Shah
2010-04-02 18:17 ` Vivek Goyal
2010-04-02 18:54 ` Divyesh Shah [this message]
2010-04-01 22:01 ` [PATCH 3/3] blkio: Increment the blkio cgroup stats for real now Divyesh Shah
2010-04-02 19:10 ` Vivek Goyal
2010-04-02 23:36 ` Divyesh Shah
2010-04-05 15:12 ` Vivek Goyal
2010-04-05 16:53 ` Divyesh Shah
2010-04-05 17:29 ` Vivek Goyal
2010-04-05 22:06 ` Divyesh Shah
2010-04-02 6:45 ` [PATCH 0/3] blkio: IO controller stats Jens Axboe
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=w2naf41c7c41004021154qeb061645u9a0a0b074f90252b@mail.gmail.com \
--to=dpshah@google.com \
--cc=ctalbott@google.com \
--cc=jens.axboe@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=nauman@google.com \
--cc=vgoyal@redhat.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®