From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BAFC7C00140 for ; Sun, 21 Aug 2022 10:44:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229888AbiHUKoY (ORCPT ); Sun, 21 Aug 2022 06:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229954AbiHUKoU (ORCPT ); Sun, 21 Aug 2022 06:44:20 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8AA6014099 for ; Sun, 21 Aug 2022 03:44:19 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id B819267373; Sun, 21 Aug 2022 12:44:16 +0200 (CEST) Date: Sun, 21 Aug 2022 12:44:16 +0200 From: Christoph Hellwig To: Michal Hocko Cc: Christoph Hellwig , iommu@lists.linux.dev, Marek Szyprowski , Robin Murphy , David Rientjes , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] dma-pool: limit DMA and DMA32 zone size pools Message-ID: <20220821104416.GC30530@lst.de> References: <20220817060647.1032426-1-hch@lst.de> <20220817060647.1032426-4-hch@lst.de> 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 17, 2022 at 02:53:47PM +0200, Michal Hocko wrote: > Yes this is much more reasonable estimation. Especially for the DMA > zone. I still believe some downscaling would make sense but as said > earlier nothing to really insist on. Also you likely want to have > pr_warn for non-poppulated DMA zone as pointed in other thread[1]. So I think the warning would be useful, but how do we detect that the zone should exist and is empty vs the case where it doesn't even exist based on a runtime decision?