From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6212CC63697 for ; Mon, 23 Nov 2020 23:11:00 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id D47EF206B6 for ; Mon, 23 Nov 2020 23:10:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Cs0+t6uy"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="0ChmFgQe" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D47EF206B6 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linutronix.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id CA39D6B005D; Mon, 23 Nov 2020 18:10:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C534D6B006E; Mon, 23 Nov 2020 18:10:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B69B66B0070; Mon, 23 Nov 2020 18:10:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0178.hostedemail.com [216.40.44.178]) by kanga.kvack.org (Postfix) with ESMTP id 867996B005D for ; Mon, 23 Nov 2020 18:10:58 -0500 (EST) Received: from smtpin16.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 24FE21EE6 for ; Mon, 23 Nov 2020 23:10:58 +0000 (UTC) X-FDA: 77517230196.16.stew33_3c1679c27369 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin16.hostedemail.com (Postfix) with ESMTP id 078CA100E6903 for ; Mon, 23 Nov 2020 23:10:58 +0000 (UTC) X-HE-Tag: stew33_3c1679c27369 X-Filterd-Recvd-Size: 3930 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by imf15.hostedemail.com (Postfix) with ESMTP for ; Mon, 23 Nov 2020 23:10:57 +0000 (UTC) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606173054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wvfZCOaArWd6c+q0YW2bhXL6hYZ7OClqLqH43z5poDk=; b=Cs0+t6uySmiG6i3CC8Sh8UzLfR3Ie89erQx3laofZXPEEuvQPYVgMgT58WCQ7VryekKX+3 sVUo9qBnmkAl70jGXswpsgEApH7KAnu9cL5bcvDn958xgW7NGO0X+Y/qmY9aUqhE3csivm C8uduK9PWizAyYSTpSuc4XDxGyfvJ0Dpvipqw8Bk3R3RIFqvy2Z5yB7faB2id5uG6ipLxY lAdpStaUivqtOWZSxh9OcMpnL6C6kksFiJxb/jPhuWCNUMFMowHqwByJsj2FGttfKFf1RM bpFIUCy7xHP7M2o6stWqM10tRyWKOKa9yvN245YbQ5+rHgvZ7ihIzKQqz8bh6A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606173054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=wvfZCOaArWd6c+q0YW2bhXL6hYZ7OClqLqH43z5poDk=; b=0ChmFgQedEpgUd652A2O7mrsWb531cnBzuTZLDyu6Am6xRBW0nZ+tAsCrwrMj1X29dc9jK 9lZwxXH9EufQ/FCA== To: Andy Lutomirski Cc: Andy Lutomirski , Peter Zijlstra , Linus Torvalds , Mel Gorman , LKML , the arch/x86 maintainers , Christoph Hellwig , Matthew Wilcox , Daniel Vetter , Andrew Morton , Linux-MM , Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Daniel Bristot de Oliveira Subject: Re: [patch V4 4/8] sched: Make migrate_disable/enable() independent of RT In-Reply-To: <9BAD6F21-4DB5-4277-A38D-BB1FA038F2D7@amacapital.net> References: <87h7pfn4u3.fsf@nanos.tec.linutronix.de> <9BAD6F21-4DB5-4277-A38D-BB1FA038F2D7@amacapital.net> Date: Tue, 24 Nov 2020 00:10:54 +0100 Message-ID: <87zh37lldt.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, Nov 23 2020 at 14:07, Andy Lutomirski wrote: >> On Nov 23, 2020, at 1:25 PM, Thomas Gleixner wrote: >> =EF=BB=BFOn Mon, Nov 23 2020 at 22:15, Thomas Gleixner wrote: >>>> On Sun, Nov 22 2020 at 15:16, Andy Lutomirski wrote: >>>> >>>> The common case of a CPU switching back and forth between a small >>>> number of mms would have no significant overhead. >>>=20 >>> For CPUs which do not support PCID this sucks, which is everything pre >>> Westmere and all of 32bit. Yes, 32bit. If we go there then 32bit has to >>> bite the bullet and use the very same mechanism. Not that I care much >>> TBH. >>=20 >> Bah, I completely forgot that AMD does not support PCID before Zen3 >> which is a major showstopper. > > Why? Couldn=E2=80=99t we rig up the code so we still track all the ASIDs= even > if there is no CPU support? We would take the TLB flush hit on every > context switch, but we pay that cost anyway. We would avoid the extra > copy in the same cases in which we would avoid it if we had PCID. Did not think about that indeed. Yes, that should do the trick and should not be worse than what we have now. Sometimes one just can't see the forest for the trees :) Thanks, tglx