From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Mon, 23 Mar 2009 01:24:35 +0100 From: cinap_lenrek@gmx.de In-Reply-To: <959ad71b3d677ea98c0e6b2ef28db2dd@quanstro.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-mnuprlstartjxhwnesyjovmxdn" Subject: Re: [9fans] fossil periodic thread does zero sleep() Topicbox-Message-UUID: c1fb0e52-ead4-11e9-9d60-3106f5b1d025 This is a multi-part message in MIME format. --upas-mnuprlstartjxhwnesyjovmxdn Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit sorry for ignoring your post. avoiding a zero sleep is not the only problem i think, but the algorythm seems to get in some feedback loop where it starts sleeping shorter and shorter. i see thousands of zero sleep calls with this thing and the stats graph for syscalls makes a big bump and i would really like to understand why :) -- cinap --upas-mnuprlstartjxhwnesyjovmxdn Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-bounces+cinap_lenrek=gmx.de@9fans.net> X-Flags: 0000 Delivered-To: GMX delivery to cinap_lenrek@gmx.de Received: (qmail invoked by alias); 22 Mar 2009 23:45:26 -0000 Received: from gouda.swtch.com (EHLO gouda.swtch.com) [67.207.142.3] by mx0.gmx.net (mx021) with SMTP; 23 Mar 2009 00:45:26 +0100 Received: from localhost ([127.0.0.1] helo=gouda.swtch.com) by gouda.swtch.com with esmtp (Exim 4.67) (envelope-from <9fans-bounces@9fans.net>) id 1LlXIF-0004WF-Kt; Sun, 22 Mar 2009 23:41:27 +0000 Received: from ladd.quanstro.net ([69.55.170.73]) by gouda.swtch.com with esmtp (Exim 4.67) (envelope-from ) id 1LlXID-0004WA-Fq for 9fans@9fans.net; Sun, 22 Mar 2009 23:41:26 +0000 Message-ID: <959ad71b3d677ea98c0e6b2ef28db2dd@quanstro.net> From: erik quanstrom Date: Sun, 22 Mar 2009 19:41:24 -0400 To: 9fans@9fans.net In-Reply-To: <64ca22ab5ee16ec3a93db27d2b78fbe7@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] fossil periodic thread does zero sleep() X-BeenThere: 9fans@9fans.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.9fans.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: 9fans-bounces@9fans.net Errors-To: 9fans-bounces+cinap_lenrek=gmx.de@9fans.net X-GMX-Antivirus: 0 (no virus found) X-GMX-Antispam: 0 (Mail was not recognized as spam) X-GMX-UID: ov//cXc4YW0+Mps0wmZpWGd0amthcxsS > Can anybody explain this fossil behaviour from the periodic code? what if 0 < t - ct < 1? wouldn't it be a good idea to replace the doubles with vlongs? and replace *1e-6 with /1000000? that would make 0 < t - ct < 1 impossible. - erik --upas-mnuprlstartjxhwnesyjovmxdn--