lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 5 Feb 2007 12:00:31 +0100
From:	Robert Olsson <Robert.Olsson@...a.slu.se>
To:	"K. Salah" <drsalah66@...il.com>
Cc:	netdev@...r.kernel.org, Robert.Olsson@...a.slu.se
Subject: NAPI quota and budget


Hello!

K. Salah writes:
 
 > I have a question about the quota per poll in NAPI.  Any idea how the
 > quota of 64 packets per poll per NIC was selected?  Why 64, not any
 > other number?  Is there science behind this number.

 The number comes from experimentation. The "science" is thats it's
 possible set any number at all.

 The first NAPI driver tulip (100 Mps) increased the RX-ringsize from 32 
 128 descriptors and used 16 pkts per poll.

 A quota of 64 for GIGE devices (tested with 256 descriptors) seemed to be 
 good compromise in experiments.  16 < 64 < netdev_budget 
  
 > And the same goes for the budget of 300?
 > 
 > Was that done based on expermintation?

 Yes it was the size of central buffer size before NAPI. It's possible
 the netdev_budget can be increased a bit today as the packet processing
 speed has increased.

 Cheers.
					--ro
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ