Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751078AbWCVHoT (ORCPT ); Wed, 22 Mar 2006 02:44:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751080AbWCVHoT (ORCPT ); Wed, 22 Mar 2006 02:44:19 -0500 Received: from fmr17.intel.com ([134.134.136.16]:23731 "EHLO orsfmr002.jf.intel.com") by vger.kernel.org with ESMTP id S1751078AbWCVHoS (ORCPT ); Wed, 22 Mar 2006 02:44:18 -0500 Message-Id: <200603220744.k2M7iBg05206@unix-os.sc.intel.com> From: "Chen, Kenneth W" To: "'Nick Piggin'" Cc: "Li, Shaohua" , "'lkml'" , "'Andrew Morton'" Subject: RE: [PATCH] less tlb flush in unmap_vmas Date: Tue, 21 Mar 2006 23:44:22 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcZNgnTX7nFh028AToaVyRsZ0ueY6gAAUB7w In-Reply-To: <4420FCFD.3060401@yahoo.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1312 Lines: 29 Nick Piggin wrote on Tuesday, March 21, 2006 11:30 PM > > Chen, Kenneth W wrote: > > Interesting. In the old day, since mm->page_table_lock is held for the > > entire unmap_vmas function, it was beneficial to introduce periodic > > reschedule point and to drop the spin lock under pressure. Now that the > > page table lock is fine-grained and is pushed into zap_pte_range(), I > > would think scheduling latency would improve from lock contention > > avoidance point of view. It is not the case? > > > > Well mmu_gather uses a per-cpu data structure and is non preemptible, > which I guess is one of the main reasons why we have this preemption > here. > > You're right that another good reason would be ptl lock contention, > however I don't think that alleviating that problem alone would allow > longer mmu_gather scheduling latencies, because the longest latency > is still the mmu_gather <--> mmu_finish span. OK, I think it would be beneficial to take a latency measurement again, just to see how it perform now a day. The dynamics might changed. - Ken - 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/