Message ID | 20211207224013.880775-1-npache@redhat.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 C4BD2C433EF for <linux-mm@archiver.kernel.org>; Tue, 7 Dec 2021 22:41:08 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 46F126B0071; Tue, 7 Dec 2021 17:40:58 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 41CBB6B0072; Tue, 7 Dec 2021 17:40:58 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2E4256B0073; Tue, 7 Dec 2021 17:40:58 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0126.hostedemail.com [216.40.44.126]) by kanga.kvack.org (Postfix) with ESMTP id 1C2A06B0071 for <linux-mm@kvack.org>; Tue, 7 Dec 2021 17:40:58 -0500 (EST) Received: from smtpin15.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id C3B7F8249980 for <linux-mm@kvack.org>; Tue, 7 Dec 2021 22:40:47 +0000 (UTC) X-FDA: 78892469334.15.590B7E7 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf07.hostedemail.com (Postfix) with ESMTP id 650F610000A6 for <linux-mm@kvack.org>; Tue, 7 Dec 2021 22:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638916847; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dc3k+a7/fq/cwVCEtRZxiDaCp7bjEz2vnqprGXYHsaI=; b=Hg5EHf+N/Y5Tz0nN+MJcdiHTQm0Bxaghj8r4P2oOVn+ceg13MrUgGkDapK2Y2wI9oV/6ci 4pcpxgGR+iIWq8LwSw1L+I60AvQejQ2pgXXDfUPu4WDGkKpui1Nw9FP1VeOpvIlB3DPf5r vjUelS+xh1CYERdkQjMKTNHVZapmONU= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-553-0Ya5XjeiMSKNHLp9HgQbUQ-1; Tue, 07 Dec 2021 17:40:43 -0500 X-MC-Unique: 0Ya5XjeiMSKNHLp9HgQbUQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D19548015B7; Tue, 7 Dec 2021 22:40:41 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.22.32.131]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9417119C59; Tue, 7 Dec 2021 22:40:20 +0000 (UTC) From: Nico Pache <npache@redhat.com> To: linux-kernel@vger.kernel.org, linux-mm@kvack.org, akpm@linux-foundation.org Cc: shakeelb@google.com, ktkhai@virtuozzo.com, shy828301@gmail.com, guro@fb.com, vbabka@suse.cz, vdavydov.dev@gmail.com, raquini@redhat.com, mhocko@suse.com, david@redhat.com Subject: [PATCH v2 0/1] Dont allocate pages on a offline node Date: Tue, 7 Dec 2021 17:40:12 -0500 Message-Id: <20211207224013.880775-1-npache@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Stat-Signature: abhbz4ehhzzo713qk3exuumwg76irsx3 Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=Hg5EHf+N; dmarc=pass (policy=none) header.from=redhat.com; spf=none (imf07.hostedemail.com: domain of npache@redhat.com has no SPF policy when checking 170.10.129.124) smtp.mailfrom=npache@redhat.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 650F610000A6 X-HE-Tag: 1638916847-983260 Content-Transfer-Encoding: quoted-printable 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> |
Series |
Dont allocate pages on a offline node
|
expand
|
Prevent page allocations from occuring on an offlined by adding a check to confirm the node is online and if not, use the closest node. Some further work is needed for my previous solution to be complete. This will provide a fix to the problem while the more complete solution is being worked on. V2: * drop the first patch that will introduce a regression by adding a branch in the hotpath. * Remove the for_each_online_nodes introduced as that will require further work for memcg and hotplug to work correctly. Long term a rework will be needed to either allocate all pgdatas or update all memcgs when a new node is onlined. Signed-off-by: Nico Pache <npache@redhat.com> Nico Pache (1): mm/vmscan.c: Prevent allocating shrinker_info on offlined nodes mm/vmscan.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)