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

COZ cannot count samples (I mean, SIGPROF handling is ignored) while mmap() #223

Open
ski422 opened this issue Oct 12, 2023 · 1 comment

Comments

@ski422
Copy link

ski422 commented Oct 12, 2023

Hi.

I'm running an application containing a mmap(with MAP_POPULATE) the large file.

However, the SIGPROF handler (i.e., samples_ready) was never invoked while executing mmap.

As far as I debugged, it doesn't seem like a signal pending, it just looks like 'ignored' (-> I believe it's not a well-defined term).

I know the mmap system call with MAP_POPULATE that memory-maps large file causes many I/Os, however, I thought that COZ could sample the period of executing CPU code (e.g., mmap in application, mmap in glibc, mmap in Linux kernel).

When I added simple computation code after the mmap(), the SIGPROF handler started to execute during the computation part.

Does COZ can conduct the virtual speedup application with mmap()?

Any experience? I need your advise:)
Thanks.

@ski422
Copy link
Author

ski422 commented Oct 12, 2023

In my guess, COZ cannot catch SIGPROF while the thread executes the system call.

Any opinion?

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

No branches or pull requests

1 participant