From mboxrd@z Thu Jan 1 00:00:00 1970 From: philsnow@gmail.com (Phil Snowberger) Date: Tue, 13 Nov 2007 15:26:26 -0500 Subject: [sup-talk] ruby/sup causing lots of wakeups-from-idle In-Reply-To: <1194830575-sup-5874@south> References: <6ab4c98f0711111649o3e06c24aq73750c99bc4af248@mail.gmail.com> <1194830575-sup-5874@south> Message-ID: <6ab4c98f0711131226q4772e60fuda2d98fe3d3e5b7d@mail.gmail.com> On Nov 11, 2007 8:24 PM, William Morgan wrote: > Excerpts from Phil Snowberger's message of Sun Nov 11 16:49:55 -0800 2007: > > I was wondering if anybody else has a problem with sup/ruby causing > > lots of wakeups-from-idle? > > Does this happen with other multithreaded Ruby apps? Sup uses select() > for input, and the only persistent threads have multi-second sleep > times. But I have no idea how that translates down to the OS level, as > Ruby does its own threading. I tried raggle to see if it would cause a similar amount of wakeups, and it does; Once it settles into a steady state (after it's checked each feed on startup), it does ~95 wakeups per second, just like sup. Sorry for what appears to be a false alarm; I'll take this question to some ruby folks. Thanks, --Phil