From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761025AbYEHXe1 (ORCPT ); Thu, 8 May 2008 19:34:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753086AbYEHXeO (ORCPT ); Thu, 8 May 2008 19:34:14 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:33252 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752043AbYEHXeM (ORCPT ); Thu, 8 May 2008 19:34:12 -0400 Date: Thu, 8 May 2008 16:33:40 -0700 (PDT) From: Linus Torvalds To: Alan Cox cc: Ingo Molnar , "Zhang, Yanmin" , Andi Kleen , Matthew Wilcox , LKML , Alexander Viro , Andrew Morton , Thomas Gleixner , "H. Peter Anvin" Subject: Re: [patch] speed up / fix the new generic semaphore code (fix AIM7 40% regression with 2.6.26-rc1) In-Reply-To: <20080509001647.244393bc@core> Message-ID: References: <1210214696.3453.87.camel@ymzhang> <1210219729.3453.97.camel@ymzhang> <20080508120130.GA2860@elte.hu> <20080508122802.GA4880@elte.hu> <20080508201956.GA2547@elte.hu> <20080508214557.GA13311@elte.hu> <20080509001647.244393bc@core> User-Agent: Alpine 1.10 (LFD 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 May 2008, Alan Cox wrote: > > I don't think fixing n_tty is now a big job if someone wants to take a > swing at it. The driver write/throttle/etc routines below the n_tty ldisc > layer are now BKL clean so it should just be the internal locking of the > buffers, window and the like to tackle. Well, it turns out that Ingo's fixed statistics actually put the real cost in fcntl/ioctl/open/release: 310 down <= lock_kernel <= sys_fcntl <= system_call_after_swapgs < 332 down <= lock_kernel <= vfs_ioctl <= do_vfs_ioctl < 380 down <= lock_kernel <= tty_release <= __fput < 422 down <= lock_kernel <= chrdev_open <= __dentry_open < rather than the write routines. But it may be that Ingo was just profiling two different sections, and it's really all of them. Linus