Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2993045AbXEBKoq (ORCPT ); Wed, 2 May 2007 06:44:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S2993044AbXEBKop (ORCPT ); Wed, 2 May 2007 06:44:45 -0400 Received: from mtagate4.de.ibm.com ([195.212.29.153]:50034 "EHLO mtagate4.de.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993026AbXEBKoo (ORCPT ); Wed, 2 May 2007 06:44:44 -0400 Subject: Re: [patch 20/38] Minor fault path optimization. From: Martin Schwidefsky Reply-To: schwidefsky@de.ibm.com To: Christoph Hellwig Cc: Paul Mackerras , linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Heiko Carstens In-Reply-To: <20070428083409.GA22156@infradead.org> References: <20070427140503.087958775@de.ibm.com> <20070427140516.523272684@de.ibm.com> <17970.53875.506097.699517@cargo.ozlabs.ibm.com> <20070428083409.GA22156@infradead.org> Content-Type: text/plain Organization: IBM Corporation Date: Wed, 02 May 2007 12:45:06 +0200 Message-Id: <1178102706.2440.9.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1173 Lines: 28 On Sat, 2007-04-28 at 09:34 +0100, Christoph Hellwig wrote: > Well, here's my powerpc patch to do the direct call that I sent out > a few weeks ago. It not just speed up the pagefault path a lot, > but also is a major code cleanup. Andi and Anton didn't like it > because they have ambition for murky debugger code to possibly > use it one day.. I thought about using a direct call for s390 as well. The advantage of a direct call is that it avoids the overhead of a notifier call even if kprobes is running. The disadvantage is that there cannot be a second consumer of the fault notifications. I choose the middle way: avoid the overhead if kprobes is not active and use the full notifier if kprobes is running. It should not hurt the performance too badly since kprobe_running is only true if the cpu gets a page fault while executing a kprobe. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. - 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/