-
Notifications
You must be signed in to change notification settings - Fork 60
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
Large number of clock_gettime syscalls #8125
Comments
Hmm yeah this isn't ideal. It seems we use this generously across some variant of |
@hodgesds are you running below in live view or daemon record mode here? |
Live view, here's some more data. cpu/kernel:
Clock source info:
Some interesting data when switching clock sources:
It seems like with I can confirm clocksource is being changed from
I ran the relevant
Some more
After doing some more digging it seems the |
Yeah, not using VDSO is pretty silly. We either need to make the chrono crate do it or use the standard library implementation |
@hodgesds Are you installing from rpm or building from source? If rpm, is it fedora? If so, which version of fedora? According to chronotope/chrono@5115c6f#diff-3e4364fa6f0aed7a40e68aa12a41235e57f45378bcd8f0094496a7c1d8be0ed0 - chrono should be hitting the standard library here so I would guess the issue is installing using an older version of chrono crate. |
Building from source from head (commit 3b6554f4c4a95d5f7c74cdd7ee6c05bfed47ffe1). I do see vdso being (dynamically) linked:
|
Ok, going to close this since I think building from source acts as you expect (VDSO is cheap) - this is probably an issue with rpms from some older version of Fedora with an older chrono crate |
I noticed when running below on live mode a few interesting things. First there are roughly 3-4
clock_gettime
syscalls perepoll_wait
.A quick and dirty
bpftrace
estimate of syscalls/sec, shows ~20k syscalls/sec:Compared to
clock_gettime
syscalls (~15k syscalls/sec):Not that there is anything wrong with running
clock_gettime
, but when I run top/htop at the same time asbelow
I notice it takes anywhere in the range of ~7-12% CPU. From digging around the code I'm guessing the store crate is probably where many of these calls are coming from:The text was updated successfully, but these errors were encountered: