From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757493Ab3APVt2 (ORCPT ); Wed, 16 Jan 2013 16:49:28 -0500 Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:2909 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757264Ab3APVtY (ORCPT ); Wed, 16 Jan 2013 16:49:24 -0500 X-Authority-Analysis: v=2.0 cv=UsXhxpMB c=1 sm=0 a=rXTBtCOcEpjy1lPqhTCpEQ==:17 a=mNMOxpOpBa8A:10 a=S2hSrj2-stIA:10 a=5SG0PmZfjMsA:10 a=Q9fys5e9bTEA:10 a=meVymXHHAAAA:8 a=WTqab4NZ4NAA:10 a=0ewD6LGPz4y_VLYcV3EA:9 a=PUjeQqilurYA:10 a=rXTBtCOcEpjy1lPqhTCpEQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 74.67.115.198 Message-ID: <1358372961.23211.8.camel@gandalf.local.home> Subject: Re: [PATCH v4] context_tracking: Add comments on interface and internals From: Steven Rostedt To: Andrew Morton Cc: Frederic Weisbecker , "Paul E. McKenney" , LKML , Alessio Igor Bogani , Chris Metcalf , Christoph Lameter , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Ingo Molnar , Li Zhong , Namhyung Kim , Paul Gortmaker , Peter Zijlstra , Thomas Gleixner Date: Wed, 16 Jan 2013 16:49:21 -0500 In-Reply-To: <20130116131832.7b3bede0.akpm@linux-foundation.org> References: <87wqvdl1n8.fsf@sejong.aot.lge.com> <1358352997-29585-1-git-send-email-fweisbec@gmail.com> <20130116131832.7b3bede0.akpm@linux-foundation.org> Content-Type: text/plain; charset="ISO-8859-15" X-Mailer: Evolution 3.4.4-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2013-01-16 at 13:18 -0800, Andrew Morton wrote: > On Wed, 16 Jan 2013 17:16:37 +0100 > I still don't understand NOHZ's role in this whole thing :( It's not for idle NOHZ, but "process" NOHZ. That is if we have only one task running on a CPU, we don't want a tick interrupt to bother it. This is because there's lots of users out there that want an uninterrupted task. A task that doesn't ever get bothered by the kernel. If it's in userspace, it stays in userspace (no interrupts), until it calls into the kernel itself (syscall). Even when its in the kernel, we still don't need the tick interrupt if its the only task. But the scheduler isn't the only thing that uses this tick. To remove the tick, we need to satisfy all the other users (printk, delayed work, u/s-times). To still keep up the stats of user and kernel times for the task, we need to record when the task switches from user to kernel and back again. Hence the context tracking code. Makes more sense? -- Steve