Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp647017rdb; Thu, 22 Feb 2024 15:16:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWUGSAMDTw57teEbInYiB/RH3/NSOy8PIFx7MxKU6n4k6gcgS/O1KHyzwz5Nsvrdnn2yJgPvm24HKWLPNc9N/RnaZXuXmHUQxUPAbUmYw== X-Google-Smtp-Source: AGHT+IFy4L7KsJZaDNyso0rA4womV03I+zzzKtrT/e3VnlHlOl4RhJLNzDVltDqtK8gYtFP1qDlM X-Received: by 2002:a05:6359:1503:b0:178:6211:871 with SMTP id jt3-20020a056359150300b0017862110871mr387980rwb.0.1708643779243; Thu, 22 Feb 2024 15:16:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708643779; cv=pass; d=google.com; s=arc-20160816; b=SEJ9z/U8qnK4h5GyhPUugTTmF5cO1IzuTHfoEd5IICL9CgXpxp/NjVd5MdBOb1OUYY SXUPyA9wcEjGH4YAdC/etOyPQv5MTJ2biyDJ/B7BArpblKKVliG8yYm9saGoppdF65Hr 7/8yFyTK7ACPaT8bvU6nOs6yZ85mwj+l8pLdfPmE7YmTUH5VTNlZIRB/zvOCJqZsu3LR Mk31IjgYUeM/2T04Ld0OalvGpV/D+O+9XuwH519UUux4hZrGeu0yHES17QBbI0keCkvA 8NM3cgfIUeaORjSm4QWZPIj5/gji0pHhXNEoxV40qg8ITXn31QkTBqGB+9Vn+uDlt/iS D1bw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4JtTdXxCGCTnvQvSWv3Y1gG67yDkcySzLqqUm/qFAtw=; fh=rB67zT6sFm4oTRyMcznJmqdrWVMKmWn6gaHx7hhsqBY=; b=ZEv++JUPOzG0Yq7asc7kCDJcZ/IIWlzUFawLmgG3jVHJBVPatn+wEOMNmBT8xPx0Xj 7kWb0oT+Z0tmnarfnkvi6mQxeRDQ+jLGQd/8GWTkrt8xm2tIRvvHxLCBey3/EpXOLNK/ jklZTMGdCv1bv5/Sk6dCLkjo0h3sq/e47kfdetijUP0aJvBjQIqABNTiErh7h2d1GMrs tQEGkLTMsvi2Wkef/zmlRlUbZnsl3X8dPTdl44AAGFG9gPRHF1/2gpPPGqQIjeeDO6jj lwLmAtmJGoLSRAvvWNHneHfxvjFCLl9EE/ikEqcALXlvzXiRsIXTr4zJg3xLFbYc794I gYMg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fe+sIpGc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id q81-20020a632a54000000b005dc4ce8d29fsi11121716pgq.818.2024.02.22.15.16.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 15:16:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Fe+sIpGc; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77492-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B8CCF28675D for ; Thu, 22 Feb 2024 23:16:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B50C18B15; Thu, 22 Feb 2024 23:16:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Fe+sIpGc" Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com [209.85.222.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1173017BC7 for ; Thu, 22 Feb 2024 23:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708643773; cv=none; b=o6DXwJ2P99ByaDA8SDYMkcbHp65n6jaQ5+U9mkGIpFXUTIyF4fniXtXD3x0I1QAci6IQtwI0VD7fObzH8/otyrJ0OJpys8N4lctI0c+p8fnLCSMiYPmn9bW3I6/ZhasgS+0OF7e+VeUrAWElmq9hKUY5aGLgBD9awLMufN2HPwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708643773; c=relaxed/simple; bh=DZJ0uqU/+Xaa2u2HTrrUfow93KUsenowq6a4U63I5C0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=iiknDGp9e4ArN/uENDb1QEnwJZgNYoP9IQbPHLRyFxyYWKwHAN/C3sq2zJ6zwSS7UrkNzbSJ5cBltquBBSn85dXwgu+Wd/FzoNx+t5s3cqxYtQmpHDgD9G8GK5BFRk6qdsHF2/+3iACwZMNLr7rOikcpEGd3QyMlAkkr11Uk9GA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Fe+sIpGc; arc=none smtp.client-ip=209.85.222.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ua1-f45.google.com with SMTP id a1e0cc1a2514c-7d2e21181c1so110920241.3 for ; Thu, 22 Feb 2024 15:16:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708643771; x=1709248571; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4JtTdXxCGCTnvQvSWv3Y1gG67yDkcySzLqqUm/qFAtw=; b=Fe+sIpGcero6Yve7/xIcwKFQESnXmSRGzRTYy1hPH4ftiNyCLus6oF9JBErAFrbYrp poTs3JR6M8rwTMhwRndB3CdBEdG/X9ziZ5awFa23LL+qzvTXcvNBrDj0NDTAOaKli4br NcP8JvxS6bOZflyc6l/CHO1TiddKiFO4FUMKOLspwmn2XLsXJ0HlI6nq/McwXN/+EDLL OeWi/1bLC6jGM5pyTm+aXwF2ahTog57BPns0vyjSxo7aKmgNjznbATvP92Y2KVfaL6X8 UCRF9or8F+zYY290288LBxaydJscZbEVm6pDkXZQolmOV5YJR+ylW2qOjhNWHXLPsXiV LsLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708643771; x=1709248571; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4JtTdXxCGCTnvQvSWv3Y1gG67yDkcySzLqqUm/qFAtw=; b=bNWZBPDyTjwPQdiO+p7lHQUS/PMQ/Tbg+s9R7VTNHzcKMOwMmOEr303x2i4LoeE9oF WPtcwL/chDPunQBvi3xDi/ZL28Un1grqtNzrtMCrvXpFqNExKZQZ3bbb+8AanuZfe95r fzMCNalrRgN5IHmfSo99r5rruLtDTESjIdJB23EzsMGE99IQw3F8KXH5hyYj2Sjh9OHR gSVadqT52hrSdxwaDcTyR1Nuv+4KoskY7OzJ67zZnNtLbgh+FnS1145vlLgPX4hceCQM IYUY72PmyZqeo0E1I6OQ0ifr6NmexsGhAEzuVjIsJuGC79qQH8klNZ9YfEy3z1afJN6X X56Q== X-Forwarded-Encrypted: i=1; AJvYcCWCg+fHEy38mfiX3B/XgtUfqjPmhlHsLaI9yzxLiDPncvnBmyp6UzIx7p9j3NysIq26xfIp9mRuvE+27PNR+qdAiYrk1WggPG6+aSHU X-Gm-Message-State: AOJu0YwYS3nO+SM2hZRlmwKsL5AUWfKyQ3aODoi+MkBRPXZ+NGE+A/Ab lC0VF7P/GrP2RVVL0Mi8dODWj+TP5cqwqUf6tEq5cnU9KbIxWNaY6laOYcWe9bgKihqfSbIPgat xHdwzsyBztCmKp7QfcKo8R/HlSqY= X-Received: by 2002:a67:c992:0:b0:470:472a:89a1 with SMTP id y18-20020a67c992000000b00470472a89a1mr384850vsk.30.1708643770735; Thu, 22 Feb 2024 15:16:10 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240102184633.748113-1-urezki@gmail.com> In-Reply-To: From: Pedro Falcato Date: Thu, 22 Feb 2024 23:15:59 +0000 Message-ID: Subject: Re: [PATCH v3 00/11] Mitigate a vmap lock contention v3 To: Uladzislau Rezki Cc: Matthew Wilcox , Mel Gorman , kirill.shutemov@linux.intel.com, Vishal Moola , Andrew Morton , LKML , Baoquan He , Lorenzo Stoakes , Christoph Hellwig , "Liam R . Howlett" , Dave Chinner , "Paul E . McKenney" , Joel Fernandes , Oleksiy Avramchenko , linux-mm@kvack.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, Feb 22, 2024 at 8:35=E2=80=AFAM Uladzislau Rezki = wrote: > > Hello, Folk! > >[...] > pagetable_alloc - gets increased as soon as a higher pressure is applied = by > increasing number of workers. Running same number of jobs on a next run > does not increase it and stays on same level as on previous. > > /** > * pagetable_alloc - Allocate pagetables > * @gfp: GFP flags > * @order: desired pagetable order > * > * pagetable_alloc allocates memory for page tables as well as a page tab= le > * descriptor to describe that memory. > * > * Return: The ptdesc describing the allocated page tables. > */ > static inline struct ptdesc *pagetable_alloc(gfp_t gfp, unsigned int orde= r) > { > struct page *page =3D alloc_pages(gfp | __GFP_COMP, order); > > return page_ptdesc(page); > } > > Could you please comment on it? Or do you have any thought? Is it expecte= d? > Is a page-table ever shrink? It's my understanding that the vunmap_range helpers don't actively free page tables, they just clear PTEs. munmap does free them in mmap.c:free_pgtables, maybe something could be worked up for vmalloc too. I would not be surprised if the memory increase you're seeing is more or less correlated to the maximum vmalloc footprint throughout the whole test. --=20 Pedro