Kernel Module 内存问题排查 | SF-Zhou's Blog #155
SF-Zhou
announced in
Announcements
Replies: 3 comments 4 replies
-
如果你对存储、内核、C++ 感兴趣并且最近在看机会,我应该可以帮你内推。坐标杭州,行业量化,点我发送简历。同时在招 AI 平台开发和深度学习工程师,欢迎丢简历~ |
Beta Was this translation helpful? Give feedback.
0 replies
-
有一个typo,泄露 => 泄漏。 问题的原因,我理解为: 原来每次记录inode都是新申请内存,现在一次性申请一大块内存,不知是否正确: struct ListNode { ListNode* next; int val; };
const int g_amount = 10000;
for (int i = 0; i < g_amount; i++)
{
ListNode* node = (ListNode*)malloc(sizeof(ListNode));
node->val = inode;
} 现在改为了 const int g_amount = 10000;
int* inode_records = (int*)malloc(sizeof(int)*g_amount); |
Beta Was this translation helpful? Give feedback.
2 replies
-
请教lz,分布式文件系统的客户端使用 Kernel Module挂载是什么意思,客户端不是发送rpc给文件系统吗 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://sf-zhou.github.io/linux/kernel_memory_usage_troubleshooting.html
Beta Was this translation helpful? Give feedback.
All reactions