[lkml]   [1999]   [Apr]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Linux Tuning
> Just add two counters, one to count the number of times the queue was filled 
> to maximum, and one to count the total number of packets dropped because the
> queue was full. Then make them available as a read only value somewhere
> in the proc/sys/net area.

That requires another (reliable!) user-level process running at all times
for the feedback to make it to the admin, or for the admin to take
manual action (looking at some counters after reading a HOWTO).

In contrast, counters and a printk always informs the admin, at the
cost of a couple of lines of code in the kernel.

BTW, there is a counter of dropped packets now, netdev_rx_dropped.
I'm not sure where it comes out... the RX-DRP field of netstat -i?
someplace in proc?

Is there philosophy in the curent kernel about printks of this type?

-- g

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:51    [W:0.038 / U:2.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site