Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mem_watcher:添加对slab分配速率和总字节数的监控 #958

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

syxl-time
Copy link
Contributor

微信截图_20250110171525
打印内容是slab的分配速率和总字节数,可用于分析内核内存分配的动态行为。
内核态代码挂载到kmem_cache_alloc()函数,这是分配slab缓存对象的核心函数,参数struct kmem_cache *cachep是slab描述符,name是slab描述符的名称,size是对象的长度,这个长度已加上了对齐字节。

chenamy2017
chenamy2017 previously approved these changes Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants