Skip to contentSkip to conversation

Backport commit 786dee864804 ("mm/memory_hotplug: rate limit page migration warnings")

DISCUSSION [email protected] 2 participants 2 messages Oct 20, 2023 Stable branch

lore
Share & tools
lore
#0 lore raw

Please backport commit 786dee864804 ("mm/memory_hotplug: ratelimit page migration warnings") to 5.10 stable branch.

Commit message:
"""
When offlining memory the system can attempt to migrate a lot of pages, if there are problems with migration this can flood the logs. Printing all the data hogs the CPU and cause some RT threads to run for a long time, which may have some bad consequences.

Rate limit the page migration warnings in order to avoid this. """

We are sometimes seeing RCU stalls while offlining memory with the 5.10 kernel due to the printing of these messages.

Applying this patch solves the problem by ratelimiting the prints.

Thanks,
Puranjay

#1 lore raw
Quoted 11 lines · On Fri, Oct 20, 2023 at 02:01:13PM +0000, [email protected] wrote:

Please backport commit 786dee864804 ("mm/memory_hotplug: ratelimit page migration warnings") to 5.10 stable branch.

Commit message:
"""
When offlining memory the system can attempt to migrate a lot of pages, if there are problems with migration this can flood the logs. Printing all the data hogs the CPU and cause some RT threads to run for a long time, which may have some bad consequences.

Quoted 7 lines

Rate limit the page migration warnings in order to avoid this. """

We are sometimes seeing RCU stalls while offlining memory with the 5.10 kernel due to the printing of these messages.

Applying this patch solves the problem by ratelimiting the prints.

Now queued up, thanks.

greg k-h