From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11012a,2b72ec979ea95f08,start X-Google-Attributes: gid11012a,public X-Google-Thread: f9382,2b72ec979ea95f08,start X-Google-Attributes: gidf9382,public X-Google-Thread: 10d4db,2b72ec979ea95f08,start X-Google-Attributes: gid10d4db,public X-Google-Thread: fc6b5,2b72ec979ea95f08,start X-Google-Attributes: gidfc6b5,public X-Google-ArrivalTime: 1993-03-15 14:01:51 PST Xref: sparky alt.irc:6297 alt.irc.ircii:350 comp.os.linux:31586 comp.os.linux.announce:401 Newsgroups: alt.irc,alt.irc.ircii,comp.os.linux,comp.os.linux.announce Path: sparky!uunet!cs.utexas.edu!uwm.edu!caen!batcomputer!db.TC.Cornell.EDU!mdw From: ig25@fg20.rz.uni-karlsruhe.de (Thomas Koenig) Subject: ircii for Linux hogs CPU, solution Message-ID: <1993Mar15.215117.1016@tc.cornell.edu> Originator: mdw@db.TC.Cornell.EDU Keywords: IRC client Sender: news@tc.cornell.edu Nntp-Posting-Host: db.tc.cornell.edu Organization: University of Karlsruhe, Germany Date: Mon, 15 Mar 1993 21:51:17 GMT A quick word of warning for those who do want to use the ircii client on Linux: If you compile it "out of the box", you'll get a CPU hog. The reason for this is that Linux currently changes the value the fourth parameter of the select(2) call points to to reflect actually elapsed time. This means that ircii will go into a tight loop of select() calls, which is an excellent CPU hog. The solution is straightforward: Save the value the parameter which the timeout pointer points to (if that pointer isn't equal to NULL), and restore it after the call to select(). This needs to be done in the function new_select(). No context diffs available right here, unfortunately... -- Thomas Koenig, ig25@rz.uni-karlsruhe.de, ig25@dkauni2.bitnet The joy of engineering is to find a straight line on a double logarithmic diagram. -- Send submissions for comp.os.linux.announce to: linux-announce@tc.cornell.edu