Message ID | 20250124235454.84587-10-anthony.yznaga@oracle.com (mailing list archive) |
---|---|
State | New |
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 61AD1C02181 for <linux-mm@archiver.kernel.org>; Fri, 24 Jan 2025 23:55:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CBC222800B6; Fri, 24 Jan 2025 18:55:50 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id C6D492800B0; Fri, 24 Jan 2025 18:55:50 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id ABFFE2800B6; Fri, 24 Jan 2025 18:55:50 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 8877A2800B0 for <linux-mm@kvack.org>; Fri, 24 Jan 2025 18:55:50 -0500 (EST) Received: from smtpin18.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 38D6A141692 for <linux-mm@kvack.org>; Fri, 24 Jan 2025 23:55:50 +0000 (UTC) X-FDA: 83044005660.18.C746E1F Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf20.hostedemail.com (Postfix) with ESMTP id 143E01C0016 for <linux-mm@kvack.org>; Fri, 24 Jan 2025 23:55:47 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=ein04UV3; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf20.hostedemail.com: domain of anthony.yznaga@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=anthony.yznaga@oracle.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1737762948; a=rsa-sha256; cv=none; b=aW+pJuD2DfMNge8Si37iuq0BPTWMb2d4lPVm76VK8pzQQdZWPGGFTdLo69rwQnmRK/3lNl EbX4Qrxqq74WA3PHe4kq64zf8FjYdMT7gOBfe5nIRNlNCBAEG54px11y4od57u8bOBuqa3 r3iHoUCk+xUtk7F4nwzOZ4wiMQ1sJnI= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=ein04UV3; dmarc=pass (policy=reject) header.from=oracle.com; spf=pass (imf20.hostedemail.com: domain of anthony.yznaga@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=anthony.yznaga@oracle.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1737762948; 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:in-reply-to:references:references:dkim-signature; bh=ZcO5NeJEjDQdCDY/fuqAGnADUV80X4TyMt4r7D6ggW4=; b=OSd4Wojg9TK5SijCW7Lj1UbkdEkRARrLExSrFCYgZL2jTZDOZCSehzJkwkUCf25LAc/dBT EZOBz7a830A6Z39Z6o2rOFaKl3lw0nWN+L8SqGG25jqY3v8ql2Hv0/EdYtyyZuopfWHIIl i8t+DFm/LWVBkUGY+kF/il351XktVlc= Received: from pps.filterd (m0333520.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50OIGFs8002260; Fri, 24 Jan 2025 23:55:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=corp-2023-11-20; bh=ZcO5N eJEjDQdCDY/fuqAGnADUV80X4TyMt4r7D6ggW4=; b=ein04UV3awDrUwjxe3S2F MV9y3gYFGT9/MmyXGDXQb/BrB4uwuWGc4p+o69qDmO4VbJa80nrnfelxKQ0j20S6 DLl0AF/0hXWyLfa/sqN6uW5ekxmZ5JVfq3CNVgsTyu7UnodQaM8GBZR3YRcxOQoe BKUSS40IOOJhkFcsGTpMTXRMr9tc9v1iEpBT2RNUqT1hEbiEX5dF9CXP35nIF053 hgACxW5JUNXzK+NZd/ubylr/8d2N+Ra8/1T0WMsz81NyTR+P1len+ibflq/QY0Lf R2oXk8MelD8F9VONynGg7P60sbsQv9iplPAtzA5S2se/DYERWIE6fN0vKy0dvWDq g== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 44awufwwhj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Jan 2025 23:55:36 +0000 (GMT) Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 50OLJ9Zl036493; Fri, 24 Jan 2025 23:55:35 GMT Received: from pps.reinject (localhost [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 44917u4adr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 24 Jan 2025 23:55:35 +0000 Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 50ONsxQ0018051; Fri, 24 Jan 2025 23:55:34 GMT Received: from localhost.us.oracle.com (dhcp-10-65-130-174.vpn.oracle.com [10.65.130.174]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTP id 44917u49ww-10; Fri, 24 Jan 2025 23:55:34 +0000 From: Anthony Yznaga <anthony.yznaga@oracle.com> To: akpm@linux-foundation.org, willy@infradead.org, markhemm@googlemail.com, viro@zeniv.linux.org.uk, david@redhat.com, khalid@kernel.org Cc: anthony.yznaga@oracle.com, jthoughton@google.com, corbet@lwn.net, dave.hansen@intel.com, kirill@shutemov.name, luto@kernel.org, brauner@kernel.org, arnd@arndb.de, ebiederm@xmission.com, catalin.marinas@arm.com, mingo@redhat.com, peterz@infradead.org, liam.howlett@oracle.com, lorenzo.stoakes@oracle.com, vbabka@suse.cz, jannh@google.com, hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev, shakeel.butt@linux.dev, muchun.song@linux.dev, tglx@linutronix.de, cgroups@vger.kernel.org, x86@kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, mhiramat@kernel.org, rostedt@goodmis.org, vasily.averin@linux.dev, xhao@linux.alibaba.com, pcc@google.com, neilb@suse.de, maz@kernel.org Subject: [PATCH 09/20] sched/numa: do not scan msharefs vmas Date: Fri, 24 Jan 2025 15:54:43 -0800 Message-ID: <20250124235454.84587-10-anthony.yznaga@oracle.com> X-Mailer: git-send-email 2.43.5 In-Reply-To: <20250124235454.84587-1-anthony.yznaga@oracle.com> References: <20250124235454.84587-1-anthony.yznaga@oracle.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-24_10,2025-01-23_01,2024-11-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 mlxscore=0 spamscore=0 mlxlogscore=932 bulkscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2411120000 definitions=main-2501240162 X-Proofpoint-ORIG-GUID: RLJBBpgx7vozRd6-hI4ZYSvtQXLVXi04 X-Proofpoint-GUID: RLJBBpgx7vozRd6-hI4ZYSvtQXLVXi04 X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 143E01C0016 X-Stat-Signature: ny5sw31areppaepct7h8c97in9n8oxsm X-Rspam-User: X-HE-Tag: 1737762947-666584 X-HE-Meta: U2FsdGVkX1+qRVzJwRQvnk5SCHB8J/5hI5OiXTSVuXBmRfHd+7BIW8pbx85eIOMdC1OO5eZS14iL1Y1gSMC+NWsTZorAvHYPfOewhO6FFV02dyDLaDHQpxWwpaYHFORKcNZB1AqLxqGTBLPXyB+QJacRda58E82NC7OuBq0P8/3B86oKLujgiuHXd/6WG9EKl3v8IfSCHPAfIfk+9LW8CP3HT5gySYkabOMKfLb4CJ0sUGtKUXf3VPy0rjvROGTiX/tEU/qh8i2QwXKR7+S3HN1GTy6WLNEUjQNpSmg7w7tLjwgfxWn0r7PvthrGdpCk57v++fYtxTvaTxGIBnX+rJvpBAnPWe3c56CKTJux8SaG3cD7+Ur2UL8rI3aXvro8zr/zqbo/qf2RAqGLSpRJDKhpe88A0JITeDoMArcDdYllfhlpxcPEs7Uioj/htO6RjDQcIhGygyJY2cq1zYNAj0Z/3GlcBZ6fEEhC6VlAsvPrbcdE8FFN4UGiZNyOIQ8EIruAmN3GF3wevSYDOtxiUbybGdKMH/7pSag9j1hN/1c68Y/iVxzEUDbzzy3cvPg1+HNJPyQvgdtSMBBoXkVFIykv/ZpjkiBXIfuoZiFg5h/Z+4tmSDYpSyifz6H8CDZeHvb0SqRammtpSKWrkOaxRCK7iZz4FWlqWE5GYVCMndyDvbW1RdfNLvnLKPEW5Ozw319coDFbkh01vpak5CvImSCJPVcaBLoQp9JOdE8njZAIPbFaw/2SJT6jU4ehJ3oVZlTupvj8hl8aNsmjdeQRGHdMc397AtMzSgYaPhvy3OWodwQhoSy7dTZJnaS0/uJ+WrnyxgFGIm+a6zTwVneiFYb+qs13v7IDmhskgxSmh6UvMUue1+SWU2FHgbZ0hMXLamUYpxaSeLsipjMY/4JA0OKw6jC9Itgx4d8r5ZCmCHnieYN78/X7r8knbs92sOCoKXXL1DzhDN+4Pgj84ZE DE58hY4/ vLm+acQdw2Rws2VmEPyioEud2Qw5AWfo/N/nMSJtDC2hAW9V3u0ewYWJTXlhbgnlVYIVnRTzdeB3xx7MuVJAvIBiyTPVgkXisMDAwzNsUB5AUISpp7X4AjOa1yNAOtgghNNq0dGMLe5dxI4AKUDsHWj9oVA65O/JFlwD+JcyIUd8pgcH3BmZCBIjTlsktUxFlzwrr8NEcn39AC6N7vP0RhlI2UcL+Wb5z3O4s4Ag7HOHNb5A= 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 |
Add support for shared PTEs across processes
|
expand
|
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 3e9ca38512de..e9aa1e35f40e 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -3374,7 +3374,8 @@ static void task_numa_work(struct callback_head *work) for (; vma; vma = vma_next(&vmi)) { if (!vma_migratable(vma) || !vma_policy_mof(vma) || - is_vm_hugetlb_page(vma) || (vma->vm_flags & VM_MIXEDMAP)) { + is_vm_hugetlb_page(vma) || (vma->vm_flags & VM_MIXEDMAP) || + vma_is_mshare(vma)) { trace_sched_skip_vma_numa(mm, vma, NUMAB_SKIP_UNSUITABLE); continue; }
Scanning an msharefs vma results changes to the shared page table but with TLB flushes only going to the process with the vma. Signed-off-by: Anthony Yznaga <anthony.yznaga@oracle.com> --- kernel/sched/fair.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)