From: "Bryn M. Reeves" <bmr-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Greg KH <gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org>
Cc: "Seymour, Shane M" <shane.seymour-VXdhtT5mjnY@public.gmane.org>,
"linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
"Kai.Makisara-9Aww8k/80nUxHbG02/KK1g@public.gmane.org"
<Kai.Makisara-9Aww8k/80nUxHbG02/KK1g@public.gmane.org>,
"James E.J. Bottomley
(JBottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org)"
<JBottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>,
"Laurence Oberman
(loberman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org)"
<loberman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
Subject: Re: [RFC] implementing tape statistics single file vs multi-file in sysfs
Date: Tue, 10 Feb 2015 14:27:20 +0000 [thread overview]
Message-ID: <20150210142719.GA1437@localhost.localdomain> (raw)
In-Reply-To: <20150207040743.GB29944-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
On Sat, Feb 07, 2015 at 12:07:43PM +0800, Greg KH wrote:
> On Fri, Feb 06, 2015 at 03:41:58PM +0000, Bryn M. Reeves wrote:
> > I can't speak for Shane but wouldn't spend too much time looking at the
> > current v2 patch: it's the result of a pretty ugly compromise suggested
> > on linux-scsi.
>
> Fair enough, but please feel free to cc: me on the patch that you do
> feel is correct to get a sysfs-related review.
Will do; I'm back from travels this week & will have some time to look at
this.
> > Likewise for disk stats: although fluff like maj:min/name etc. has been
> > shuffled a few times the basic fields have remained unchanged for a very
> > long time and sysfs already removes the need to include an identity
> > field.
>
> We already handle i/o stats just fine, why create a special sysfs
> interface for just a tape device interface? What makes them so special?
But the iostats use exactly the sort of array file we're talking about:
$ cat /sys/block/sda/stat
127644 20869 4320505 2305697 154045 30056 3834036 9065092 0 931842 11371357
And we can't simply extend these to tapes as they are not block devices.
> > I understand the fact that you can't change them; I just don't think it's
> > a big problem in this specific case (and much less than some of the
> > more imaginative sysfs content - 2d int arrays with column headers
> > anyone?).
>
> What sysfs file is a 2d int array? I'll be glad to fix it.
$ cat /sys/fs/selinux/avc/cache_stats
lookups hits misses allocations reclaims frees
18938916 18921707 17209 17209 17328 22215
38164283 38146514 17769 17769 16800 19049
18078108 18056991 21117 21117 21344 19305
15168204 15150079 18125 18125 17776 13149
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
0 0 0 0 0 0
$ cat /sys/fs/selinux/avc/hash_stats
entries: 506
buckets used: 290/512
longest chain: 5
> If you want to measure tens of thousands of tape devices then you
> shouldn't be using sysfs in the first place as it is not designed for
> "speed" at all. Use the existing i/o rate interfaces instead, don't try
> to cram something into sysfs that doesn't belong there.
So far as I'm aware there is no other way to obtain performance data
for the SCSI tape subsystem (without resorting to ftrace/systemtap).
Regards,
Bryn.
next prev parent reply other threads:[~2015-02-10 14:27 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-06 0:20 [RFC] implementing tape statistics single file vs multi-file in sysfs Seymour, Shane M
[not found] ` <DDB9C85B850785449757F9914A034FCB3BF3EADA-4I1V4pQFGigSZAcGdq5asR6epYMZPwEe5NbjCUgZEJk@public.gmane.org>
2015-02-06 9:13 ` Bryn M. Reeves
[not found] ` <20150206091354.GA1143-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-02-06 13:01 ` Greg KH
2015-02-06 12:59 ` Greg KH
[not found] ` <20150206125916.GB26247-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-02-06 15:41 ` Bryn M. Reeves
2015-02-07 4:07 ` Greg KH
2015-02-08 2:27 ` Laurence Oberman
2015-02-08 2:45 ` Greg KH
2015-02-08 8:32 ` "Kai Mäkisara (Kolumbus)"
[not found] ` <20150208024506.GC15396-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-02-08 17:35 ` James Bottomley
[not found] ` <20150207040743.GB29944-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2015-02-10 14:27 ` Bryn M. Reeves [this message]
[not found] ` <20150210142719.GA1437-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2015-02-10 22:30 ` Greg KH
2015-02-11 11:32 ` Bryn M. Reeves
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=20150210142719.GA1437@localhost.localdomain \
--to=bmr-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=JBottomley-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org \
--cc=Kai.Makisara-9Aww8k/80nUxHbG02/KK1g@public.gmane.org \
--cc=gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org \
--cc=linux-api-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=loberman-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=shane.seymour-VXdhtT5mjnY@public.gmane.org \
/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).