395 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

mm/page_owner: record timestamp and pid

已完成
需求 成员
创建于  
2021-07-06 16:59

Collect the time for each allocation recorded in page owner so that
allocation "surges" can be measured.

Record the pid for each allocation recorded in page owner so that the
source of allocation "surges" can be better identified.

The above is very useful when doing memory analysis. On a crash for
example, we can get this information from kdump (or ramdump) and parse it
to figure out memory allocation problems.

评论 (3)

刘勇强 创建了任务
刘勇强 关联仓库设置为openEuler/kernel
展开全部操作日志

Hey LiuYongQiang0816, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

openeuler-ci-bot 添加了
 
sig/Kernel
标签

实测开启page_owner之后增加了pid和 ts消息
Page allocated via order 0, mask 0x100cc2(GFP_HIGHUSER), pid 1, ts 530982399 ns, free_ts 0 ns
PFN 1049407 type Unmovable Block 2049 type Unmovable Flags 0x17ffffc010001c(uptodate|dirty|lru|unevictable)
prep_new_page+0xc1/0xe0
get_page_from_freelist+0xbed/0xda0
__alloc_pages_nodemask+0x161/0x300
alloc_page_interleave+0x13/0x70
pagecache_get_page+0xeb/0x350
grab_cache_page_write_begin+0x1d/0x40
simple_write_begin+0x23/0x190
generic_perform_write+0xbf/0x1c0
__generic_file_write_iter+0xf9/0x1d0
generic_file_write_iter+0x5d/0xb0
__kernel_write+0x14f/0x2d0
kernel_write+0x56/0xf0
xwrite.constprop.0+0x31/0x62
do_copy+0xe0/0x15a
write_buffer+0x27/0x37
flush_buffer+0x2b/0x83

zhengzengkai 修改了描述
zhengzengkai 任务类型任务 修改为需求
zhengzengkai 任务状态待办的 修改为新建
zhengzengkai 关联分支设置为openEuler-21.09
Xie XiuQi 里程碑设置为openEuler-21.09-Kernel

openEuler-21.09分支合入如下相关补丁:
31e369115a8d mm/page_owner: record the timestamp of all pages during free
d8136b3ccc72 mm/page_owner: record timestamp and pid

zhengzengkai 任务状态新建 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助