Received: by 10.192.165.148 with SMTP id m20csp834004imm; Thu, 10 May 2018 01:06:46 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpthOKKy/zCKFx79e1p+DHH6oVCPEvphfROA0k0jZ8XD7W9v78bSLx8VtptV/qT6EDq1zEH X-Received: by 2002:a17:902:8218:: with SMTP id x24-v6mr409834pln.57.1525939606446; Thu, 10 May 2018 01:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525939606; cv=none; d=google.com; s=arc-20160816; b=mJXCUkTD6gpNHKGpDalnnryRXkpF5FbRqZ4bYDyjfsrcU/r7ZEjNFE9ja0d2qGoR0r Gy/Wn41Sszc9aJ0+BnSyOnWEQtRNFu9fnaYHpoyUEKExVG7EYlTSJ2FBFzX41mp5yTU6 BSzOcbqGkjRHE7uQ650cnGwhlHYjcR5wf8eqSTpyqxnxMHrbr3KHzp7hesJeNvk8UPFe kqGSrwxmv/quEgK5c2dTVsN5OY1uGOb60a0MeVz/hZOv4096LVrqtAZJjVK01XG8b2oR YNI9m9x07HsoYtCFhlCzthzjsMkegV647bbr08Jl0xykDkHoNEezQbSxZSoFGjQOjDMd 00VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=OymWX7N2mQopW4AC4deri3w4tEK5zFF3S2KSsMlk4yQ=; b=re4LCEGDHt6yr1OFFB34SCYuHYNBNICEYraERe4sXh7KHkJjEu5CmjvvK7XKtFaTKJ xyU6QSLfz7wbM6bkn28s+qq6gv5rkOg2jyABHGb8jqaiNdvjZ+O1HuwJgKmQ3amV4xcy CwifPz0L3cUpXLl+xM36zrGpNkiE6viTBjpMCankTbhEXOK8/n71b0Gq6Ko5LND6X6NJ Ni98zcLJNIW/UhqhQ34axB9RMwJoEgXD0lu/2AMfiVNAY8Ia3ieQo4mXPG+HhrKTD8Cf 2CQXK78w4PuL7qh0L61ZpVkB/eTX6CEPMEpYjBtpdN5qW1VUy53ScaCnlKbtEsAPBYlO zkjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VO7gp/if; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s62-v6si200144pgc.216.2018.05.10.01.06.31; Thu, 10 May 2018 01:06:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VO7gp/if; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756702AbeEJIGR (ORCPT + 99 others); Thu, 10 May 2018 04:06:17 -0400 Received: from mail-oi0-f45.google.com ([209.85.218.45]:43284 "EHLO mail-oi0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753853AbeEJIGN (ORCPT ); Thu, 10 May 2018 04:06:13 -0400 Received: by mail-oi0-f45.google.com with SMTP id p62-v6so1018404oie.10; Thu, 10 May 2018 01:06:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=OymWX7N2mQopW4AC4deri3w4tEK5zFF3S2KSsMlk4yQ=; b=VO7gp/ifwy02yxlKQYi5t3rJ3/qy2rIOy5fl2e81ZkEMl07EmsCxnim8jdoVV7wz8R jYEXygj0E6tTabvwR6/iI7OpG7ri841IOAEW+Pe87YNgqlZJa6zd23kd84BhsThAltVc KwWrFiafz3qF6gJr+OB3B/9yKmftknD1Co6pLMyoexAGW+Ea7ktx/xRdPqrETZG1IHTN bKNA0hCa8AhSqaXQLnj3ZmCj0DCvAzYVxZlcqznVkGXgpSEXP9OJ8dTQfIAETRc5CZ2U RDQ2a9APqAJLH3LhrDmdCpy5/MB/2YF1aY8LpxgpbtGj4dQa/lJ22Bu4apOGf0SrHA3e b0/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=OymWX7N2mQopW4AC4deri3w4tEK5zFF3S2KSsMlk4yQ=; b=sraDt63VnNw1/oWnn8rT6eehw0kNF9YAAlqzAvUesqAl4M+gB4eGsiuSrZc7SFEY9U 4YCKZ7i1GRlVVfqpWpx3g8kwmOAZr2lS2Y54tf7IY5FuImG1M4oWkWXEwfSJcO0d7IE1 PZg8QedY/YqgeKp+XKYm0xnHyCa6hRCvLM9/JEgPPtI5fptyKIFi2/KwVPAWd/J9ATy5 5OXfm2nuTrU1UNIMDtSGtS8jMxHK7RC3A2Qm06kXApNvncqqEL4gzb8Z6j/W+Ghq5kHM UaB+0dCTAnAEduO/wZhthyI/mE5Ja41Spa1Tt/9J5teaAvvGxZC2ZG1q6jm8XcuMyghm 8ikg== X-Gm-Message-State: ALKqPwcbiWy1gq/EDsizibXcA7O6LQ+Zcgy46mqrNkNs3sCZKe/hcyxi 1XNIzvcgzkz2w4R+6BRv4V6hTCkFMSBOdqFR9Uo= X-Received: by 2002:aca:72d3:: with SMTP id p202-v6mr181056oic.278.1525939572427; Thu, 10 May 2018 01:06:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.201.88.68 with HTTP; Thu, 10 May 2018 01:06:11 -0700 (PDT) In-Reply-To: <20180510073054.GD32366@dhcp22.suse.cz> References: <20180411104832.GF23400@dhcp22.suse.cz> <20180509122454.GR32366@dhcp22.suse.cz> <20180509125611.GT32366@dhcp22.suse.cz> <20180510073054.GD32366@dhcp22.suse.cz> From: Ganapatrao Kulkarni Date: Thu, 10 May 2018 13:36:11 +0530 Message-ID: Subject: Re: fd3e45436660 ("ACPI / NUMA: ia64: Parse all entries of SRAT memory affinity table") To: Michal Hocko Cc: Ganapatrao Kulkarni , Tony Luck , "Rafael J. Wysocki" , tiantao6@huawei.com, LKML , linux-acpi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 10, 2018 at 1:00 PM, Michal Hocko wrote: > On Thu 10-05-18 08:27:35, Ganapatrao Kulkarni wrote: >> On Wed, May 9, 2018 at 6:26 PM, Michal Hocko wrote: >> > On Wed 09-05-18 18:07:16, Ganapatrao Kulkarni wrote: >> >> Hi Michal >> >> >> >> >> >> On Wed, May 9, 2018 at 5:54 PM, Michal Hocko wrote: >> >> > On Wed 11-04-18 12:48:32, Michal Hocko wrote: >> >> >> Hi, >> >> >> my attention was brought to the %subj commit and either I am missing >> >> >> something or the patch is quite dubious. What is it actually trying to >> >> >> fix? If a BIOS/FW provides more memblocks than the limit then we would >> >> >> get misleading numa topology (numactl -H output) but is the situation >> >> >> much better with it applied? Numa init code will refuse to init more >> >> >> memblocks than the limit and falls back to dummy_numa_init (AFAICS) >> >> >> which will break the topology again and numactl -H will have a >> >> >> misleading output anyway. >> >> >> >> IIRC, the MEMBLOCK beyond max limit getting dropped from visible >> >> memory(partial drop from a node). >> >> this patch removed any upper limit on memblocks and allowed to parse >> >> all entries of SRAT. >> > >> > Yeah I've understood that much. My question is, however, why do we care >> > about parsing the NUMA topology when we fallback into a single NUMA node >> > anyway? Or do I misunderstand the code? I do not have any platform with >> > that many memblocks. >> >> IMHO, this fix is very much logical by removing the SRAT parsing restriction. >> below is the crash log which made us to debug and eventually fix with >> this patch. > > Ohh, I am not saying that the current code handles too many memblocks > correctly. I just think that your fix is not correct or incomplete at > least. Assuming that my understanding is correct which you haven't > disputed yet. So can we focus on the proper solution now? Do we actually > need the memblock restrictions? We do not need those for reserved > memblocks so I do not see any real reason to simply remove the > restriction altogether. Have you explored that option? my logic was simple, when i added this patch, when the cap on max memblocks is arch specific, why to restrict SRAT parsing which is not arch specific. other way around argument is, why the restriction added in the first place itself! > -- > Michal Hocko > SUSE Labs thanks Ganapat