Message ID | 20240705143218.21258-1-tursulin@igalia.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 50F80C30658 for <linux-mm@archiver.kernel.org>; Fri, 5 Jul 2024 14:32:33 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 293086B0092; Fri, 5 Jul 2024 10:32:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 240E96B00A3; Fri, 5 Jul 2024 10:32:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 130206B00A2; Fri, 5 Jul 2024 10:32:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id E44896B00A3 for <linux-mm@kvack.org>; Fri, 5 Jul 2024 10:32:28 -0400 (EDT) Received: from smtpin04.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 88D981A0116 for <linux-mm@kvack.org>; Fri, 5 Jul 2024 14:32:28 +0000 (UTC) X-FDA: 82305939576.04.70621EB Received: from fanzine2.igalia.com (fanzine.igalia.com [178.60.130.6]) by imf03.hostedemail.com (Postfix) with ESMTP id F19B220028 for <linux-mm@kvack.org>; Fri, 5 Jul 2024 14:32:26 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=gzUiIEmQ; dmarc=none; spf=pass (imf03.hostedemail.com: domain of tursulin@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=tursulin@igalia.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1720189925; a=rsa-sha256; cv=none; b=LP27ZXRGOH7gx1AMcfFCcpnI0pCM4s943HsyHJB8QprPN6jVlwD0iDWJ6RRyBBvWTTMcIv TJtgI3ow2avZFt3KLFegZdapqA3D2kWNJ8EYcGDXjHV2Rv1ao4rCvwIFA0zu/HI1YtwgTo DNDo22uMyLDSa37mg6LpYJ0JvPAKDGA= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=pass header.d=igalia.com header.s=20170329 header.b=gzUiIEmQ; dmarc=none; spf=pass (imf03.hostedemail.com: domain of tursulin@igalia.com designates 178.60.130.6 as permitted sender) smtp.mailfrom=tursulin@igalia.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1720189925; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=tW9W5aA0QL1+tEzKb3u8InAtf2ShZmmpt5/SKEpPDKQ=; b=5Sq8qyC7S08YKQb0Dit+TMW5CHLxtfh+55M9Dw/ntS/POI0AbGQQ7kNcD5c1JDrNpc3V3o kCKTaXGC7vcPL3Ihesrb+beBkjIVmohFkAcI17doEgzofjUY/NfWCf/kRJoZ9kDdgGI7Ec rEBSORrFW9f6Njc4jM5Edy/OIltIX5Q= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=tW9W5aA0QL1+tEzKb3u8InAtf2ShZmmpt5/SKEpPDKQ=; b=gzUiIEmQlxSEBymvLZjiM6oupp yEfm7ZYdv3IkD3XYkcZzRczTzcslPCCEx6CEQdvt/VkvZ33WzooNp6y8Zkj/kVz8txfTNAz6BDfmJ KwFBFGChxTHdsgP+o/Cgab+18wyXI36WMl8JZcM6xB6dhGKjahuXiGpi0rWhLoFftVkiK7yccKR2f jhsQB7xotPiI7/eM2SpKvrQ6wIasROELhEy9RV9jGBbhqda9BLaWFyKJ89mgW3emf4AL4OuM7V4s0 iwCTPgd70smH2lJbKpXnxi/+BUwdyEJkF/gyaf8rVH1LXJkQnIvUo8nRsf0iKdfaP4ztCfZXVfvv0 gF0/+kNA==; Received: from [84.69.19.168] (helo=localhost) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1sPjz2-00BSlq-LI; Fri, 05 Jul 2024 16:32:20 +0200 From: Tvrtko Ursulin <tursulin@igalia.com> To: linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, kernel-dev@igalia.com, Tvrtko Ursulin <tvrtko.ursulin@igalia.com>, Huang Ying <ying.huang@intel.com>, Hugh Dickins <hughd@google.com>, Andrew Morton <akpm@linux-foundation.org> Subject: [PATCH 0/3] One fix for /proc/<pid>/numa_maps and two RFCs Date: Fri, 5 Jul 2024 15:32:15 +0100 Message-ID: <20240705143218.21258-1-tursulin@igalia.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: F19B220028 X-Stat-Signature: 3sjtogdiz7e3xzdjifuw41rajtw53ko5 X-Rspam-User: X-HE-Tag: 1720189946-319135 X-HE-Meta: U2FsdGVkX19FNpdLqFZMagWr9G8feD8ZOuiTAQL5Aaifs6bOjwOZwENiph4fDnO0Zv04QwD8IFpUZLFFePmBIf/0raCAOdup0W9G/9EqpaggQpRUsvrKR41hoZBGifKNz/eKCZtMOLUaG9eZwzJDLo5ScBsnlK0p0vrn4ekIon/QaQrOu1rQnRF7uhm2cmqPzYCmkXwtDKkglX+wPGWi8Yxu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mZe0X1/C+9iBP+Xr2QQ4ZYX7hE7YgozPhVurptB5c4kFRIWe0pGZbysgh+SH3O630tmDB9aVcJEpovSsg8MlrC X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
One fix for /proc/<pid>/numa_maps and two RFCs
|
expand
|
From: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Hi all, First patch fixes the issue where NUMA balancing mode was wrongly shown 'default' and is small and so hopefully backportable to stable.c Second two patches are more like RFC. Although they work I am not 100% sure of their benefit. Especially the last patch which enables turning on NUMA balancing with tmpfs. Second one at least makes the flag handling a bit more robust in the sense that it can prevent future mistakes. Comments and opinions are welcome! Cc: Huang Ying <ying.huang@intel.com> Cc: Hugh Dickins <hughd@google.com> Cc: Andrew Morton <akpm@linux-foundation.org> Tvrtko Ursulin (3): mm/numa_balancing: Teach mpol_to_str about the balancing mode mm/mempolicy: Use flags lookup array in mpol_to_str mm/numa_balancing: Allow setting numa balancing for tmpfs mm/mempolicy.c | 123 ++++++++++++++++++++++++++++++++++++------------- 1 file changed, 92 insertions(+), 31 deletions(-)