Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1085874ybv; Thu, 20 Feb 2020 12:56:01 -0800 (PST) X-Google-Smtp-Source: APXvYqxul9feO9kgort8M2rn7UNRQptDuq1LFjyxJ0xcdC4q+UccJ3reepxqZOEgTlXvKJinPl+u X-Received: by 2002:aca:ed08:: with SMTP id l8mr3436203oih.80.1582232161434; Thu, 20 Feb 2020 12:56:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582232161; cv=none; d=google.com; s=arc-20160816; b=N58HfIh3YPTPOQQgQbCBiY2YEooJj9J95xASE0Xw3PkKwfTQw1M84HlGNfXG5Zejas oLoQYv2aZmC+ru3vIcLWdoGpTtjq3s3W8RP1xinyXEN9FNyj0xLBjc5zA7bFug8UfY7T CSdIsVBogpvhVnmtr/6K+MzVZuW5vVkJ2DLbqDKS0blNIqr028d/m28iw3juchWQtzy7 S5W6L5bbIPB6Hh4IsUUOAchSLwtlCYzMAft4q6ChSWlSFITU73o2xi2+K2neKuIX4tGz 0BGXYcxa7FUNiAuA522Al1qRm2vEEMN4oQzV9ZesXMSAs3M0S8c595COTF/rn7LfCU13 7hzg== 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 :dkim-signature; bh=BiE+rct0rry2pArV3gigMdzlZiS1+memMy+VBdXCC0g=; b=D3D04XokqsBKPvEB5Jc31LCOkaDBOVaKMw70o7Ok+uK7jnrUdyqfP2Ucx82nq2wLKs r6UPWDUqrGTxn+h8ShqGaZBcxpMrZHXG2uG9PRgrEL7KPeDL0+sde084v6fitYKjoXk4 Fz9h9uLrLVPlk5oCwid5Q79I3KUqHvNAZL5Un5VeQTxRb5TGtv+NHv23VAUeuG4lzzbM qt6q4a1Rc+W66BCNjj0pwkMNow/h7p0qasTM0GjcYJq/aW3mO1LoHFeVrKW9GuE3zUe+ QTQND0au5Q6m3VCh6mtxfnI+vzGYUyBHz4AmptaMpyCHuFdBA2IaNeVXXowQpMIT0pln FHMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=oHWDw6RC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r5si209982oic.19.2020.02.20.12.55.48; Thu, 20 Feb 2020 12:56:01 -0800 (PST) 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=fail header.i=@gmail.com header.s=20161025 header.b=oHWDw6RC; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729139AbgBTUyV (ORCPT + 99 others); Thu, 20 Feb 2020 15:54:21 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:43304 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728400AbgBTUyU (ORCPT ); Thu, 20 Feb 2020 15:54:20 -0500 Received: by mail-qt1-f193.google.com with SMTP id g21so3913620qtq.10; Thu, 20 Feb 2020 12:54:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=BiE+rct0rry2pArV3gigMdzlZiS1+memMy+VBdXCC0g=; b=oHWDw6RCZdv06TZrh3Qj3gsEIXivcxE3uXPCbkcJ2m2UdQNHxxKuovATMPLuouJjWG /7xptXQ03FED86Sla82047upyBEwI7HZBrTJXMer3p1NaCTwIpl16i4cOA7FPSFwwncS RUIp1/jottGogriZOzdHOi3HyT61dDWUWxDebE8ZiGPJ2NkCjmgm+shlmh5wd83Qzy3Z 30286SGALzQD8SzVxnEet57ytjDAmy8YcnYLI48M4clrruxKdKnmO6MIgs507n5itrye 6TpiJZ0fBNrb2OL9NGL+NJLlTWEAMfP3nSPcOxps//7VAMRGHfh2t/E95u0WyPTdwj5R ChBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=BiE+rct0rry2pArV3gigMdzlZiS1+memMy+VBdXCC0g=; b=Q7KXVyVHwypRtv42tH2ru772XVRri88IxIn7uIHPpYUKHUnDNybvquoP3iQIN4jszQ +CYYc7GSXncDupngtB6jHugNG1+/zWkTV5qZxvMzks145KBexzHUHqWLcOr3iHg2H33x khXLL7p6yviQLBR9ZKU7V6lBGsH8BlY/xmgBky6q0CnegFexeVsyxdK9+N8e5QOYUrCT ByZ9Cc3yrw5fEGzDRHc9xOObqgqukmX3KxGIaRhJYnH+o5sbpU8OVkmaU4Coqy7QgdPW DN9l3Une9E5cjLYykJuXxYJroSQ0lRPLjWs19n+oLekA6BEbFSQVRhFf/DUItUVCxyMg QE2g== X-Gm-Message-State: APjAAAXVYdhXARrzBr8LOe1Rof32SYngJn9G+bvvmOiQhrL26bpmV88A DlbzDtoE7ngLOrU0kf3ISsA= X-Received: by 2002:aed:3f70:: with SMTP id q45mr27822085qtf.310.1582232057881; Thu, 20 Feb 2020 12:54:17 -0800 (PST) Received: from localhost ([2620:10d:c091:500::55b1]) by smtp.gmail.com with ESMTPSA id g9sm420153qkl.11.2020.02.20.12.54.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Feb 2020 12:54:17 -0800 (PST) Date: Thu, 20 Feb 2020 15:54:16 -0500 From: Tejun Heo To: Daniel Jordan Cc: Johannes Weiner , Michal Hocko , Andrew Morton , Roman Gushchin , linux-mm@kvack.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@fb.com, Peter Zijlstra Subject: Re: [PATCH] mm: memcontrol: asynchronous reclaim for memory.high Message-ID: <20200220205416.GI698990@mtj.thefacebook.com> References: <20200219183731.GC11847@dhcp22.suse.cz> <20200219191618.GB54486@cmpxchg.org> <20200219195332.GE11847@dhcp22.suse.cz> <20200219214112.4kt573kyzbvmbvn3@ca-dmjordan1.us.oracle.com> <20200219220859.GF54486@cmpxchg.org> <20200220154524.dql3i5brnjjwecft@ca-dmjordan1.us.oracle.com> <20200220155651.GG698990@mtj.thefacebook.com> <20200220182326.ubcjycaubgykiy6e@ca-dmjordan1.us.oracle.com> <20200220184545.GH698990@mtj.thefacebook.com> <20200220195535.7xblt45akld6eftj@ca-dmjordan1.us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200220195535.7xblt45akld6eftj@ca-dmjordan1.us.oracle.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, Daniel. On Thu, Feb 20, 2020 at 02:55:35PM -0500, Daniel Jordan wrote: > On Thu, Feb 20, 2020 at 01:45:45PM -0500, Tejun Heo wrote: > > The setup cost can be lazy optimized but it'd still have to bounce the > > tiny pieces of work to different threads instead of processing them in > > one fell swoop from the same context, which most likely is gonna be > > untenably expensive. > > I see, your last mail is clearer now. If it's easy to do, a pointer to where > this happens would help so we're on the same page. Network packet rx is the clearest example I think, but you already mentioned it. Reclaim is less so but when kswapd reclaims, it walks everybody, and there can be a lot of small cgroups. Thanks. -- tejun