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

fs_watcher:添加了对磁盘的访问模式的检测,获取每次I/O操作对于磁盘数据的访问模式(disk_io_visit) #872

Merged
merged 3 commits into from
Jul 30, 2024

Conversation

sf1999817
Copy link
Contributor

struct event {
long timestamp; // 时间戳
int blk_dev; // 块设备号
int sectors; // 访问的扇区数
int rwbs; // 读写标识符,1表示读操作,0表示写操作
int count; // I/O 操作计数
char comm[TASK_COMM_LEN]; // 进程名
};
检测了这些在磁盘访问的时候,这些数据
68

Signed-off-by: shangfan <45649554+sf1999817@users.noreply.github.com>
Signed-off-by: shangfan <45649554+sf1999817@users.noreply.github.com>
Signed-off-by: shangfan <45649554+sf1999817@users.noreply.github.com>
Copy link
Contributor

@chenamy2017 chenamy2017 left a comment

Choose a reason for hiding this comment

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

后续将disk_io_visit合并到fs_watch中。

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 a944dbc into linuxkerneltravel:develop Jul 30, 2024
2 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