Networking Forums

Networking Forums > Computer Networking > Linux Networking > FH starvation on busy select

Reply
Thread Tools Display Modes

FH starvation on busy select

 
 
Yuri Victorovich
Guest
Posts: n/a

 
      08-29-2004, 07:42 PM
I tried to post this to linux.kernel but it seems to be
read-only:
---
I have an application that listens with select
for many pipes. There are 100 pipes that actively
receive data (~2 MB/sec total), 100 idle ones and
one that receives short messages (8 bytes)
once in a while. All these 201 being fed to "select"
and then every one being checked with FD_ISSET.

All pipes were created with "pipe" call except
that last one that was created with "socketpair"
(SOCK_DGRAM).

I observe the problem: this last pipe receives
messages with long delay as if they were buffered.
I send them one-by-one from signal handler
and they only being sensed by "select" later
whole bunch at a time.

If data rate on 100 busy pipes drops problem
also disappears and 8-byte messages arrive
instantaneously.

Sounds like filehandle starvation symptom to me.

Anyone experienced similar problem?

Yuri.


OS: Linux linuxXXX.xxxxxx.com 2.4.20-30.7.legacysmp0xe #1 SMP Mon Jun
28 18:16:46 PDT 2004 i686 unknown
 
Reply With Quote
 
 
 
 
Pirabhu Raman
Guest
Posts: n/a

 
      08-30-2004, 04:25 PM
"Yuri Victorovich" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> I tried to post this to linux.kernel but it seems to be
> read-only:
> ---
> I have an application that listens with select
> for many pipes. There are 100 pipes that actively
> receive data (~2 MB/sec total), 100 idle ones and
> one that receives short messages (8 bytes)
> once in a while. All these 201 being fed to "select"
> and then every one being checked with FD_ISSET.
>
> All pipes were created with "pipe" call except
> that last one that was created with "socketpair"
> (SOCK_DGRAM).
>
> I observe the problem: this last pipe receives
> messages with long delay as if they were buffered.
> I send them one-by-one from signal handler
> and they only being sensed by "select" later
> whole bunch at a time.
>
> If data rate on 100 busy pipes drops problem
> also disappears and 8-byte messages arrive
> instantaneously.
>
> Sounds like filehandle starvation symptom to me.
>
> Anyone experienced similar problem?
>
> Yuri.


Do you service all descriptors (including the socket) everytime select
returns? Also, try tweaking the TCP_NODELAY option for the socket using
setsockopt call.


 
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
Busy wait vs something better Grumble Linux Networking 0 04-07-2006 05:57 PM
[PCMCIA] Ethernet Card seems to be busy Alexander Surma Linux Networking 0 01-21-2005 01:24 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