Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp75536rdb; Wed, 14 Feb 2024 13:13:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYhTKXSZkmOWO8CgytFVHWBqYXusrd5Fx0creNCMwp3l/b3GONjVh7LW0XpXA92XRMWzvPFrf1kcixv33fS6g+Hlg0/qwD1bn8T00BTw== X-Google-Smtp-Source: AGHT+IGR5ZiPGhed21nDqvwyNnCJQdc31K6u48oJBINqys6uuEOg9b/LYdWGZR7UQ3D+EkkHn8uM X-Received: by 2002:a17:906:395:b0:a3d:6a0b:5bf0 with SMTP id b21-20020a170906039500b00a3d6a0b5bf0mr1242373eja.63.1707945191708; Wed, 14 Feb 2024 13:13:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707945191; cv=pass; d=google.com; s=arc-20160816; b=BjEsqfbCtvaHIZG87WLr1crdgeMdZjQ4iKXcFtnVjRy5OnH/W2RJC9C+4rjqYjkfXZ 3ohnjtw5QqJrk7PI1HgUueYs+IvB43cPn4rHhppmkiU+8ouwT+a0Vdr/EComhcAD++VJ ZuVDQz4l5elxkVG4QE1yY7hapAQWWjbeJOmoxLhYlPWf5dmyHmULVD5gyijeLGuC1BID WoUHAAaO2XrgaIztaBvaYw8NNMA23wrRKjA87HKP/zc6xGSIsaHOibtJZ8x/CkxZtpGW vL3fiQdmYPge8BZGD4tBmo8RJM5MJ6mRARurGEHWP3Q5j+H/663eNynvTyP+/1jxrt4C gGDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature:dkim-signature:dkim-signature :dkim-signature; bh=F8wdY0YFKaKjOV8Tnp1nu+NBL4FYahcJXwydnW14Moc=; fh=nUV0xv8+JsL/+BYD/404/pI0ZPCGuYyutdK9457x+Ew=; b=CaGZkqVVjMQF6aNHu4OQyhr32JNEwjmxAIdapHdtshbubsFy9mBcz28N0vGoIIFYw9 wAmj/gKpk59EMJL54uq7ieQKsvkHUp/OXLV6lkUTyGNU0SSZoV4ErDX0Fe13X5A7kR9b u9U7bwwKXh6D3q9G5zSgMydFs7dN3lzW2jw5iak/Y4pq6mxUycnHKUcYxntdGwvl5gr0 yxnfJudFDprap7HgfHVqai8YHy7AGV6se3zXNKI2OowoBXd0BCW4dRZBlkHlOlKGu9OP MuEX9pI3dmI71FiJZW31p/1bsgfhJ3Dd4zpEZs2e5SbG+peCTSJCNOZx0FaigxIMMyal qH9Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZRTIFXNw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZRTIFXNw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-65965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de X-Forwarded-Encrypted: i=2; AJvYcCVXbjwhyhaFXVderrkhGfTVGKYhV465mvDcsNAc7+T7hcLBuRisoihZ5dGkWDzPwhix5m6uaDEkBJkex8GTmDgiwNyqu4lrL5ja6Jqfew== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id l11-20020a170906a40b00b00a3d54c2d7fdsi741581ejz.465.2024.02.14.13.13.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Feb 2024 13:13:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-65965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZRTIFXNw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ZRTIFXNw; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-kernel+bounces-65965-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-65965-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4DD231F28F18 for ; Wed, 14 Feb 2024 21:13:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 12A6813F00B; Wed, 14 Feb 2024 21:12:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ZRTIFXNw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="arGAyaHT"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ZRTIFXNw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="arGAyaHT" Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (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 42CFB41C71 for ; Wed, 14 Feb 2024 21:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945173; cv=none; b=nnnWrpp5sYmIXJotyL5g3tN3LA1VkFZorgw6bBL4Dj0vqg1GezH14aeZgsbuubFaeb4h2wGqSfQvOh00COdjWSZ2i/sM8y0/KTNph8H7wcahB3fdRzHo0oYULGHfk6O7NawN9uzZb/o/hSNJMlo6eOktq8MUsgSeQTO+9c19IoE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707945173; c=relaxed/simple; bh=ju41AawBSluKveCx1Sf0/H8XnWiSATiSu3EkXgRrEOA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jmUxiEX74I+Uqyu3UYRZplfJ+4b4/bofa0retQV58+uav2qiTgtnfWjqsYoulvX05x4ozTTm1dJDDXPVMw/HQgM7kng1emIsV1XFB/zYm6NSzssaIKNDhIP0VIQVmIZNF27hXpYIc01g99s4U+Bhr2GDJ3YYA/OuPdMT9baHys8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ZRTIFXNw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=arGAyaHT; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ZRTIFXNw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=arGAyaHT; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0853F2200E; Wed, 14 Feb 2024 21:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707945169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=F8wdY0YFKaKjOV8Tnp1nu+NBL4FYahcJXwydnW14Moc=; b=ZRTIFXNwfOtwTZdKWQt1m+4Gej5esIMZqFEblSo3iUXIWBGnBUgcoxmq1V54hJPeOF8IiH +8WdmSNY9K6CelvrLRKw9RN1CoSGivKF8xkyxWC7dvboMMTmQWTYhjELxC2mRZg3BboEeD j7L0AWA3KTeS+C1lX7jOWnAK2q2xP0Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707945169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=F8wdY0YFKaKjOV8Tnp1nu+NBL4FYahcJXwydnW14Moc=; b=arGAyaHTPZWmvDdFeT/H33P/RCAeChCOGvezGpqce3gLz6KWz85yaZ1Fu9dMaEwJ0T1EU+ ZBPgxwPK6dFPqgAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1707945169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=F8wdY0YFKaKjOV8Tnp1nu+NBL4FYahcJXwydnW14Moc=; b=ZRTIFXNwfOtwTZdKWQt1m+4Gej5esIMZqFEblSo3iUXIWBGnBUgcoxmq1V54hJPeOF8IiH +8WdmSNY9K6CelvrLRKw9RN1CoSGivKF8xkyxWC7dvboMMTmQWTYhjELxC2mRZg3BboEeD j7L0AWA3KTeS+C1lX7jOWnAK2q2xP0Q= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1707945169; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=F8wdY0YFKaKjOV8Tnp1nu+NBL4FYahcJXwydnW14Moc=; b=arGAyaHTPZWmvDdFeT/H33P/RCAeChCOGvezGpqce3gLz6KWz85yaZ1Fu9dMaEwJ0T1EU+ ZBPgxwPK6dFPqgAQ== Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 2722513A0B; Wed, 14 Feb 2024 21:12:48 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id 6chtBtAszWXmYgAAn2gu4w (envelope-from ); Wed, 14 Feb 2024 21:12:48 +0000 Date: Wed, 14 Feb 2024 22:13:57 +0100 From: Oscar Salvador To: Byungchul Park Cc: mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel_team@skhynix.com, akpm@linux-foundation.org Subject: Re: [PATCH] sched/numa, mm: do not promote folios to nodes not set N_MEMORY Message-ID: References: <20240214035355.18335-1-byungchul@sk.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240214035355.18335-1-byungchul@sk.com> X-Spam-Level: Authentication-Results: smtp-out1.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=ZRTIFXNw; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=arGAyaHT X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spamd-Result: default: False [-2.96 / 50.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:98:from]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_LOW(-1.00)[suse.de:dkim]; RCVD_COUNT_THREE(0.00)[3]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; DKIM_TRACE(0.00)[suse.de:+]; MX_GOOD(-0.01)[]; RCPT_COUNT_TWELVE(0.00)[15]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:dkim]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; NEURAL_HAM_SHORT(-0.20)[-1.000]; RCVD_TLS_ALL(0.00)[]; BAYES_HAM(-0.45)[78.84%] X-Spam-Score: -2.96 X-Rspamd-Queue-Id: 0853F2200E X-Spam-Flag: NO On Wed, Feb 14, 2024 at 12:53:55PM +0900, Byungchul Park wrote: > While running qemu with a configuration where some CPUs don't have their > local memory and with a kernel numa balancing on, the following oops has > been observed. It's because of null pointers of ->zone_pgdat of zones of > those nodes that are not initialized at booting time. So should avoid > nodes not set N_MEMORY from getting promoted. Looking at free_area_init(), we call free_area_init_node() for each node found on the system. And free_area_init_node()->free_area_init_core() inits all zones belonging to the system via zone_init_internals(). Now, I am not saying the check is wrong because we obviously do not want migrate memory to a memoryless node, but I am confused as to where we are crashing. -- Oscar Salvador SUSE Labs