Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2783963ybk; Tue, 12 May 2020 08:05:15 -0700 (PDT) X-Google-Smtp-Source: APiQypKI5jolXZBt3S5YuZO8xmdo++Kun32EFKb7XZc0GWvIbFU5fzPOT9ylxyzdpz7mgqMWUT7N X-Received: by 2002:a17:906:2296:: with SMTP id p22mr17925199eja.269.1589295915576; Tue, 12 May 2020 08:05:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589295915; cv=none; d=google.com; s=arc-20160816; b=t2FV0xOJ0ckv7LwVvUi3F6IHyILkQ5dov056IkL1B06X/wcQ/N1E++8TsFdTcH02rS 78KBNPK0oUz2T1UL8HV2NLMw5edYwI7POofDIpGnDY2ldQq3Si59WirHKRkpQ9T7Ivgq KyEdg388/tlL1T7L7HvFeL06egfkNfxcGE04z3VQu0WnnbmaAIWhB/Fc32hQj6/AqpQj fGgVK1aBKDji6FtWVeO0OItlKWfr/pG4glkUNuO371jS7H3uh9jegbF9/L1puQovb0FE 4FEBiDLxRAvqB5bqcdklBD5687aqq/9Z6rIck3m5JNJ3cH2FXmi2KNf91mt0TlSnD8Ft sGZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=iolzy+q7ijiwwrBUWdgflP00CpRs0BFtKVWd25bxj+o=; b=uhBaN2F3XtKvP7/MkUvnXl2jGhOK2RjfnGMnL9AEBtR3R4EndlF7b1+b/xJMSSOe7w 6ffEWyWNlC9RVi9oC7/1NkEvRvmoCeG1ksqvlM45sC6f63nTb0eSlv24q8BCgXAdBVxu AIaeq+1Oo3n0Jv1HQit07iweFtYxvwOB/vj5k/X45YKVvf7yMJ8/oILqVE5jijZ54s5+ F0kkOm0BMAzQzkaOVRp35aYUGdAYykL75mHWbdgUxEs9LNmUChOV3mQyaoYLxnc2pViU Xtiasm9GFcWrvc1sEinvFwQ2aFqFL7qYTanjJQg4wWXzS/AfMReiiHmy0ltjGoqUOrrF 2LnA== ARC-Authentication-Results: i=1; mx.google.com; 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 cz5si7764494edb.127.2020.05.12.08.04.26; Tue, 12 May 2020 08:05:15 -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; 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 S1730382AbgELPCz (ORCPT + 99 others); Tue, 12 May 2020 11:02:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:46198 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbgELPCy (ORCPT ); Tue, 12 May 2020 11:02:54 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 95DD1AB64; Tue, 12 May 2020 15:02:55 +0000 (UTC) Date: Tue, 12 May 2020 17:02:50 +0200 From: Joerg Roedel To: Andy Lutomirski Cc: Andy Lutomirski , Peter Zijlstra , Joerg Roedel , X86 ML , "H. Peter Anvin" , Dave Hansen , "Rafael J. Wysocki" , Arnd Bergmann , Andrew Morton , Steven Rostedt , Vlastimil Babka , Michal Hocko , LKML , Linux ACPI , linux-arch , Linux-MM Subject: Re: [RFC PATCH 0/7] mm: Get rid of vmalloc_sync_(un)mappings() Message-ID: <20200512150250.GC8135@suse.de> References: <20200511191414.GY8135@suse.de> <8D6745B7-0EC2-4FCC-B6FC-E7E1557EB18E@amacapital.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <8D6745B7-0EC2-4FCC-B6FC-E7E1557EB18E@amacapital.net> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2020 at 12:36:19PM -0700, Andy Lutomirski wrote: > I’m guessing the right solution is either your series or your series > plus preallocation on 64-bit. I’m just grumpy about it... Okay, so we can do the pre-allocation when it turns out the pgd_list lock-times become a problem on x86-64. The tracking code in vmalloc.c is needed anyway for 32-bit and there is no reason why 64-bit shouldn't use it as well for now. I don't think that taking the lock _will_ be a problem, as it is only taken when a new PGD/P4D entry is populated. And it is pretty unlikely that a system will populate all 64 of them, with 4-level paging each of these entries will map 512GB of address space. But if I am wrong here pre-allocating is still an option. Joerg