[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <DM5PR2101MB09344BA75F08EC926E31E040CA7C0@DM5PR2101MB0934.namprd21.prod.outlook.com>
Date: Fri, 17 Jul 2020 16:18:11 +0000
From: Haiyang Zhang <haiyangz@...rosoft.com>
To: Stephen Hemminger <stephen@...workplumber.org>,
Chi Song <Song.Chi@...rosoft.com>
CC: KY Srinivasan <kys@...rosoft.com>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Wei Liu <wei.liu@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
Andrii Nakryiko <andriin@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...omium.org>,
"linux-hyperv@...r.kernel.org" <linux-hyperv@...r.kernel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH net-next] net: hyperv: Add attributes to show RX/TX
indirection table
> -----Original Message-----
> From: Stephen Hemminger <stephen@...workplumber.org>
> Sent: Friday, July 17, 2020 11:25 AM
> To: Chi Song <Song.Chi@...rosoft.com>
> Cc: KY Srinivasan <kys@...rosoft.com>; Haiyang Zhang
> <haiyangz@...rosoft.com>; Stephen Hemminger <sthemmin@...rosoft.com>;
> Wei Liu <wei.liu@...nel.org>; David S. Miller <davem@...emloft.net>; Jakub
> Kicinski <kuba@...nel.org>; Alexei Starovoitov <ast@...nel.org>; Daniel
> Borkmann <daniel@...earbox.net>; Martin KaFai Lau <kafai@...com>; Song
> Liu <songliubraving@...com>; Yonghong Song <yhs@...com>; Andrii Nakryiko
> <andriin@...com>; John Fastabend <john.fastabend@...il.com>; KP Singh
> <kpsingh@...omium.org>; linux-hyperv@...r.kernel.org;
> netdev@...r.kernel.org
> Subject: Re: [PATCH net-next] net: hyperv: Add attributes to show RX/TX
> indirection table
>
> On Fri, 17 Jul 2020 06:04:31 +0000
> Chi Song <Song.Chi@...rosoft.com> wrote:
>
> > The network is observed with low performance, if TX indirection table is
> imbalance.
> > But the table is in memory and set in runtime, it's hard to know. Add them to
> attributes can help on troubleshooting.
>
>
> The receive indirection table comes from RSS configuration.
> The RSS configuration is already visible via ethtool so adding sysfs support for
> that is redundant.
>
> The transmit indirection table comes from the host, and is unique to this driver.
> So adding a sysfs file for that makes sense.
>
> The format of sysfs files is that in general there should be one value per file.
>
> One other possibility would be to make these as attributes under each queues.
> But that is harder.
The vmbus has per channel sysfs entries, but the channels are numbered by
Rel_ID globally (not the subchannel index). Also the TX table is a many to one
mapping from table index to channel index, ie. Multiple table entries map to
one channel. So display the TX indirection table entries under each channel
will requires additional steps to figure out the actual table contents.
In sysfs, most files are short. But there are existing examples, such as " uevent"
contains multiple values, even name and value pairs.
We knew the ethtool can output the RX table. But for Azure telemetry tools,
it prefers to access the info from sysfs. Also in some minimal installation,
"ethtool" may not always be installed. It will be more reliable for Azure
telemetry tools to have the data in sysfs as well.
Thanks,
- Haiyang
Powered by blists - more mailing lists