Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp912646pxb; Thu, 19 Nov 2020 17:39:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcrcMf6hMF12IAa9a/SAqRK/hElEUe4w5C/YJ39NDSA5xVqQBF97+zafuGsWHe3Ck6VZZX X-Received: by 2002:a17:906:ccd3:: with SMTP id ot19mr31808060ejb.44.1605836358370; Thu, 19 Nov 2020 17:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605836358; cv=none; d=google.com; s=arc-20160816; b=a8gcpyb+NFxRg38DuuA5KAEEo4+mfP8AIPIeg/zL4ppfOjC8yH2OSpuXkLoOgtPKDh l77Qr2GQ9MDUAaHBiqnRMYzqZoQBE56FNpSerGvYcT0ZBgOa/6HsedZZsAJ1giFRtWNj qsRA4s2C4jZU4elUUfq02DRWQ6KuTofX0OKUIOqKk2Fh7t8Ll1ZdMYrAmrpF4oq2PbXi ViF0z1D/VTdeVNGptyp6yA+naAZFgRnFcs0++AP3Jaax+zcBEGY9zd1Xnt8bied3ETee 7yLo319z1eDIEd3aMDrOtg9nKwITfbkGkpgZI5Hvim4RcKbHflrvziJ6XJrbTxtqCoRn StTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=7uVXnrJ9FAHgnGZVOERteDJIBOwguyPNBYIyccpfRao=; b=AM8ydhBBstTqhxwuFMN8Dqgf62W6rydphYeiUG3XHNh1URTmWLW+N7N9DV+HwWO3DI lnOpFdm4rxWJABt2ETczCCtQVdGSU0BkfrsNSTl1TcRcOopyL/2nYpeSXmx7OF/AW4Lh BNlG0IXqVihNBGP21jAjNnsAmX897ogaqCCEEKfWR0do76OWV0YnwhzAdeVn3w0qEcLi BUyfQZIu/uW8QvzWU7YDJaE/N7Cpm7SDZ2yEIVozAJY6x9YMB5vS4Lv4vMu+79SdkWXJ ushR9JFnnfnyNegLKR9+JqrDtkjHxCPx+ai+rThzssMAFcxwBxURUbf6Rb4S3NJc+f5B 5How== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=NAMeNEti; dkim=neutral (no key) header.i=@linutronix.de header.b=GqiCV9WE; 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 q16si832006eja.38.2020.11.19.17.38.55; Thu, 19 Nov 2020 17:39:18 -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=NAMeNEti; dkim=neutral (no key) header.i=@linutronix.de header.b=GqiCV9WE; 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 S1727174AbgKTBeB (ORCPT + 99 others); Thu, 19 Nov 2020 20:34:01 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:37300 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727087AbgKTBeB (ORCPT ); Thu, 19 Nov 2020 20:34:01 -0500 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1605836039; 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: in-reply-to:in-reply-to:references:references; bh=7uVXnrJ9FAHgnGZVOERteDJIBOwguyPNBYIyccpfRao=; b=NAMeNEtibzZCn6hDuW13u0nNgnZbAGdYUadbXSfXJ0ejcSxinYzIKbQY/P1IpwrIxSolDO rb4gtDfC8Nx3wegNgQB5xyMdEvSkspebzNdd97Le/YpAHCp0SWi8dabyZF4rAF7ZZ0NjMz d2rJavDGJXKOvkXAKlnCXcWNr7X/30XYlMoTrOke4uXSm4H44kZUnxyq4/hWt9TFMSMhds I2RF7TdU2VsWyuKaVpcRuiC+qkMFKVYJ7I6jfokGa5zhPRDBHRHw3JyFrme4C9toAt9cg3 qO8V23fljRGzJxr3gtn1NzOwABh2wV9nk6e0J+8D5/lpGH4JIW/L1poK/YdalA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1605836039; 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: in-reply-to:in-reply-to:references:references; bh=7uVXnrJ9FAHgnGZVOERteDJIBOwguyPNBYIyccpfRao=; b=GqiCV9WE4RMEEngiPAHJwiWdyRGOC53LmO3t4JbfwinMQGX7dhTJffqL6hU3+HseoFu0jo ooj9V8+xI59X2HCQ== To: Peter Zijlstra , Linus Torvalds Cc: 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: <20201119182843.GA2414@hirez.programming.kicks-ass.net> References: <20201118194838.753436396@linutronix.de> <20201118204007.269943012@linutronix.de> <20201119093834.GH3306@suse.de> <20201119111411.GL3121378@hirez.programming.kicks-ass.net> <20201119182843.GA2414@hirez.programming.kicks-ass.net> Date: Fri, 20 Nov 2020 02:33:58 +0100 Message-ID: <87tutkolq1.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 19 2020 at 19:28, Peter Zijlstra wrote: > On Thu, Nov 19, 2020 at 09:23:47AM -0800, Linus Torvalds wrote: >> Because this is certainly not the only time migration limiting has >> come up, and no, it has absolutely nothing to do with per-cpu page >> tables being completely unacceptable. > > It is for this instance; but sure, it's come up before in other > contexts. Indeed. And one of the really bad outcomes of this is that people are forced to use preempt_disable() to prevent migration which entails a slew of consequences: - Using spinlocks where it wouldn't be needed otherwise - Spinwaiting instead of sleeping - The whole crazyness of doing copy_to/from_user_in_atomic() along with the necessary out of line error handling. - .... The introduction of per-cpu storage happened almost 20 years ago (2002) and still the only answer we have is preempt_disable(). I know the scheduling theory folks still try to wrap their heads around the introduction of SMP which dates back to 1962 IIRC... >> The scheduler people need to get used to this. Really. Because ASMP is >> just going to be a fact. > > ASMP is different in that it is a hardware constraint, you're just not > going to be able to run more of X than there's X capable hardware units > on (be if FPUs, Vector units, 32bit or whatever) ASMP is as old as SMP. The first SMP systems were in fact ASMP. The reasons for ASMP 60 years ago were not that different from the reasons for ASMP today. Just the scale and the effectivness are different. >> There are few things more futile than railing against reality, Peter. > > But, but, my windmills! :-) At least you have windmills where you live so you can pull off the real Don Quixote while other people have to find substitutes :) Thanks, tglx