Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1457113

RE: [RFC V2 PATCH 00/25] Kernel NET policy

From "Liang, Kan" <kan.liang@intel.com>
Newsgroups linux.kernel
Subject RE: [RFC V2 PATCH 00/25] Kernel NET policy
Date 2016-08-05 15:50 +0200
Message-ID <s2NFE-8dj-35@gated-at.bofh.it> (permalink)
References <s2wlr-5gw-3@gated-at.bofh.it> <s2AS5-af-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw



> 
> >  5. Why disable IRQ balance?
> >     A: Disabling IRQ balance is a common way (recommend way for some
> devices) to
> >        tune network performance.
> 
> I appreciate that network tuning is hard, most people get it wrong, and
> nobody agrees on the right answer.
> 
> So rather than fixing existing tools or writing new userspace tools to do
> network tuning, you want to hard code one policy manager in kernel with a
> /proc interface.

Current interaction is by /proc.  But it's not hard to have command line interface
to facilitate the user later. 
 
> Why not make a good userspace tool (like powertop).

AFAIK, Powertop mainly shows statistics and does global settings.
NET policy is more complex than powertop. It can do per process or per socket
setting. So it needs to coordinate requests from multiple users and dynamically
assign resource to users at run time. Considering the efficiency and complexity,
a kernel subsystem is more suitable, isn't it?

> There are also several
> IRQ balancing programs, but since irqbalance was championed by one
> vendor others seem to follow like sheep.

Based on my test, disabling IRQ balancing helps a lot for i40e performance.
So in my implementation, I made it a mandatory setting.
But NET policy intends to provide a generic infrastructure. If there are vendors
who want IRQ balancing, I think I can provide an option for the device driver.
Let the device driver decide if disabling IRQ balancing.

Thanks,
Kan

> 
> I agree that this a real concern but the implementation of this leaves much to
> be desired and discussed. Why can't this be done outside of the kernel.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC V2 PATCH 00/25] Kernel NET policy kan.liang@intel.com - 2016-08-04 21:30 +0200
  [RFC V2 PATCH 02/25] net/netpolicy: init NET policy kan.liang@intel.com - 2016-08-04 21:30 +0200
  [RFC V2 PATCH 11/25] net/netpolicy: add MIX policy kan.liang@intel.com - 2016-08-04 21:30 +0200
  [RFC V2 PATCH 01/25] net: introduce NET policy kan.liang@intel.com - 2016-08-04 21:30 +0200
  Re: [RFC V2 PATCH 00/25] Kernel NET policy Stephen Hemminger <stephen@networkplumber.org> - 2016-08-05 02:10 +0200
    RE: [RFC V2 PATCH 00/25] Kernel NET policy "Liang, Kan" <kan.liang@intel.com> - 2016-08-05 15:50 +0200
  Re: [RFC V2 PATCH 00/25] Kernel NET policy Alexei Starovoitov <alexei.starovoitov@gmail.com> - 2016-08-05 03:40 +0200

csiph-web