From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Or Gerlitz <or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH 4/5] ib/core: add support for extended performance counters in sysfs
Date: Tue, 1 Nov 2011 12:37:30 -0600 [thread overview]
Message-ID: <20111101183730.GI26974@obsidianresearch.com> (raw)
In-Reply-To: <CAJZOPZJCY5ehTGw8htsxw0dJgMXJJAS-=LGJde9ddcMsmhqvMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> > I don't see a problem with having a sysfs counter file being extended
> > to return a 64 bit number.. I think that is within the purvue of
> > acceptable changes. Shame the counter wasn't exported as hex though -
> > makes it harder to signal if it is 32 or 64 bit.
>
> if I understand you right, we would have traffic counters exposed
> through sysfs, where a counter is either a 32 zero-padded/embedded in
> 64bit one or true 64 bit one, a problem is that the four 32bit traffic
> counters (rx/tx data/packets) are actually part of the IB port L2
> basic counter set which includes about ten more counters to mark
> different kinds of errors, wheres the 64bit counters are only traffic
> counters, so what do you suggest for them? use the same approach for
> the error counters as well even though IB doesn't define 64 bit
> version for them? also zero padding for something which isn't exported
> in hex is very ugly, isn't that?
Whats the problem here? If a 64 bit counter is available then export
it as 64 bit otherwise keep exporting something smaller.
I agree zero padding non-hex numbers isn't ideal. Export as hex?
Broadly, this is another problem with the sysfs interface because the
width matters for any kind of serious data collection, and IBA defined
interesting widths for many of the counters that was flowed right
through the sysfs interface, with no means of discovery.
> > Frankly, exporting these PMA counters as saturate on maximum via sysfs
> > is pretty useless. Does anyone actually use them aside from a few scripts?
>
> under IB our monitorying code/scripts use perfquery/mads wheres under
> IBoE we use sysfs, the mad approach allows to reset the counters, so
> the 32 bit counters aren't useless, reset via sysfs isn't supported so
> the 64 bit counter are kind of must, anyway,
I don't mean the 32 bit counters are useless, I mean exposing PMA
counters that saturate and can be randomly reset by external agents
through sysfs is useless. You can't make any kind of data collection
based on such a system.
Ideally the sysfs counters are all non-saturating, non-resetting
counters like everything else in the net stack. You need a different
interface to the chip firmware to implement this, can't use the
existing PMA stuff.
In the same vien adding saturating but non-resettable PMA-esque
counters for IBoE seems pretty hackish to me.. Though I agree it is
not terribly relevant for 64 bit counters.
> > What would be useful is free running 64 bit sysfs counters that
> > are independent and not reset by PMA activity. Like all the other
> > Linux networking counters. That would be great. I hope that is
> > what is done for IBoE?
>
> yes this is what the 64 bit counters are
IBA defined 64 bit counters are not free-running, they still
saturate. Does the firmware not do this in IBoE mode?
> > Unifying the counters to be semantically the same on IB and IBoE seems
> > like a very good idea.
> yes, this is what we do here
I disagree. Your IBoE counters cannot be reset, externally or
otherwise - aside from the saturating this makes them almost the same
as the usual Linux net counters. When the port is in IB mode the
counter doesn't have those properties.
That is a big semantic difference when compared to what these sysfs
files show for normal IB counters.
Jason
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-11-01 18:37 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-10 8:51 [PATCH for-3.2] IBoE fixes Or Gerlitz
[not found] ` <alpine.LRH.2.00.1110101047420.10901-VYr5/9ddeaGSIdy2EShu12Xnswh1EIUO@public.gmane.org>
2011-10-10 8:53 ` [PATCH 1/5] ib/mlx4: enable 4K mtu for IBoE Or Gerlitz
2011-10-10 8:54 ` [PATCH 2/5] ib/mlx4: remove setting of vlan in IBoE WQEs control segment Or Gerlitz
2011-10-10 8:55 ` [PATCH 3/5] net/mlx4_core: remove module param controlling the vlan table size Or Gerlitz
[not found] ` <alpine.LRH.2.00.1110101055050.11243-VYr5/9ddeaGSIdy2EShu12Xnswh1EIUO@public.gmane.org>
2011-10-10 17:00 ` Roland Dreier
[not found] ` <CAG4TOxNaQicA6ExuNsw8V95mJPD+AQX5Wrfg+rCoBxdr2E+2ww-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-11 7:24 ` Or Gerlitz
[not found] ` <4E93EF38.5040707-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-10-11 17:28 ` Roland Dreier
[not found] ` <CAL1RGDVk2EOmgWU_iZQWQqKJFPNYN4o_5_14Qbr_6wUzTJ1bOg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-11 19:18 ` Or Gerlitz
[not found] ` <CAJZOPZJnzUm2M1zm1564TUwKCN3r=y3g-4pwTL4bJPDo2V4s9w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-10-11 19:22 ` Roland Dreier
2011-10-16 8:32 ` Or Gerlitz
2011-10-16 8:26 ` [PATCH V1 3/5] net/mlx4_core: deprecate " Or Gerlitz
2011-10-10 8:56 ` [PATCH 4/5] ib/core: add support for extended performance counters in sysfs Or Gerlitz
[not found] ` <alpine.LRH.2.00.1110101055570.11243-VYr5/9ddeaGSIdy2EShu12Xnswh1EIUO@public.gmane.org>
2011-10-31 19:38 ` Roland Dreier
[not found] ` <CAL1RGDXdkiZNtAsnqDtgbCJGLXLFvk8s-YA5mR189kmg6FkabQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 6:40 ` Or Gerlitz
[not found] ` <CAJZOPZ+K3u+u5XutGfBhKh3DaBpNRKV_bw67CLK6jy3060OHqA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 16:22 ` Jason Gunthorpe
[not found] ` <20111101162218.GA10710-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-01 17:23 ` Or Gerlitz
[not found] ` <CAJZOPZLXZL=vEDdXE3rE5Jzw840SrdY=73M7QgKSNzOysRE6MQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 17:36 ` Jason Gunthorpe
[not found] ` <20111101173625.GH26974-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-01 18:14 ` Or Gerlitz
[not found] ` <CAJZOPZJCY5ehTGw8htsxw0dJgMXJJAS-=LGJde9ddcMsmhqvMg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 18:37 ` Jason Gunthorpe [this message]
[not found] ` <20111101183730.GI26974-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-01 21:42 ` Roland Dreier
2011-11-01 21:44 ` Or Gerlitz
2011-11-01 21:52 ` Jason Gunthorpe
[not found] ` <20111101215200.GN26974-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-01 22:03 ` Ira Weiny
[not found] ` <20111101150358.17d232ee.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-11-01 22:11 ` Jason Gunthorpe
[not found] ` <20111101221135.GP26974-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-01 22:19 ` Ira Weiny
2011-11-01 22:34 ` Or Gerlitz
[not found] ` <CAJZOPZJh2T5nCsdU9B0anUnoB=SpRD2_yBLT620zEi0Kr12MFg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 22:46 ` Ira Weiny
[not found] ` <20111101154627.f3c847dd.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-11-02 7:38 ` Or Gerlitz
2011-11-02 17:16 ` Or Gerlitz
[not found] ` <4EB17AF9.3000608-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-11-08 0:54 ` Roland Dreier
[not found] ` <CAG4TOxOYAnuB8oKkJgr9_6EpF+YR-h9WNak+gSWwpV0Nz-LeZg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-08 1:09 ` Jason Gunthorpe
[not found] ` <20111108010952.GC4934-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-08 16:06 ` Ira Weiny
[not found] ` <20111108080606.7c5dd62c.weiny2-i2BcT+NCU+M@public.gmane.org>
2011-12-20 11:49 ` Or Gerlitz
2011-12-20 11:49 ` Or Gerlitz
2011-12-20 12:03 ` Or Gerlitz
[not found] ` <4EF07993.2090900-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2011-12-20 17:46 ` Jason Gunthorpe
[not found] ` <20111220174639.GE25774-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-12-20 19:40 ` Or Gerlitz
[not found] ` <CAJZOPZ+rBKck50kmyhLZ3VNLNmoS_K6cA3Pj3L6XQjcBQo6DjA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-20 19:50 ` Jason Gunthorpe
[not found] ` <20111220195014.GH25774-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-12-20 19:56 ` Or Gerlitz
2012-01-04 19:29 ` Or Gerlitz
2011-12-22 17:09 ` Or Gerlitz
2011-11-01 21:46 ` Or Gerlitz
[not found] ` <CAJZOPZ+zmwTdHva5C7k0QhBmEzxSGTa1Ajszz3eSH=WpP3A4fg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 21:58 ` Jason Gunthorpe
[not found] ` <20111101215843.GO26974-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-11-02 8:27 ` Or Gerlitz
2011-11-01 21:49 ` Roland Dreier
[not found] ` <CAG4TOxM4n3=51-3UqYF=iRS25OdRjTXoKDD6u1DukgRrwvTW1g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-01 22:32 ` Or Gerlitz
2011-11-01 22:49 ` Hefty, Sean
2011-10-10 8:57 ` [PATCH 5/5] ib/mlx4: added support for extended PMA counters under IBoE Or Gerlitz
2011-10-26 7:04 ` [PATCH for-3.2] IBoE fixes Or Gerlitz
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=20111101183730.GI26974@obsidianresearch.com \
--to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=or.gerlitz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=roland-DgEjT+Ai2ygdnm+yROfE0A@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