Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4696390pxu; Wed, 21 Oct 2020 03:03:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwiu8X+RM/2kzylCJaOZbemQS800YXhCsoo+x1GMOAlrENuH/45PSsrOVu6WhYg4SwcS+/j X-Received: by 2002:a17:906:1784:: with SMTP id t4mr2592577eje.489.1603274598926; Wed, 21 Oct 2020 03:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603274598; cv=none; d=google.com; s=arc-20160816; b=shifucuG0VKNwLndlipSTIrGBSFU2x3pljylmX5GLLrYL2JUav4P1431XAsEKbh9Fp tI1kNdAkle+HIIzbGdXSd/Gt02q9sDtWeTBnh1Ztx91Edu3b/gNbZPfVK2s7HocdxtVC mG/bUPu6VW6kbpHvR/g75evVTsSw22rKf383x/714BXuJjSjuajNOgr8GFZwAM4zQOL+ JAwdu8VMZNZGgtrBZ7Zc0I+4L6ndz4pPQLMeHMiPsHEIU8AGQtiThvtahG0VgWmMOI1x R6wFDlo3qhjnQ/m671Bzq6CpurGKm39AdruRxVIvPM47XoPSo/K4pXD2tcx/+aDG57NE qyqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=DfqkJtZaEQQQz0LwOQVRuJVA8vJMDUP4vKBH44VWewc=; b=VmSjh0M75DnRuxZU65qjkW89tCSvCbgkQ3Z+ozbLSIrSODIkgp3RIK5jIZAbMPsQFd 0Z/WN687Mx9e+gjLlFNtCPRqvfX0IelQF/JHetdxIrAeZK9TClV+PcMzBsEZrdqpnmDP Jkan+jDISb22HvJ48XpQj2AzKPkjhCa99dP2qK3Yhm0sSha6VC5Taa5p1RXdxRJUtn5/ Qal3sZpTBgo0Mfmirvep40ehrKoPIX0/tFNB0uJbD9pQ0IMqyJ9dmVNCU6h4RUO1l6EW egSn9zcXhRU6QQnTzAECFt56ifHCy2nFVhG3Q5T+FkaGqHhS8F2fGJa8Nzq7VXrawuuV khug== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ay11si1028839edb.464.2020.10.21.03.02.56; Wed, 21 Oct 2020 03:03:18 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405091AbgJTUde (ORCPT + 99 others); Tue, 20 Oct 2020 16:33:34 -0400 Received: from mx2.suse.de ([195.135.220.15]:47494 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731214AbgJTUde (ORCPT ); Tue, 20 Oct 2020 16:33:34 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 2A927ACDB; Tue, 20 Oct 2020 20:33:33 +0000 (UTC) Date: Tue, 20 Oct 2020 21:33:31 +0100 From: Mel Gorman To: Johannes Weiner Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@fb.com Subject: Re: [PATCH] mm: don't wake kswapd prematurely when watermark boosting is disabled Message-ID: <20201020203331.GB32041@suse.de> References: <20201020175833.397286-1-hannes@cmpxchg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20201020175833.397286-1-hannes@cmpxchg.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 20, 2020 at 01:58:33PM -0400, Johannes Weiner wrote: > On 2-node NUMA hosts we see bursts of kswapd reclaim and subsequent > pressure spikes and stalls from cache refaults while there is plenty > of free memory in the system. > > Usually, kswapd is woken up when all eligible nodes in an allocation > are full. But the code related to watermark boosting can wake kswapd > on one full node while the other one is mostly empty. This may be > justified to fight fragmentation, but is currently unconditionally > done whether watermark boosting is occurring or not. > > In our case, many of our workloads' throughput scales with available > memory, and pure utilization is a more tangible concern than trends > around longer-term fragmentation. As a result we generally disable > watermark boosting. > > Wake kswapd only woken when watermark boosting is requested. > > Signed-off-by: Johannes Weiner This makes sense to the extent that I would support adding Fixes: 1c30844d2dfe ("mm: reclaim small amounts of memory when an external fragmentation event occurs") With or without that; Acked-by: Mel Gorman -- Mel Gorman SUSE Labs