Networking Forums

Networking Forums > Computer Networking > Linux Networking > Busy wait vs something better

Reply
Thread Tools Display Modes

Busy wait vs something better

 
 
Grumble
Guest
Posts: n/a

 
      04-07-2006, 05:57 PM
[ Followup-To set to comp.os.linux.development.apps ]

Hello,

I'm working on a Linux application that is supposed to process UDP
packets at a high rate: roughly 4 packets per ms.

Right now, the receiver busy waits on the socket to minimize the delay
between the time when the packet reaches the network card and the time
when the application gets to process the packet.

The actual processing accounts only for 1-2% of the CPU utilization,
98-99% is wasted in the busy wait loop.

I've been told that the usual "better" approaches, like using select()
to sleep while waiting for new packets, do not work, because (??) the
arrival rate is larger than the time quantum (1 ms on recent kernels?).

I'm very open to suggestions, opinions, ideas...

I'll also take links to papers / articles discussing implementation of
similar systems.

(I'm working with kernel 2.6.14.6 in case it matters.)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Busy on air with Wifi Clemens.van.Os@gmail.com Wireless Internet 1 08-02-2006 02:32 PM
[PCMCIA] Ethernet Card seems to be busy Alexander Surma Linux Networking 0 01-21-2005 01:24 PM
FH starvation on busy select Yuri Victorovich Linux Networking 1 08-30-2004 04:25 PM
mctd.exe makes cpu busy Rasoul Khoshravan Azar Windows Networking 7 07-09-2004 07:52 AM
initrd 'dev busy'? Robert McKee Linux Networking 3 04-25-2004 03:55 PM



1 2 3 4 5 6 7 8 9 10 11