Re: Reading from PF_PACKET, SOCK_DGRAM loses packets

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

 



On Sun, Jul 28, 2002 at 10:57:40PM +0200, Roland Kuhn wrote:
> 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?

The only processes running on the machine are the netacct and zebra's
BGP and OSPF daemons.

Before, we were running net-acct, collecting data via an AF_INET,
SOCK_PACKET socket. I am not aware that this setup lost any data, but
it was established before my time.

The new net-acct uses PF_PACKET, SOCK_DGRAM instead, and this for sure
loses data :-(

> > 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,

*yuck*

> but I've no clue of what I say here... 
> Unluckily I'm not a guru :-(

The gurus did not care to comment yet.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Karlsruhe, Germany |  lose things."    Winona Ryder | Fon: *49 721 966 32 15
Nordisch by Nature |  How to make an American Quilt | Fax: *49 721 966 31 29
-
: 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