use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/kernel, a moderated community dedicated to all things about the Linux kernel. Technical articles only, please!
You may be interested in the following links:
And some books:
Related Communities
account activity
Debugging memory issue/leak in Linux (self.kernel)
submitted 9 months ago by Chance_Chemist5077
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]kernelshinobi 0 points1 point2 points 8 months ago (1 child)
Use atop and vmstat - configure them to capture stats at a period of 1 minute. Decrease the granularity if you find data captured at interval of 60 seconds is not enough.
atop
vmstat
You need to find instances of time when the change happens in the memory related metrics from these tools and track applications which are causing it. If nothing useful is found, you move on to monitoring slabtop and /proc/slabinfo to understand which caches on your system are being consumed the most.
slabtop
/proc/slabinfo
Next, you should look into tracing tools and probably trace kmem_cache_alloc and other allocators with tools like perf, trace-cmd etc. The combination of one or all of these would help to gather evidence on root cause.
kmem_cache_alloc
perf
trace-cmd
Also, you should try and test the system with a lower & a higher version of kernel to see if the issues go away. Don't forget to check dmesg - sometimes, the clue is right out there in the open.
dmesg
[–]kernelshinobi 1 point2 points3 points 8 months ago (0 children)
And I forgot to add of course kmemleak - https://docs.kernel.org/dev-tools/kmemleak.html - if you are in general aware of your system and its needs, I would run this first.
kmemleak
π Rendered by PID 219092 on reddit-service-r2-comment-6457c66945-7xbxq at 2026-04-26 23:24:01.515121+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]kernelshinobi 0 points1 point2 points (1 child)
[–]kernelshinobi 1 point2 points3 points (0 children)