Commit e3a5f58
committed
netstacklat: Experiment with 2 nth packet sampling
Sample every 2-nth packet (50%)
- Overhead: 6039419756 / 32219314 = 187.44 ns
Compared to local atomic-nth overead: 157.67 ns
- approx 30 ns extra cost to sample 50% vs 3.12%
Signed-off-by: Jesper Dangaard Brouer <hawk@kernel.org>1 parent da2d609 commit e3a5f58
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments