rhel8: Kernel cannot kill a process doing compaction for hugepage allocation

Solution Verified - Updated -

Issue

  • A process hung. trying to kill the process with SIGKILL would not kill the process.
  • It seems like should_compaction_retry() continues to retry in spite of retry limit defined as MAX_COMPACT_RETRY(=16). It does not make sense that the kernel continues memory reclaim for the process which is going to be killed.

Environment

  • Red Hat Enterprise Linux (RHEL) 8.2
  • Architecture: issue seen on aarch64, but as per our understanding all architectures are affected
  • Kernel Version: 4.18.0-193.13.2.el8_2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content