From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757999AbXKTI5Z (ORCPT ); Tue, 20 Nov 2007 03:57:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752910AbXKTI5R (ORCPT ); Tue, 20 Nov 2007 03:57:17 -0500 Received: from mx3.mail.elte.hu ([157.181.1.138]:49308 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751241AbXKTI5Q (ORCPT ); Tue, 20 Nov 2007 03:57:16 -0500 Date: Tue, 20 Nov 2007 09:57:04 +0100 From: Ingo Molnar To: Pavel Machek Cc: kernel list , tglx@linutronix.de Subject: Re: nohz and strange sleep latencies Message-ID: <20071120085704.GA19950@elte.hu> References: <20071119203152.GA1772@elf.ucw.cz> <20071119205555.GA28696@elte.hu> <20071119211142.GA1857@elf.ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071119211142.GA1857@elf.ucw.cz> User-Agent: Mutt/1.5.17 (2007-11-01) X-ELTE-VirusStatus: clean X-ELTE-SpamScore: -1.5 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-1.5 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.1.7-deb -1.5 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org * Pavel Machek wrote: > > > 0.00user 0.00system 0.08 (0m0.081s) elapsed 3.71%CPU > > > 0.00user 0.00system 0.01 (0m0.013s) elapsed 23.33%CPU > > > 0.00user 0.00system 0.01 (0m0.019s) elapsed 15.92%CPU > > > > > > nohz=off helps a lot. while true; do time sleep 0.0; done does not > > > have unexpected latencies. > > > > does hpet=disable on the boot line also help? (without nohz=off) > > hpet-disable helps.. a bit. 200msec latencies are gone. (What is used > for wakeups in this case?) > > pavel@amd:~$ while true; do time sleep 0.01; done > 0.00user 0.00system 0.01 (0m0.013s) elapsed 22.96%CPU > 0.00user 0.00system 0.01 (0m0.018s) elapsed 11.05%CPU > 0.00user 0.00system 0.01 (0m0.013s) elapsed 15.54%CPU could you run this while doing the sleep test: http://people.redhat.com/mingo/cfs-scheduler/tools/cfs-debug-info.sh and send us the output? (Enabling CONFIG_TIMER_STATS, CONFIG_SCHED_DEBUG and CONFIG_SCHEDSTATS would maximize the amount of information.) Ingo