linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Andrew Morton <akpm@linux-foundation.org>,
	Baoquan He <bhe@redhat.com>,
	John Donnelly <john.p.donnelly@oracle.com>,
	David Hildenbrand <david@redhat.com>,
	linux-mm@kvack.org, LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] dma/pool: do not complain if DMA pool is not allocated
Date: Thu, 11 Aug 2022 10:33:55 +0200	[thread overview]
Message-ID: <YvS+8wLU093QWQCL@dhcp22.suse.cz> (raw)
In-Reply-To: <20220811082132.GA17685@lst.de>

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


  reply	other threads:[~2022-08-11  8:33 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-25 12:25 Michal Hocko
2022-03-25 12:58 ` Michal Hocko
2022-03-25 16:48   ` Christoph Hellwig
2022-03-25 16:54     ` Michal Hocko
2022-08-03  9:52       ` Michal Hocko
2022-08-03 14:59         ` Baoquan He
2022-08-03 15:05           ` Michal Hocko
2022-08-03 15:32             ` Baoquan He
2022-08-03 15:44               ` Michal Hocko
2022-08-04 11:01                 ` Baoquan He
2022-08-04 12:01                   ` Michal Hocko
2022-08-05 12:34                     ` Baoquan He
2022-08-05 17:37                       ` Michal Hocko
2022-08-09 15:37                         ` Michal Hocko
2022-08-10  1:32                           ` Andrew Morton
2022-08-10  6:40                             ` Michal Hocko
2022-08-10  2:19                           ` Baoquan He
2022-08-11  7:38                           ` Christoph Hellwig
2022-08-11  8:25                             ` Michal Hocko
2022-08-11  7:34                         ` Christoph Hellwig
2022-08-11  7:49                   ` Christoph Hellwig
2022-08-11  8:42                     ` Michal Hocko
2022-08-11  7:43                 ` Christoph Hellwig
2022-08-11  7:29               ` Christoph Hellwig
2022-08-11  7:28         ` Christoph Hellwig
2022-08-11  8:20           ` Michal Hocko
2022-08-11  8:21             ` Christoph Hellwig
2022-08-11  8:33               ` Michal Hocko [this message]
2022-08-11  7:27       ` Christoph Hellwig

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YvS+8wLU093QWQCL@dhcp22.suse.cz \
    --to=mhocko@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=bhe@redhat.com \
    --cc=david@redhat.com \
    --cc=hch@lst.de \
    --cc=john.p.donnelly@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox