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

cpu_watcher:拿取更细粒度内核互斥锁使用的信息 #860

Merged
merged 21 commits into from
Jul 24, 2024

Conversation

vvzxy
Copy link
Contributor

@vvzxy vvzxy commented Jul 10, 2024

完成如下数据采集,包括锁的锁被持有的总时间、锁被持有的最长时间、锁发生竞争的总时间、最后一次持有该锁的线程 ID,锁被争用的次数,每秒更新一次,过滤输出被争用的锁:
微信图片_20240710093059
加上测试程序:
微信图片_20240719160905

@chenamy2017
Copy link
Contributor

  1. 锁被持有的总时间、锁被持有的最长时间、锁发生竞争的总时间这些列的时间单位是什么?标注下。
  2. 把测试用例提交下。

@vvzxy
Copy link
Contributor Author

vvzxy commented Jul 12, 2024

好了师兄

chenamy2017
chenamy2017 previously approved these changes Jul 18, 2024
@vvzxy
Copy link
Contributor Author

vvzxy commented Jul 19, 2024

测试代码已添加,考虑到内核模块安全性的问题,使用stress-ng加压模拟。

@chenamy2017 chenamy2017 self-requested a review July 22, 2024 07:49
Copy link
Member

@helight helight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@helight helight merged commit eba33a7 into linuxkerneltravel:develop Jul 24, 2024
4 checks passed
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.

3 participants