Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2644209ybt; Fri, 3 Jul 2020 14:52:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzqyci8IUaWWhDikdhBBQJ1tXiYPZf5vmI6QUArWGP2a2/HXQDRY8953zZag6Hc1x1iHf2e X-Received: by 2002:a17:906:fca4:: with SMTP id qw4mr32338039ejb.362.1593813171957; Fri, 03 Jul 2020 14:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593813171; cv=none; d=google.com; s=arc-20160816; b=gn9bMlLrEfhXX+4ECYzoYgISMl3Hl9XpuyWfyuEFcVWkLckIXy32kd58EFLz45XfW3 hmyTiqvHDYO4g5Z4aH7Kq+V2655q3d8SxSvTWdHb18SNDscXL7RLDdtn4UWVhsWjktyy ZVjV7xoKKva+Ngvbm9OMBrWihVyoF8kemkgdpK5pVLmOHZaq9nAuIvvj8ytnXeWUIA6n lNt1+tHXGc+AymY9vjxRYq4Nn4LDJYrmE3Qbso6QGlxLJeMQBS0/tFfJiCWABvk4y7qr SninIpjYR+AifbtgRuVe0dGthEfzK4ME//PhmfOw0V26QSHUCijKcRMRBobsMN0XfZ8H YzLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=lU/uXJfhXSguevBC4rPhh3n/kmpGM+LeT9/Wol7zCDc=; b=jEotvM4SoK0AvD9APoU4riCzPl6Ry3TFzVk3jJgTEaqMkxOosM0JOy7X4cknhe7JNN 1ztu7zbT+hCvtM19oW/xkWrffyuOKIloPjc8liokTYZcy7J8KDN0PdPNfq410CdxJcsa WXOhR17MFqerjLpgxXd0E7qKI5hVX6Muo1lEVVpR5cfFbAqN2ElU+bpiqrmnuQ6pjwdG udER449FCgSu5XlGu9J3rr/eoPO/b7dxTziigWX2UqiUG2uHXtqCXRT8Yl2wnue6hlNW Yd6CTEgp+HA+UngSLL9S6vI55nBkpD/xWQdq54le3xSrAA9AdYpeOC8a9hSO1RG2PXkB 9j7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b="dAXQ/RS+"; 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 x13si8148073ejb.488.2020.07.03.14.52.29; Fri, 03 Jul 2020 14:52:51 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b="dAXQ/RS+"; 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 S1726682AbgGCVwD (ORCPT + 99 others); Fri, 3 Jul 2020 17:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbgGCVwD (ORCPT ); Fri, 3 Jul 2020 17:52:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B249C061794 for ; Fri, 3 Jul 2020 14:52:03 -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=lU/uXJfhXSguevBC4rPhh3n/kmpGM+LeT9/Wol7zCDc=; b=dAXQ/RS+LAD5awMVpxUelA7BoC fQVg4CTt+VJkOPEHeDwVj8fvvFP4LPQKX2q61FC6KeEc05mysCryWo0u2uLeov5UJD6AdsTEQ61ZS U7IrAd+eJoNXQIMXZ20JM0CcTBrFUWv10PyGb2e9RZujYKdDofSsYqK5vMjBb4mVw3tjev1YgNgqk fNebVhAOB0IdB6jDCyzN2TdACFanBC5KMFQaaFnmsKvYAQjGI9tjnYOx2PWOzdnxsg5AkshTPlt1P yoO0UxJIAs3jBJaH+PN2lSbj08GqBZmRAnq36r11lRvGoLf7l+1efGrl3yAUOsszlBOkhGcvjtsWp G6eYy6JQ==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jrTbB-0007Bf-Id; Fri, 03 Jul 2020 21:51:57 +0000 Date: Fri, 3 Jul 2020 22:51:57 +0100 From: Matthew Wilcox To: Uladzislau Rezki Cc: Linus Torvalds , peter enderborg , Linux Kernel Mailing List , Linux-MM , Andrew Morton , GregKroah-Hartmangregkh@linuxfoundation.org, Peter Zijlstra Subject: Re: nr_cpu_ids vs AMD 3970x(32 physical CPUs) Message-ID: <20200703215157.GI25523@casper.infradead.org> References: <20200703155749.GA6255@pc636> <8a2a55e6-6087-e4bf-3d35-ed4b4c216369@sony.com> <20200703192807.GB5207@pc636> <20200703212047.GA6856@pc636> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200703212047.GA6856@pc636> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 03, 2020 at 11:20:47PM +0200, Uladzislau Rezki wrote: > Some background: > Actually i have been thinking about making vmalloc address space to > be per-CPU, i.e. divide it to per-CPU address space making an allocation > lock-less. It will eliminate a high lock contention. When i have done > a prototype i noticed and realized that there is a silly issue with > nr_cpu_ids on some systems. vfree() may happen on a different CPU from the one which called vmalloc(), so I'm not sure you're going to get as large a win as you think you will.