From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,5b00aff32b0c527,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-05-28 09:57:14 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!neptune.axime-is.fr!usenet From: "Philippe Planchon" Newsgroups: comp.unix.tru64 Subject: select performance issue Date: Mon, 28 May 2001 18:42:42 +0200 Organization: Axime IS/DSM Message-ID: <9eu06g$b6@neptune.axime-is.fr> NNTP-Posting-Host: 160.92.129.2 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Xref: archiver1.google.com comp.unix.tru64:2320 Anybody knows how select system call performance scales when the number of file desc to multiplex becomes > 100 ? We have a performance issue with a process that has > 1000 file desc open and makes select calls with more than 200 desc (100 fifo, 100 socket) in the read mask. This process uses an abnormal amount of system cpu time. It seems to be related to the select call because it goes much better if we run two instances of the process, with half the number of fifo and socket each, we reduce the global load of the system. We made a small test case to try to reproduce this, and we found that select cpu usage grows very slowly when the number of file desc is small (100 or 200), but after this cpu usage grows quickly. Also tried to use poll, but same results. Any idea? Thanks.