Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1416945pxk; Thu, 10 Sep 2020 15:02:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrvvmOSPgaFVjqVXKG6+nv4TegTiOiluFMIwYpR9dhMHlNHzKkXeKLmbPGZyBijnKtwfDF X-Received: by 2002:a17:906:aacb:: with SMTP id kt11mr10921844ejb.294.1599775366114; Thu, 10 Sep 2020 15:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599775366; cv=none; d=google.com; s=arc-20160816; b=mkGC3EDlLlO18usaNJjR9FFaCg2nFmf7yCwGM/UJ+HbYQRJVwKl7zdiWaHnuOpyYQG Wq09y9Umfz46Z6YppSUT358ESQbuRPChDxC/k4aX57AVl2Yxn//Du/nCGH+2j/ddd0N1 0VWnrxK89oAiKeBAzUHZqcHLbsunNn1YYz4xgzOeSFhoI1ZT1vkAoBFB0MaMesUigzGf o8vzfyprAmf8GYjbWzv9iXu2du2rZ8pPw/KH18lgI28vdzcFmdIb6WPZtG3+6JZC5M2/ +vYrrQXbmIJVGg6ZC009ZAmC8fbc9UPz3Meau3s5HYYYWHhVK1t7vPOuh+j4+eFx/kJC kFzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=yLmOGW7z2yNtvECmtYrsfaVVR0JmNU2kxvslJJmaTbY=; b=HayRhwZTi4wj0sAt3kfmAgHh7dtgsTVWGMyDCIPz9apHLRFaBcWWd8hjguTzn+nteO LSXi9RPL9uqLDZMLtAvlkixtfsOsX0dodNifW5125xGrJE0rG7WLCyfcVIzHcCPuesCw GUdl/867zLdhBfziMCV5T5fgEe/d1uNErpbmJwGjKfVeytflyLns9ht9hhLrXl6PMq9z XgJzK4fofmVxLqKtIvkLl+yoZEJMRR4ACAKXCdXhJQjn+20f2SAD89pKzRzSAkMv5qik X1DRMHKEzx+jhhbzhV/WRM9l7LJfKYdLG+ImKbGaN5ey7ZlttftUMZN5xQVDNBOSSqNB 2yxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i24si4504296edr.73.2020.09.10.15.02.23; Thu, 10 Sep 2020 15:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725440AbgIJWBu (ORCPT + 99 others); Thu, 10 Sep 2020 18:01:50 -0400 Received: from mga12.intel.com ([192.55.52.136]:19526 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725287AbgIJWBt (ORCPT ); Thu, 10 Sep 2020 18:01:49 -0400 IronPort-SDR: uHDGCZX9VPTPdDsmpwjpxTAPcEqxWY0z9JorPqIqNmZJ0XgaRlb8XxSYH5zAMJu1BZztRTqpIL FEiDCKIbX80w== X-IronPort-AV: E=McAfee;i="6000,8403,9740"; a="138160321" X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="138160321" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Sep 2020 15:01:49 -0700 IronPort-SDR: QbaKABNB6/EoSyxG13iWtkm1aumy31ZG2ZYaEVBtfMDgQfbOe8wQcxWY/rB5VEaAfB+rDTS3jB sniE4nxHdwIg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,413,1592895600"; d="scan'208";a="305033315" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 10 Sep 2020 15:01:46 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id B0BFA15C; Fri, 11 Sep 2020 01:01:45 +0300 (EEST) Date: Fri, 11 Sep 2020 01:01:45 +0300 From: "Kirill A. Shutemov" To: Vijay Balakrishna Cc: Andrew Morton , Oleg Nesterov , Song Liu , Andrea Arcangeli , Pavel Tatashin , Allen Pais , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [[PATCH]] mm: khugepaged: recalculate min_free_kbytes after memory hotplug as expected by khugepaged Message-ID: <20200910220145.5j7iogqulmvg5vr6@black.fi.intel.com> References: <1599770859-14826-1-git-send-email-vijayb@linux.microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1599770859-14826-1-git-send-email-vijayb@linux.microsoft.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Sep 10, 2020 at 01:47:39PM -0700, Vijay Balakrishna wrote: > When memory is hotplug added or removed the min_free_kbytes must be > recalculated based on what is expected by khugepaged. Currently > after hotplug, min_free_kbytes will be set to a lower default and higher > default set when THP enabled is lost. This leaves the system with small > min_free_kbytes which isn't suitable for systems especially with network > intensive loads. Typical failure symptoms include HW WATCHDOG reset, > soft lockup hang notices, NETDEVICE WATCHDOG timeouts, and OOM process > kills. > > Fixes: f000565adb77 ("thp: set recommended min free kbytes") > > Signed-off-by: Vijay Balakrishna > Cc: stable@vger.kernel.org NAK. It would override min_free_kbytes set by user. -- Kirill A. Shutemov