Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp306069rwb; Thu, 11 Aug 2022 01:39:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR4J1IEzFJkbZolKw8S8ZMFDhsfGQLaIslhXHPjbv8obur5ediDDBfMpeuKEuKKajPTgUVlb X-Received: by 2002:a05:6402:23a1:b0:43d:9477:4d57 with SMTP id j33-20020a05640223a100b0043d94774d57mr29415404eda.168.1660207172227; Thu, 11 Aug 2022 01:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660207172; cv=none; d=google.com; s=arc-20160816; b=jw6p7439K+hx4DeZd9PkJ00HljVR8nh+jaoOCUVOe/nun9CXK4rsSf7UrtS9lXh0H/ mTKYr+3Xsa0oRhKmb8Ox0KUKJo9Jwbi0X6WvSMJKtFK7w4fJ/fF3vHQiYMb7UZZEl4M5 nJQOashRiXPzDMq7kRHYClT6QEWmQ7Ie6ahXOAMnZs+kSNMa5XUI5HYk04jPUaeEyniR EIowJss0IOigzXp0Irq1x+ENHZdLYywtEJPoBQ1SJDg7zmcgNpQKH68C/dLhQ+AMjKzu XVpUBIyQtsyp4bZ+WlLIlxakBliqGsC6GcbvQ66WXFv6kQeBoJir7m4cxcSvju4KGTJs yceA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tidMnH8DkBKPELtNOqmK2muDDw/3JnV0nNhtTH1JuMw=; b=dHM/U1cihcBPzA8qr+yuQcn653llSvopvdUTZKfegzzkmW1agZKwhqA0nWFa+NDKC8 o/6B9UBzTHIWxJ++zbjkySRdeLSfrp6UvFtxCzQymxK87xVgWyxr94UFnPEZgyPbxQu9 SOJwH8BiezaBKe+UV8XE3u4i+dxyvzxQYStawoOmPtNKMFSHmHQ5iwYB0CHuTAPK+d/F xkvJ6CTYgwcOynTrFkysYnVcC70n9jWzTDl6sNj8WVTdHFMjSTlF9EZd4UaPpO+N/i34 3+xPzv6+xh27Vt1OeYHQYuLukuiP7Dnje0+EnoXWHZw96iG3uF+hpvkdiCrigVNDhxsp AeKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uAGQ0eH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ek6-20020a056402370600b0043bb6a22af3si12199865edb.387.2022.08.11.01.39.06; Thu, 11 Aug 2022 01:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=uAGQ0eH6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234346AbiHKIeA (ORCPT + 99 others); Thu, 11 Aug 2022 04:34:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233535AbiHKId6 (ORCPT ); Thu, 11 Aug 2022 04:33:58 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77D8B8A7DE for ; Thu, 11 Aug 2022 01:33:57 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 257175C43C; Thu, 11 Aug 2022 08:33:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1660206836; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=tidMnH8DkBKPELtNOqmK2muDDw/3JnV0nNhtTH1JuMw=; b=uAGQ0eH6AxTSZTu3tTxDh2JAAzGO3sfkjPwob35q44mBNm0oaevJKmJmgFTHEHaYBZ2BwH LBQaAnR+3TsCuzRwwWcUZPfbWJepb6YbzvfvJESSoUkriay5zk7R7VLjjaay7t2qzfNHnd tUFNF+feSDsmNUQPFqM91wzjpwZqwaU= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 0987A13A9B; Thu, 11 Aug 2022 08:33:55 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id EQoGO/O+9GKeVQAAMHmgww (envelope-from ); Thu, 11 Aug 2022 08:33:55 +0000 Date: Thu, 11 Aug 2022 10:33:55 +0200 From: Michal Hocko To: Christoph Hellwig Cc: Andrew Morton , Baoquan He , John Donnelly , David Hildenbrand , linux-mm@kvack.org, LKML Subject: Re: [PATCH] dma/pool: do not complain if DMA pool is not allocated Message-ID: References: <20220325122559.14251-1-mhocko@kernel.org> <20220325164856.GA16800@lst.de> <20220811072817.GB13886@lst.de> <20220811082132.GA17685@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220811082132.GA17685@lst.de> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 11-08-22 10:21:32, Christoph Hellwig wrote: > On Thu, Aug 11, 2022 at 10:20:43AM +0200, Michal Hocko wrote: > > Meminfo part says > > Node 0 DMA free:160kB boost:0kB min:0kB low:0kB high:0kB reserved_highatomic:0KB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB writepending:0kB present:15996kB managed:15360kB mlocked:0kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB > > > > So the zone has 15MB of managed memory (by the page allocator), yet only > > 160kB is free early boot during the allocation. So it is mostly consumed > > by somebody. I haven't really checked by whom. > > > > Does that exaplain the above better? > > Yes. I'm really curious who eats up all the GFP_DMA memory early during > boot, though. Sorry, no idea and I do not have direct access to the machine. I can try to dig out more but, honestly, I am not sure I will find time for that. My main motivation was to reduce a shouting warning for something that doesn't indicate any real problem as this has been second (maybe third) time somebody has been complaining/asking about it. I do get your point that the sizing is probably wrong and I agree this is something that can be tuned better but I would rather vote for a useful warning when the explicit request fails rather than being to eager and warn when it is not really clear this is a problem in the first place. In both cases admin cannot really do much other than report. For the early boot we can only tell, this is not an immediate problem, just ignore. For the later we know the device and see whether we can do something about that. Just my 2c -- Michal Hocko SUSE Labs