Received: by 10.223.185.116 with SMTP id b49csp2304423wrg; Thu, 22 Feb 2018 11:28:37 -0800 (PST) X-Google-Smtp-Source: AH8x227ca9djRpe6Ir5yDf77V9T37+ncoNkQZDkx/thsMcLSEPqeH2bweGN0Ind2OUg20jvz90PG X-Received: by 2002:a17:902:710e:: with SMTP id a14-v6mr7318799pll.291.1519327717690; Thu, 22 Feb 2018 11:28:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519327717; cv=none; d=google.com; s=arc-20160816; b=JUeHgR2yYekRLsShOwqF+UFYxfOMRav9jRnTmN6ELHKyrWsmHwhzQqGg+7GbxjOzW9 LYWnLtrHT2zD4jzL5ho8NwBdd9t3Nwm5QFDYM03SPl9GqSRSNa193q1y+s48Ql7ktMhr HI6MW/ui78R6iGEM6fFvbtL8QGsATDOfGYp5IYmX7OuxrL+E1hhx29kJf7M56h82wYlE zAz+f/TIIiU1G9hgM2bnMU9AOWa6GuH8WWk05BPyK5g/GZwiD58S7Ta4K8lgJZlC1+jj vLrwOZmVSDuHrwoVjpXymRrFOh7XTS1eFndQotRS1lFQDpdOHuRnnJkyu9Gu2LyqEAoP KKoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dmarc-filter :arc-authentication-results; bh=NGNB88Keau3uFk3h+/1pbkzn7sduv53N0jv/+lcDmBE=; b=o7rwqQ7PsjMtXMuzCbZF8wxO/Cvx1U5F2BOiJlySCiC7hHDUzP1rEmXS6ywHkFdSyC lfF0TXweYBllH1Fg9cyJJxRoSgkMDDzisXNQ7RXVAAmWWfYZZ63JzjYd6LYHe2KOSwAJ YoRj6xTUwv6gH5M0+A0G/h3g1fJRBiwb3CHtK2Tm+klgaRWERQQD+Sp6jLW2lN1dFpoW xeHTnMuhHcN8g2zz3L/YLeEUw+yCKC9tsdsuzb+2a7/y152Sqh6vdFKCVxk+6vE2jUvo I3rtH+T3IfTEJFsgpT9q1mSIThqgJjT6OaHLrbGlVlHcZb04VW93RtM7C7mYHisBynjY XiSg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12-v6si494574pls.66.2018.02.22.11.28.21; Thu, 22 Feb 2018 11:28:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751359AbeBVT1k (ORCPT + 99 others); Thu, 22 Feb 2018 14:27:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:51908 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751283AbeBVT1j (ORCPT ); Thu, 22 Feb 2018 14:27:39 -0500 Received: from mail-it0-f43.google.com (mail-it0-f43.google.com [209.85.214.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A57D521784 for ; Thu, 22 Feb 2018 19:27:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A57D521784 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=luto@kernel.org Received: by mail-it0-f43.google.com with SMTP id n7so293327ita.5 for ; Thu, 22 Feb 2018 11:27:38 -0800 (PST) X-Gm-Message-State: APf1xPCFk6sIUBjHRB12EVF53P2l9eLR31/gvmdKhVBSRKxz1ouQCWZR MffPhzXNVbRAqeeAYCGsMtaGR6wkUSzuCEWWNIi31g== X-Received: by 10.36.46.23 with SMTP id i23mr351936ita.55.1519327658122; Thu, 22 Feb 2018 11:27:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.2.137.101 with HTTP; Thu, 22 Feb 2018 11:27:16 -0800 (PST) In-Reply-To: References: <151670492223.658225.4605377710524021456.stgit@buzz> <151670493255.658225.2881484505285363395.stgit@buzz> <20180221154214.GA4167@bombadil.infradead.org> <20180221170129.GB27687@bombadil.infradead.org> <20180222065943.GA30681@dhcp22.suse.cz> <20180222122254.GA22703@bombadil.infradead.org> <20180222133643.GJ30681@dhcp22.suse.cz> From: Andy Lutomirski Date: Thu, 22 Feb 2018 19:27:16 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Use higher-order pages in vmalloc To: Dave Hansen Cc: Andy Lutomirski , Michal Hocko , Matthew Wilcox , Konstantin Khlebnikov , LKML , Christoph Hellwig , Linux-MM , Andrew Morton , "Kirill A. Shutemov" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 22, 2018 at 7:19 PM, Dave Hansen wrote: > On 02/22/2018 11:01 AM, Andy Lutomirski wrote: >> On x86, if you shoot down the PTE for the current stack, you're dead. > > *If* we were to go do this insanity for vmalloc()'d memory, we could > probably limit it to kswapd, and also make sure that kernel threads > don't get vmalloc()'d stacks or that we mark them in a way to say we > never muck with them. How does that help? We need to make sure that the task whose stack we're migrating is (a) not running and (b) is not being switched in or out. And we have to make sure that there isn't some *other* mm that has the task's stack in ASID's TLB space. Maybe we take some lock so the task can't run, then flush the world, then release the lock.