drop counts
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): Pine.WNT.4.63.0507201505370.1936@jbrandeb-desk.amr.corp.intel.com
Quoted 6 lines · Jesse Brandeburg
dropped: rnbc does not mean dropped, see above. mpc means dropped.
fifo: mpc means the fifo overflowed, and the packet was dropped (the only time we drop).
missed: this should also be mpc because it shows we missed the packet.
Wow, thanks! So there we were reporting drops prior to 2.6.12 when there possibly were none!
I've confirmed with a traffic generator here that rnbc does not include packets actually dropped. It's interesting that at about 1Mpps sustained for 10s, mpc was 548,888, while rnbc was 4,331,730 suggesting that the nic was trying to DMA to the buffer at a higher rate than the packet receive rate.
Anway recapping...
2.6.11 stats were mapped like:
packets = gprc
dropped = rnbc
fifo = mpc
missed = mpc
In 2.6.12 this changed to:
packets = gprc
dropped = mpc
fifo = mpc
missed = mpc
Quoted 1 line
now, its debatable if we should be reporting the same stat 3 times, but i still think it is correct, and its how our hardware maps stats and the best we can overlay onto linux's definitions as we interpret them.
I think there still is a problem. Notice that /proc/net/dev reports rx_dropped + rx_missed_errors for the drop column, and so will be double counting drops currently. Therefore I think we should be doing:
packets = gprc
dropped = 0
fifo = rnbc
missed = mpc
I'm putting rnbc in fifo as it's not accumulated into anything else in the kernel. Also it's good to have it reported as one can see when there is pressure on the e1000 driver buffer. This is useful for tuning its size to protect against drops and latency.
thanks,
Pádraig.
e1000_main_drops.c renamed from e1000_main.c +1 -2
@@ -2639,11 +2639,10 @@ adapter->stats.crcerrs + adapter->stats.algnerrc + adapter->stats.rlec + adapter->stats.mpc + adapter->stats.cexterr; - adapter->net_stats.rx_dropped = adapter->stats.mpc; adapter->net_stats.rx_length_errors = adapter->stats.rlec; adapter->net_stats.rx_crc_errors = adapter->stats.crcerrs; adapter->net_stats.rx_frame_errors = adapter->stats.algnerrc; - adapter->net_stats.rx_fifo_errors = adapter->stats.mpc; + adapter->net_stats.rx_fifo_errors = adapter->stats.rnbc; adapter->net_stats.rx_missed_errors = adapter->stats.mpc;/* Tx Errors */
Quoted 9 lines · On Thu, 21 Jul 2005, [email protected] wrote:
Quoted 6 lines
dropped: rnbc does not mean dropped, see above. mpc means dropped.
fifo: mpc means the fifo overflowed, and the packet was dropped (the only time we drop).
missed: this should also be mpc because it shows we missed the packet.
Wow, thanks! So there we were reporting drops prior to 2.6.12 when there possibly were none!
yeah, that was kind of ugly.
Quoted 4 lines
It's interesting that at about 1Mpps sustained for 10s, mpc was 548,888, while rnbc was 4,331,730 suggesting that the nic was trying to DMA to the buffer at a higher rate than the packet receive rate.
Not really that interesting because the NIC may have been trying multiple times internally to DMA the data (possibly as each packet was received) and failing each time.
Quoted 23 lines
2.6.11 stats were mapped like:
packets = gprc
dropped = rnbc
fifo = mpc
missed = mpcIn 2.6.12 this changed to:
packets = gprc
dropped = mpc
fifo = mpc
missed = mpcQuoted 3 lines
now, its debatable if we should be reporting the same stat 3 times, but i still think it is correct, and its how our hardware maps stats and the best we can overlay onto linux's definitions as we interpret them.
I think there still is a problem. Notice that
/proc/net/devreportsrx_dropped+rx_missed_errorsfor the drop column, and so will be double counting drops currently. Therefore I think we should be doing:
Quoted 4 lines
packets = gprc
dropped = 0
fifo = rnbc
missed = mpc
Double counting drops may be an issue, and I believe we should make that change. but I don't think its the right thing to report rnbc in fifo errors (there was actually no error).
Quoted 5 lines
I'm putting rnbc in fifo as it's not accumulated into anything else in the kernel. Also it's good to have it reported as one can see when there is pressure on the e1000 driver buffer. This is useful for tuning its size to protect against drops and latency.
Whenever I want the RNBC numbers I simply look into ethtool -S eth0, and that allows me to tune. I see no reason to "reuse" the fifo errors stat with misleading data.
Once again, having clear guidelines on what these stats actually mean for drivers and when they should use them for ethernet would be *really* useful.
Jesse
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
Quoted 14 lines · Jesse Brandeburg
Quoted 12 lines · On Thu, 21 Jul 2005, [email protected] wrote:
In 2.6.12 this changed to:
packets = gprc
dropped = mpc
fifo = mpc
missed = mpcI think there still is a problem. Notice that
/proc/net/devreportsrx_dropped+rx_missed_errorsfor the drop column, and so will be double counting drops currently. Therefore I think we should be doing:
Quoted 7 lines
Quoted 4 lines
packets = gprc
dropped = 0
fifo = rnbc
missed = mpcDouble counting drops may be an issue, and I believe we should make that change.
great.
Quoted 10 lines
but I don't think its the right thing to report rnbc in fifo errors (there was actually no error).
Quoted 5 lines
I'm putting rnbc in fifo as it's not accumulated into anything else in the kernel. Also it's good to have it reported as one can see when there is pressure on the e1000 driver buffer. This is useful for tuning its size to protect against drops and latency.
Whenever I want the RNBC numbers I simply look into ethtool -S eth0, and that allows me to tune. I see no reason to "reuse" the fifo errors stat with misleading data.
Fair enough if rnbc is actually reported.
ethtool -S doesn't report it with my driver,
but I see this stat has been added to the
latest driver at least.
So I agree on both points.
thanks!
Signature · 9 lines
Pádraig Brady - http://www.pixelbeat.org -- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click