Re: Reading from PF_PACKET, SOCK_DGRAM loses packets

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 27 Jul 2002, Marc Haber wrote:

> On Fri, Jul 26, 2002 at 06:40:06PM +0200, Roland Kuhn wrote:
> > On Fri, 26 Jul 2002, Marc Haber wrote:
> > > it looks like reading from a socket opened with PF_PACKET, SOCK_DGRAM
> > > loses data if the system is non-trivially loaded.
> > > 
> > What exactly is this non-trivial load?
> 
> ISP-backbone type of load, roughly 5000 Packets a second, 8 Mbit
> sustained.
> 
What I meant was the load of processes running on the server. If I've 
understood your situation correctly everything was running fine until you 
started some additional local processes?

> > If it sometimes consumes the whole 
> > of its timeslice then your net-acct is not scheduled for at least 10ms 
> > which makes up about 50 packets. I don't know how long the queue is, 
> > though... (might be 64kB, 50*mtu=75kB)
> 
> We have set {r|w}mem_{max|default} to 256 Kbyte, but your calculation
> makes sense.
> 
> Can the program learn if the queue has overflowed, so that it is able
> to yell at its admins for a larger queue? How can I give net-acct a
> chance to empty the queue before it is deferred again?
> 
Maybe only at realtime priority, but I've no clue of what I say here... 
Unluckily I'm not a guru :-(

Ciao,
					Roland

+---------------------------+-------------------------+
|    TU Muenchen            |                         |
|    Physik-Department E18  |  Raum    3558           |
|    James-Franck-Str.      |  Telefon 089/289-12592  |
|    85747 Garching         |                         |
+---------------------------+-------------------------+

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux