From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.42.180.131 with SMTP id bu3cs71898icb; Wed, 10 Nov 2010 08:02:28 -0800 (PST) Received: by 10.42.165.194 with SMTP id l2mr501928icy.161.1289404947814; Wed, 10 Nov 2010 08:02:27 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id h28si2004794yha.0.2010.11.10.08.02.27; Wed, 10 Nov 2010 08:02:27 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 36062177994A; Wed, 10 Nov 2010 11:02:27 -0500 (EST) Received: from rcsinet10.oracle.com (rcsinet10.oracle.com [148.87.113.121]) by rubyforge.org (Postfix) with ESMTP id AB5741858392 for ; Wed, 10 Nov 2010 09:41:47 -0500 (EST) Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAAEfjWl013161 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Nov 2010 14:41:46 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAAEfgnO028813 for ; Wed, 10 Nov 2010 14:41:42 GMT Received: from abhmt001.oracle.com by acsmt355.oracle.com with ESMTP id 765430411289400095; Wed, 10 Nov 2010 06:41:35 -0800 Received: from localhost (/66.66.148.185) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Nov 2010 06:41:34 -0800 From: Chris Mason To: Chris Mason In-reply-to: <1289349454-sup-1015@think> References: <1289349454-sup-1015@think> Date: Wed, 10 Nov 2010 09:41:30 -0500 Message-Id: <1289399902-sup-201@think> User-Agent: Sup/git X-Mailman-Approved-At: Wed, 10 Nov 2010 10:00:18 -0500 Cc: sup-devel Subject: Re: [sup-devel] really high wakeup count in powertop X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org Excerpts from Chris Mason's message of 2010-11-09 19:40:58 -0500: > Hi everyone, > > I'm new to sup and really like the interface and the features. But, I > popped up powertop while it was running and sup accounts for a constant 100 > wakeups/second, much more than the one or two wakeups/sec from our old > friend mutt. > > I haven't done much ruby but can make my way through most things. If > someone could point me at the polling function most likely to cause the > wakeups I can work out a patch. > > I'm running git from this Monday, so pretty recent. Ruby 1.9.1 (This got dumped into the moderator approval queue, so I'm resending, this time with more details) strace showed we were hammering on futexes, and a little digging made it clear sup isn't to blame. The ruby timer thread is polling for signals (or something) every 10ms: http://redmine.ruby-lang.org/issues/show/3436 I patched up ruby to poll every 500ms and things seem to work. Not sure why the ruby developers didn't just change the timeout, but chances are good they have a real reason. I'll post to that bug. -chris _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel