Welcome to MilkyWay@home

Wasting CPU time in syscalls

Advanced search

Message boards : Number crunching : Wasting CPU time in syscalls
Message board moderation

To post messages, you must log in.

Tomas Brod

Send message
Joined: 7 Dec 15
Posts: 20
Credit: 8,805,665
RAC: 0
5 million credit badge6 year member badge
Message 64377 - Posted: 12 Mar 2016, 21:31:32 UTC

I noticed this while experimenting with running two tasks on my single gpu. CPU usage of the GPU app increased from 5% to 60%. This made me to check the milkyway process with htop strace feature and I found that milkyway is performing approximately 100 calls to clock_gettime(CLOCK_MONOTONIC_RAW...) in 100ms every 300ms. This spam of sycalls also happens when running SINGLE milkyway task and nothing more on the machine.
I do not think the app really needs to know current time such often. Does the clock_gettime call enable communication with the gpu? I would expect some reads or ioctls.

I am talking about app name milkyway and milkyway_separation... plan_class opencl_nvidia obviously on Linux (weed) 4.2.0-1-amd64, nVidia GeF840M dirver 352.79.

The same I noticed on primegrid genefer. On the other hand Einsten and Asteroids tasks are quietly waiting on some FUTEX locks.
ID: 64377 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Wasting CPU time in syscalls

©2022 Astroinformatics Group