Skip to content

feat: reduce interference from kernel_write to profiled applications #15

@totoroyyb

Description

@totoroyyb

This is merely a proposal ticket, and I haven't thought it through yet.

hiresperf uses kernel_write to dump ring buffer data to the file. However, under the circumstance where the polling rate and logging rate are both high, kernel_write may also significantly compete for cachelines with profiled applications.

The kernel_write is essentially a buffered file I/O. However, in this case, since we are mainly dumping data, the buffered I/O seems to be unnecessary.

One option we can consider is using Direct I/O.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions