Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If you poll with high frequency you'll be causing lots of additional wake-ups which will badly skew what you're measuring.


Ideally you'd do an accounting update on task switch, along with all the other housekeeping. Then you don't need to do any polling. There's a "process accounting" infrastructure which perhaps could be adapted for this.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: