Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1225278pxu; Mon, 23 Nov 2020 15:12:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX73tgwI7KkL1g/R1IZK65hR3yi/fK6yRBQIVLCk20nMWMJZotbo4qkOqKfHNLDCqR9Vkq X-Received: by 2002:a17:906:2742:: with SMTP id a2mr1667307ejd.219.1606173155557; Mon, 23 Nov 2020 15:12:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606173155; cv=none; d=google.com; s=arc-20160816; b=05iWLO4NYvKKDEiB/+k6bY/XmhQ9aBK2bhVge85iU7WRIMDfwlDg35u63lj1515vx1 ciHe6Q60A72f01o95YRBGUqmG4H0AcJJ5RMA4zWfHK//uPGeCDCsaPaFM/zJ5ZDN87FE 5phwWRBFWNRkdPKnGN2MYKk8DnqRZ1HitRMRfM3itUyBwwhhyBqI677d/7ljSeImVNYc KJpWLg3bzF1208I+ZbSCXZFAhAnU8kyDXegBETqmgcpdErQQHWXtqLzbhF5/xaZhjnkN k7KxkS+2gbVeiUEKU0HZnWBHhgUbIBQCwjZ74eG6lUzZjqgNZJejr1tEfOxI9atJYocn ECRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=wvfZCOaArWd6c+q0YW2bhXL6hYZ7OClqLqH43z5poDk=; b=WbWV7Mc9Cm+O6Wv4Q5aH+sAaYgy0ReNUlgLa2w3srxkuqxl38fq0pqhXKE3GLWNJ5Z S64FjqlHDI/T6K0mAkrr9FUXFJCSV/9SrxoCK0ypokLsKt4Sr5YwpBbtv7pg1R//OMW0 n224gmbGmYotOu538MHgewFMNJwAsF1Pt28cCYxg45iziN19cTw2LPnorJf3sVyiGBqC E/pj8zpoNxt38KP8yQLZhFoSocTjPmfcbliaPDYkjx8MfrcO4dFYBf6KKo/jV3e/GRCu r+J/EZwAMGjvNefpTrDNzG6p1FQ6LdXknrziEH06JMdFJYwZvyqdE2NJNxNrjPI7LBSu Wlhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Cs0+t6uy; dkim=neutral (no key) header.i=@linutronix.de header.b=0ChmFgQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j26si7344918edy.130.2020.11.23.15.12.12; Mon, 23 Nov 2020 15:12:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Cs0+t6uy; dkim=neutral (no key) header.i=@linutronix.de header.b=0ChmFgQe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732750AbgKWXK6 (ORCPT + 99 others); Mon, 23 Nov 2020 18:10:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729730AbgKWXK5 (ORCPT ); Mon, 23 Nov 2020 18:10:57 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8C04C0613CF for ; Mon, 23 Nov 2020 15:10:56 -0800 (PST) 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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