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.7 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 161DEC56201 for ; Thu, 19 Nov 2020 17:30:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5470B208B6 for ; Thu, 19 Nov 2020 17:30:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="R25wBXI2" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5470B208B6 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 68FD36B005C; Thu, 19 Nov 2020 12:30:21 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 619796B005D; Thu, 19 Nov 2020 12:30:21 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4E1A46B0068; Thu, 19 Nov 2020 12:30:21 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0254.hostedemail.com [216.40.44.254]) by kanga.kvack.org (Postfix) with ESMTP id 1B8D16B005C for ; Thu, 19 Nov 2020 12:30:21 -0500 (EST) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id B29D51EE6 for ; Thu, 19 Nov 2020 17:30:20 +0000 (UTC) X-FDA: 77501856600.27.toys15_1a1216a27344 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin27.hostedemail.com (Postfix) with ESMTP id BAB1E3D674 for ; Thu, 19 Nov 2020 17:30:19 +0000 (UTC) X-HE-Tag: toys15_1a1216a27344 X-Filterd-Recvd-Size: 4836 Received: from mail-lf1-f67.google.com (mail-lf1-f67.google.com [209.85.167.67]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Thu, 19 Nov 2020 17:30:19 +0000 (UTC) Received: by mail-lf1-f67.google.com with SMTP id u19so9414883lfr.7 for ; Thu, 19 Nov 2020 09:30:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=roKed23LgH2ixqxBEBzRYh8QoZ0Y+ahXxWrHQPjuH7U=; b=R25wBXI23xncSP774w9yY17VRXi5gWwtiFn5B5y0aCu8Ej56oJnYXT4a52YWJrErvL aHstvk6tzU7PKlrfe0Rtveex72l4tsEaaTYslKzHXiF/HffAijHs1WhL7CZRm8rT4vzh ddMAdfw98+K4N6JgZ99dj+rjCTxhZvk+DkSy8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=roKed23LgH2ixqxBEBzRYh8QoZ0Y+ahXxWrHQPjuH7U=; b=ffpupUwse1xXXjF4CGwvo0V/s2/fWZClmD7Z6JbzqPjRAWMVfxb1qO/lzB+1XaStBA k0zI8nN4DqKgn2I/viXveTXsGachJ9GB9HbWaTxwCtZ3zxntUlES58x1ZBwMW1ma8ly+ jcz3fbnPurWLXIWn5NS0J3Vd1iDfJCl/kGJ+QDsolKoEGcMb4GtDh6Z61xHk3ecpHfhH Dt4GY3xbmo78S1IrWuQuZvCxb7tFFGwy4sl7Gt3SYBbFqTH3XZzOJIOoVhjJfbG7jOwQ AYVRWFzBJ+CaUPypXAe2KceffNotjWscCFNBsgCOU3B8H7N82rDdJ/jexb1v6JP+5GNy qQRA== X-Gm-Message-State: AOAM5332uxu8C2jPQCHYUdweyOGJRhAaRdIAngglFp+t8fq64lQ+7eah JiKgOOBHDh+O8ObRTtNdY5xlT3+yJJ7rqA== X-Google-Smtp-Source: ABdhPJyxd1VHhpGJUeFcIgF1MfSdWOKVvRr3aQp86dMPR+u4PG/NoVAqK7VNGmes7SeT+86siAJGBA== X-Received: by 2002:a05:6512:3711:: with SMTP id z17mr5589262lfr.350.1605807017268; Thu, 19 Nov 2020 09:30:17 -0800 (PST) Received: from mail-lj1-f181.google.com (mail-lj1-f181.google.com. [209.85.208.181]) by smtp.gmail.com with ESMTPSA id h187sm26471lfd.227.2020.11.19.09.30.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Nov 2020 09:30:17 -0800 (PST) Received: by mail-lj1-f181.google.com with SMTP id y16so7139275ljh.0 for ; Thu, 19 Nov 2020 09:30:16 -0800 (PST) X-Received: by 2002:a2e:8e33:: with SMTP id r19mr5946254ljk.102.1605806643076; Thu, 19 Nov 2020 09:24:03 -0800 (PST) MIME-Version: 1.0 References: <20201118194838.753436396@linutronix.de> <20201118204007.269943012@linutronix.de> <20201119093834.GH3306@suse.de> <20201119111411.GL3121378@hirez.programming.kicks-ass.net> In-Reply-To: <20201119111411.GL3121378@hirez.programming.kicks-ass.net> From: Linus Torvalds Date: Thu, 19 Nov 2020 09:23:47 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [patch V4 4/8] sched: Make migrate_disable/enable() independent of RT To: Peter Zijlstra Cc: Mel Gorman , Thomas Gleixner , 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 Content-Type: text/plain; charset="UTF-8" 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 Thu, Nov 19, 2020 at 3:14 AM Peter Zijlstra wrote: > > I still hate all of this, and I really fear that with migrate_disable() > available, people will be lazy and usage will increase :/ > > Case at hand is this series, the only reason we need it here is because > per-cpu page-tables are expensive... No, I think you as a scheduler person just need to accept it. 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. The scheduler people need to get used to this. Really. Because ASMP is just going to be a fact. There are few things more futile than railing against reality, Peter. Honestly, the only argument I've ever heard against limiting migration is the whole "our scheduling theory doesn't cover it". So either throw the broken theory away, or live with it. Theory that doesn't match reality isn't theory, it's religion. Linus