From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by kanga.kvack.org (Postfix) with ESMTP id 1B2926B006C for ; Wed, 10 Jun 2015 04:51:48 -0400 (EDT) Received: by wigg3 with SMTP id g3so40853833wig.1 for ; Wed, 10 Jun 2015 01:51:47 -0700 (PDT) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com. [2a00:1450:400c:c05::235]) by mx.google.com with ESMTPS id gs9si8323087wib.31.2015.06.10.01.51.46 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Jun 2015 01:51:46 -0700 (PDT) Received: by wiga1 with SMTP id a1so40791030wig.0 for ; Wed, 10 Jun 2015 01:51:46 -0700 (PDT) Date: Wed, 10 Jun 2015 10:51:41 +0200 From: Ingo Molnar Subject: Re: [PATCH 0/3] TLB flush multiple pages per IPI v5 Message-ID: <20150610085141.GA25704@gmail.com> References: <1433767854-24408-1-git-send-email-mgorman@suse.de> <20150608174551.GA27558@gmail.com> <20150609084739.GQ26425@suse.de> <20150609103231.GA11026@gmail.com> <20150609112055.GS26425@suse.de> <20150609124328.GA23066@gmail.com> <20150609130536.GT26425@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150609130536.GT26425@suse.de> Sender: owner-linux-mm@kvack.org List-ID: To: Mel Gorman Cc: Andrew Morton , Rik van Riel , Hugh Dickins , Minchan Kim , Dave Hansen , Andi Kleen , H Peter Anvin , Linux-MM , LKML , Linus Torvalds , Peter Zijlstra , Thomas Gleixner * Mel Gorman wrote: > > I think since it is you who wants to introduce additional complexity into the > > x86 MM code the burden is on you to provide proof that the complexity of pfn > > (or struct page) tracking is worth it. > > I'm taking a situation whereby IPIs are sent like crazy with interrupt storms > and replacing it with something that is a lot more efficient that minimises the > number of potential surprises. I'm stating that the benefit of PFN tracking is > unknowable in the general case because it depends on the workload, timing and > the exact CPU used so any example provided can be naked with a counter-example > such as a trivial sequential reader that shows no benefit. The series as posted > is approximately in line with current behaviour minimising the chances of > surprise regressions from excessive TLB flush. > > You are actively blocking a measurable improvement and forcing it to be replaced > with something whose full impact is unquantifiable. Any regressions in this area > due to increased TLB misses could take several kernel releases as the issue will > be so difficult to detect. > > I'm going to implement the approach you are forcing because there is an x86 part > of the patch and you are the maintainer that could indefinitely NAK it. However, > I'm extremely pissed about being forced to introduce these indirect > unpredictable costs because I know the alternative is you dragging this out for > weeks with no satisfactory conclusion in an argument that I cannot prove in the > general case. Stop this crap. I made a really clear and unambiguous chain of arguments: - I'm unconvinced about the benefits of INVLPG in general, and your patches adds a whole new bunch of them. I cited measurements and went out on a limb to explain my position, backed with numbers and logic. It's admittedly still a speculative position and I might be wrong, but I think it's well grounded position that you cannot just brush aside. - I suggested that you split this approach into steps that first does the simpler approach that will give us at least 95% of the benefits, then the more complex one on top of it. Your false claim that I'm blocking a clear improvement is pure demagogy! - I very clearly claimed that I am more than willing to be convinced by numbers. It's not _that_ hard to construct a memory trashing workload with a TLB-efficient iteration that uses say 80% of the TLB cache, to measure the worst-case overhead of full flushes. I'm really sick of this partly deceptive, partly passive-aggressive discussion style that seems to frequently permeate VM discussions and which made sched/numa such a huge PITA in the past... And I think the numbers in the v6 series you submitted today support my position, so you owe me an apology I think ... Thanks, Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org