linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Yang Shi <shy828301@gmail.com>
To: Wang Yugui <wangyugui@e16-tech.com>
Cc: Linux MM <linux-mm@kvack.org>
Subject: Re: kernel BUG at mm/huge_memory.c:2736(linux 5.10.29)
Date: Thu, 15 Apr 2021 09:26:45 -0700	[thread overview]
Message-ID: <CAHbLzkocTLLZtqa00F=mbENa8gYZ4PBS74GXCcsXATFv8xZgDA@mail.gmail.com> (raw)
In-Reply-To: <20210415191854.4457.409509F4@e16-tech.com>

On Thu, Apr 15, 2021 at 4:19 AM Wang Yugui <wangyugui@e16-tech.com> wrote:
>
> Hi,
>
> This problem yet not happen when switched from
> CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
> to
> CONFIG_TRANSPARENT_HUGEPAGE_MADVISE=y
>
> so it seems a CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS related problem.

_MADVISE means THP is not going to be used unless MADV_HUGEPAGE is
called for some address areas. _ALWAYS means THP should be used
whenever possible. So if your applications don't call
madvise(MADV_HUGEPAGE) there should be no THP at all.

And you could adjust the setting by manipulating
/sys/kernel/mm/transparent_hugepage/enabled rather than
reconfigure/rebuild the kernel.

>
> > $grep HUGE /boot/config-5.10.29-3.el7.x86_64
> > CONFIG_CGROUP_HUGETLB=y
> > CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
> > CONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=y
> > CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y
> > CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y
> > CONFIG_HAVE_ARCH_HUGE_VMAP=y
> > CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y
> > CONFIG_TRANSPARENT_HUGEPAGE=y
> > # CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
> > CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
> > CONFIG_HUGETLBFS=y
> > CONFIG_HUGETLB_PAGE=y
>
> Best Regards
> Wang Yugui (wangyugui@e16-tech.com)
> 2021/04/15
>
>


  reply	other threads:[~2021-04-15 16:27 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-12 10:07 kernel BUG at mm/huge_memory.c:2736(linux 5.10.29) Wang Yugui
2021-04-12 20:18 ` Yang Shi
2021-04-13 11:30   ` Wang Yugui
2021-04-15 11:18     ` Wang Yugui
2021-04-15 16:26       ` Yang Shi [this message]
2021-04-17  8:33   ` Wang Yugui
2021-04-22  0:11     ` Yang Shi
2021-04-23  2:16       ` Wang Yugui
2021-04-23  8:07         ` Wang Yugui
2021-04-23 21:05           ` Yang Shi
2021-04-24  5:28             ` Wang Yugui
2021-04-26 22:56               ` Yang Shi
2021-04-28 21:55                 ` Wang Yugui

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='CAHbLzkocTLLZtqa00F=mbENa8gYZ4PBS74GXCcsXATFv8xZgDA@mail.gmail.com' \
    --to=shy828301@gmail.com \
    --cc=linux-mm@kvack.org \
    --cc=wangyugui@e16-tech.com \
    /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;
as well as URLs for NNTP newsgroup(s).