On 9/29/10, Luis Useche <[email protected]> wrote: > I need to read a performance monitoring counter (RDPMC) every 100 > microseconds or so. I found a way to do this on linux using the normal > getitimer library. However, the resolution of this timer in OBSD is 10 > milliseconds. Do you know a way to have a higher resolution of the timer in > OBSD? One way is to do a busy loop, but this is not feasible in my problem.
You don't really give enough information to give good advice (platform? how is the RDPMC read? notice how many replies you've gotten?), but depending on the details, writing a kernel driver may be the most natural way. Otherwise, a busy loop in userspace watching the CPU's performance counter might be an option. Philip Guenther

