Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2794379ybk; Tue, 12 May 2020 08:17:59 -0700 (PDT) X-Google-Smtp-Source: APiQypJm5/cQlKHM+kMlI7fsqKl58kUKcTW6wRP4jWYArgrzij/slRH87yuraF6rtqRX6gCRT9gD X-Received: by 2002:aa7:dbc3:: with SMTP id v3mr10553771edt.103.1589296679771; Tue, 12 May 2020 08:17:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589296679; cv=none; d=google.com; s=arc-20160816; b=gXzFAtKMcoEIdBGwi4TY3mkJGyFAUDkdfoGtotB6hzCsiHCnpBSw5zOrpMbNORF4zA Y8vUJf8eFUqZn1Lk3526MwwBfYG7ndYLEz7/CvcdYUJgA/y9IT1iX9uzCkH86NoOyY6r KutJ19JotYm1KUuHSsLWOIHhDptLWG3B4RfjHNf3ruVgwazXt3iubbkhBWVHdQ8sJECd s1OOB6GW9yKXNNhADLBaUe3x3Ze2Hv28kJtoM5xU+zYL9qh8C7rcxlYQai1ycMU7qaQB GCc3KLQPHH+51cDW5r7RxZ7LnO+8ySwBwKmo0OzS08XEG7ADm2b2EDNRWJcbU/pElhED s7WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=aXhQTia+xT9Skq4xCeLjfV9/WhndG9oW+CFS9k7WcMU=; b=dMUYm3tOPouKexPiGC7tBWBlF2nJ4lGCJrqaQQYEjeksxTuvTCNFTZPleFFWIFykdY 2JwiHnvhkKZmmyTA9AAWM6jzpfDi0jTeCL1hOSWk+jK8ZISfIWUCTSAS+iTxdkSjlITA y3s0QqUdUKFSo2UgkPjerPWYtTRc3VqVheoVVuEG6KjYSIYytnZbf82nJyW4FQKlfmKo PIxq+AWaf5fKJf30juB9ZM2HHtyTfiZvJF5Jeo8V2FGf3SuVlu83VQcL3kCNwdUCDxDW 8QvU8Ts7rtPGjKjNgbTswku9cgVSPVQmn6sPdlDewTIGWyT0DHpokrg7maSSn7nW0qb6 5aHQ== 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 q9si8460243edn.501.2020.05.12.08.17.35; Tue, 12 May 2020 08:17:59 -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 S1730600AbgELPNi convert rfc822-to-8bit (ORCPT + 99 others); Tue, 12 May 2020 11:13:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:55052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730224AbgELPNg (ORCPT ); Tue, 12 May 2020 11:13:36 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E42592054F; Tue, 12 May 2020 15:13:33 +0000 (UTC) Date: Tue, 12 May 2020 11:13:32 -0400 From: Steven Rostedt To: Joerg Roedel Cc: Andy Lutomirski , Andy Lutomirski , Peter Zijlstra , Joerg Roedel , X86 ML , "H. Peter Anvin" , Dave Hansen , "Rafael J. Wysocki" , Arnd Bergmann , Andrew Morton , 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: <20200512111332.24f5cd7a@gandalf.local.home> In-Reply-To: <20200512150250.GC8135@suse.de> References: <20200511191414.GY8135@suse.de> <8D6745B7-0EC2-4FCC-B6FC-E7E1557EB18E@amacapital.net> <20200512150250.GC8135@suse.de> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 12 May 2020 17:02:50 +0200 Joerg Roedel wrote: > 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. > 256TB of RAM isn't too far in the future ;-) -- Steve