[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <17863.3663.723022.836914@robur.slu.se>
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