* Raw stats
@ 2013-07-11 5:35 Stefan Priebe - Profihost AG
[not found] ` <DE95649B-13EB-4733-BFCD-4B67F82D179B-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-07-11 5:35 UTC (permalink / raw)
To: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: kmo-PEzghdH756F8UrSeD/g0lQ@public.gmane.org
The stats_total counters are formatted to GB MB,... for several use cases raw values would be better (f.e.nagios plugin). Is this possible?
Stefan--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Raw stats
[not found] ` <DE95649B-13EB-4733-BFCD-4B67F82D179B-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
@ 2013-07-12 1:33 ` Kent Overstreet
2013-07-12 6:14 ` Stefan Priebe - Profihost AG
0 siblings, 1 reply; 3+ messages in thread
From: Kent Overstreet @ 2013-07-12 1:33 UTC (permalink / raw)
To: Stefan Priebe - Profihost AG
Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On Thu, Jul 11, 2013 at 07:35:01AM +0200, Stefan Priebe - Profihost AG wrote:
> The stats_total counters are formatted to GB MB,... for several use cases raw values would be better (f.e.nagios plugin). Is this possible?
Heh, I imagine Greg K-H or someone would say the sysfs stuff should only
be exporting the raw values..
It'd be pretty easy to add _raw versions, though - or maybe _bytes? I'm
not terribly eager to wade through the sysfs code right this minute, but
the sysfs code should be pretty easy to figure out if you want to try
it and I'd take a patch.
(Look for sysfs_hprint() calls in sysfs.c and stats.c; add attributes
(the read_attribute() things) for the files you want to add and
sysfs_print() calls for the raw versions)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Raw stats
2013-07-12 1:33 ` Kent Overstreet
@ 2013-07-12 6:14 ` Stefan Priebe - Profihost AG
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Priebe - Profihost AG @ 2013-07-12 6:14 UTC (permalink / raw)
To: Kent Overstreet; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Am 12.07.2013 03:33, schrieb Kent Overstreet:
> On Thu, Jul 11, 2013 at 07:35:01AM +0200, Stefan Priebe - Profihost AG wrote:
>> The stats_total counters are formatted to GB MB,... for several use cases raw values would be better (f.e.nagios plugin). Is this possible?
>
> Heh, I imagine Greg K-H or someone would say the sysfs stuff should only
> be exporting the raw values..
>
> It'd be pretty easy to add _raw versions, though - or maybe _bytes? I'm
> not terribly eager to wade through the sysfs code right this minute, but
> the sysfs code should be pretty easy to figure out if you want to try
> it and I'd take a patch.
>
> (Look for sysfs_hprint() calls in sysfs.c and stats.c; add attributes
> (the read_attribute() things) for the files you want to add and
> sysfs_print() calls for the raw versions)
I would vote for dropping this human stuff too and use raw / byte values
in general. Makeing nice looking values out of it is always up to utils
or the user.
Greets,
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-07-12 6:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-11 5:35 Raw stats Stefan Priebe - Profihost AG
[not found] ` <DE95649B-13EB-4733-BFCD-4B67F82D179B-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org>
2013-07-12 1:33 ` Kent Overstreet
2013-07-12 6:14 ` Stefan Priebe - Profihost AG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox