Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753488Ab0ADOGG (ORCPT ); Mon, 4 Jan 2010 09:06:06 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753478Ab0ADOF4 (ORCPT ); Mon, 4 Jan 2010 09:05:56 -0500 Received: from mga06.intel.com ([134.134.136.21]:6724 "EHLO orsmga101.jf.intel.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753481Ab0ADOFt (ORCPT ); Mon, 4 Jan 2010 09:05:49 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.47,498,1257148800"; d="scan'208";a="481081577" Date: Mon, 4 Jan 2010 16:40:42 -0500 From: "Youquan,Song" To: Arjan van de Ven Cc: "Youquan,Song" , hpa@zytor.com, tglx@linutronix.de, akpm@linux-foundation.org, venkatesh.pallipadi@intel.com, suresh.b.siddha@intel.com, kent.liu@intel.com, chaohong.guo@intel.com, youquan.song@intel.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH]tickless: Fix tick nohz timer irq0 fail to increaase Message-ID: <20100104214042.GA16579@youquan-linux.bj.intel.com> References: <20091214130233.GA3898@youquan-linux.bj.intel.com> <20100104104905.GA30574@youquan-linux.bj.intel.com> <20100104043650.6acfb056@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100104043650.6acfb056@infradead.org> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1627 Lines: 46 > > Tickless is disabled by nohz=off, which is used in OSVs. > > it is? I doubt anyone wants to normally disable tickless, the power > cost is just too high.... tickless is normally used but it is possible to use for some special users, tickless is disabled by nohz=off kernel option, which is address in OSV's release notes. > > But in > > current kernel, if tickless is disabled, the timer irq0 will not > > increase. > > why is this a problem? Two reasons: R1: In my mind, tick is period timer with frequent of HZ. but timer irq0 is actually be an oneshot mode timer. But in real watch, it is keep not increase for long time. but it suddenly increase 5000~10000 times in a seconds. R2: Tickless disable, change cpuidle driver to ladder governor(menu does not work at all). Run powertop, if apply my patch, the c-state residency has > 10% improvement than current kernel. > > > Because the timer event handler should be > > tick_handle_periodic, but actually event handler keep as > > tick_handle_oneshot_broadcast which is used in tickless. The root > > cause is that it is default to enable high resolution timer which > > will force to oneshot broadcast mode. > > using local apic in one shot mode is not a problem, I'd in fact call it > a feature... But in current kernel, local apic timer is in periodic mode with frequencey of HZ when tickless is disabled. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/