Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp941237pxf; Wed, 7 Apr 2021 15:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxokxzAzl+muYDPqBw7vEk8xIvkhuS6gUzFh0WsP/Mi2XYzjjGGG7EJJkkVJYlY46lMlksb X-Received: by 2002:aa7:c2d4:: with SMTP id m20mr7392724edp.250.1617835129982; Wed, 07 Apr 2021 15:38:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617835129; cv=none; d=google.com; s=arc-20160816; b=rdHlric7M9+9D4lEfCVvcEhgcXmLV6fKQ+0wP69lIgJHIcpWqQuCRCNtPbeP1/wsn3 G2JNBFCBX7sBSw9hYB0VegK7fL94+1WvkvG9DdQIs44SXFVvgwFYQc6tWYyngye3+APb zlmMflD/7dKhyAOy2VXQhZO80JyvqdQgaGQnwJOnuAPEmKowpFIj/ANvti2GkFkCdrnJ VbXJOdB+Y6v1wXmeuUJbHMw4SZG1Ty/GLUIifvBNgYrKR5KOGQ3PnS0q0iWdVYUVCvJ6 vAujdpyrL7oDrgUj33uYhZxagW/QpFje8jg1ZfepFJyt4Q+ECgIiH3+mFYMzNTRqXCzD o8kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Qrs4g4y7pUiMXOP2oCKKvcPXzqp0XPDWJESZj/qqlBY=; b=LKPmpvEFTF463ZifhaBMoeugLxtggPGbmZceIZMtdflLNqkqEi+fMxitjbztExqxL4 NEcjNH7XifgECvyT2MnMFAF75dOYyA/oXoDbg15jMWCDCDZa1r/5c3Uf64Teg6aAXJds l2hYS8fveZzpASFaAFnVFr9F2BjVsVK+MxYMh89szl8FEjWmNmDb3xgidBQRVoXYaazs EPAjtES9DXTmvT5DCR2l3wsHhtwuZIDwOGImHKXIVDHvE7pFqOdJOtX2EQI/7Was4pXc 7lHodh87yU2F1n35t7Og2mjswPhZ9Bzjjs0M5bWt1uzdH26bdSZXaUNZ2rVBc8IkZyNA ztFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=GdiW0JU2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si19591401edt.586.2021.04.07.15.38.27; Wed, 07 Apr 2021 15:38:49 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=GdiW0JU2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345024AbhDGOwH (ORCPT + 99 others); Wed, 7 Apr 2021 10:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbhDGOwF (ORCPT ); Wed, 7 Apr 2021 10:52:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34A6EC061756 for ; Wed, 7 Apr 2021 07:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Qrs4g4y7pUiMXOP2oCKKvcPXzqp0XPDWJESZj/qqlBY=; b=GdiW0JU2jUF96T7IuZ6E39ZyzP 364aw6St8b2gy7ozm69nzmi0veJzF7p1mhZ2nNfzvcUMxsmAz3UqMnGJm2GFDKz0MuSysdO4PxN+m YYu1pr/6bHuhNP0UZ8n5vxYwcNULuACliglbM74ZVAshIalk8/uqkmXeFLz3ZPkoeY0A8NIYH2AiD +kVXzpkmpNpI99mivkHuGW8w9O/8KN0I4VJOAffwGkKdpGAHoI9dMB6GulIeo8FsX1LESC0F+kp6e uVInVlFz1G1gyb/rWm4Nhd+Rj2NF1WQb83VIKvleOBA07bDkR66zFbGEZkwVDrstlyD6KuxLddP8i mdoT1I0w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lU9U4-00EcYB-Ph; Wed, 07 Apr 2021 14:49:06 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 75C66300BD2; Wed, 7 Apr 2021 16:48:44 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 67F822BBEA8E3; Wed, 7 Apr 2021 16:48:44 +0200 (CEST) Date: Wed, 7 Apr 2021 16:48:44 +0200 From: Peter Zijlstra To: Michel Lespinasse Cc: Linux-MM , Laurent Dufour , Michal Hocko , Matthew Wilcox , Rik van Riel , Paul McKenney , Andrew Morton , Suren Baghdasaryan , Joel Fernandes , Rom Lemarchand , Linux-Kernel Subject: Re: [RFC PATCH 11/37] x86/mm: attempt speculative mm faults first Message-ID: References: <20210407014502.24091-1-michel@lespinasse.org> <20210407014502.24091-12-michel@lespinasse.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210407014502.24091-12-michel@lespinasse.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 06:44:36PM -0700, Michel Lespinasse wrote: > --- a/arch/x86/mm/fault.c > +++ b/arch/x86/mm/fault.c > @@ -1219,6 +1219,8 @@ void do_user_addr_fault(struct pt_regs *regs, > struct mm_struct *mm; > vm_fault_t fault; > unsigned int flags = FAULT_FLAG_DEFAULT; > + struct vm_area_struct pvma; That's 200 bytes on-stack... I suppose that's just about acceptible, but perhaps we need a comment in struct vm_area_struct to make people aware this things lives on-stack and size really is an issue now.