Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp306522ybb; Wed, 15 Apr 2020 01:41:17 -0700 (PDT) X-Google-Smtp-Source: APiQypKyLswf+AxnVzdw22poD7SvKm3TuZ1sNr9420xaOwtt/kkUJACtHQcCLZ8RehcXC+R1/0aQ X-Received: by 2002:aa7:c152:: with SMTP id r18mr23465377edp.378.1586940077619; Wed, 15 Apr 2020 01:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586940077; cv=none; d=google.com; s=arc-20160816; b=BIyQnDGtzTg11CYivUWT+Kkh0oipI9KtHlPuC7iFR4Z8gytSMx301UV6Z8JnPZl2PA zAyN4FlE2XgAqjZfgjrEH+BHT2vMGPukr2x4HBtPllqX471RbzO5iJ4zElCjM2pdl44D 7IIuiUxrZLs6lE2Dt896XM9EQ62zDcb4+9p8X11/QapjohN3BY65h3OA520SqgXGHcl+ 3ZaCbHkkU3e/qFlXXXExW7so1SWESSvVYJiofFoIgdxEZT31DXkpKIWy1r13B2bsZRRA 6DabjHZ9Ry8ZH5hc0zAf4/j4fDY/OIzdvCBQGk7sdfE9GYE1ecm/l+EpsXBxYnuCGJEP L3FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=lNcmWe1CjBphHPYWMqOn6JAzmFvb1XYqHHRrz5HSuRM=; b=SUBC8csnrYila3C9L0JpJgJ3IY+KTTf+qF6Kdrq8lroA62/T0KkY8jeMQ5FA5k+zl4 Ts17u1jk5TsgOe8SQajK/AX8nU/ZOBjkdFMJweFGeqKqueT2CNBCmRPtdkJeNdi9Owpx NddMyYCqnKw17Im72i0KO+CJY7CDORnh6v/9veZt2jP29CVvDXN196VBnttE75YHMsr7 twb9ixsUZ09wocccbsMOyBlUyp0v2247+dceUpmWJydqzuU1dnV8HeuSdwL1Jx4QYRKS sc3VdZTh5CkY9TTJhNIQZuZkPwApXgYGErOZv7Cqjcfmf7GvW5dKLc5f6vLymNUn4Tyy ecgQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for 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 c7si3559892edq.184.2020.04.15.01.40.53; Wed, 15 Apr 2020 01:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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: best guess record for 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 S2406092AbgDNGoq (ORCPT + 99 others); Tue, 14 Apr 2020 02:44:46 -0400 Received: from verein.lst.de ([213.95.11.211]:37692 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728133AbgDNGoo (ORCPT ); Tue, 14 Apr 2020 02:44:44 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id C623E68BEB; Tue, 14 Apr 2020 08:44:41 +0200 (CEST) Date: Tue, 14 Apr 2020 08:44:41 +0200 From: Christoph Hellwig To: David Rientjes Cc: Hillf Danton , Christoph Hellwig , Tom Lendacky , "Singh, Brijesh" , "Grimm, Jon" , Joerg Roedel , linux , iommu Subject: Re: [rfc v2 3/6] dma-pool: dynamically expanding atomic pools Message-ID: <20200414064441.GC23359@lst.de> References: <20200410145520.17864-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 12:37:20PM -0700, David Rientjes wrote: > I'll rely on Christoph to determine whether it makes sense to add some > periodic scavening of the atomic pools, whether that's needed for this to > be merged, or wheter we should enforce some maximum pool size. I don't really see the point. In fact the only part of the series I feel uneasy about is the growing of the pools, because it already adds a fair amount of complexity that we might not need for simple things, but shrinking really doesn't make any sense. So I'm tempted to not ever support shrinking, and even make growing optional code under a new config variable. We'll also need a way to query the current size through e.g. a debugfs file.