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 [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to