Sockperf CPU usage is high

37 views
Skip to first unread message

heke...@gmail.com

unread,
Dec 4, 2014, 2:24:46 PM12/4/14
to sockperf...@googlegroups.com
Hi-

Does any one try to ask a question about sockperf's CPU usage before? I am running sockperf in ping-pong mode (10 messages per seconds, message size is 12Bytes) and find that sockperf takes 95% of a single core. 

I know that might be caused by the high-resolution timestamp that sockperf try to achieve. However, I am wondering whether we can reduce the CPU usage somehow (for example, in my case, microsecond level timestamps are enough)

Thanks!

Alex Rosenbaum

unread,
Dec 4, 2014, 3:09:24 PM12/4/14
to sockperf...@googlegroups.com, heke...@gmail.com
sockperf is design to do high resolution packet pacing sends for very accurate tests reproduction or traffic pattern simulations, for that we needed to implement the 'sleep' logic as a busy loop over RDTSC clock reads.
Any sleep/wait/blocking on the OS system calls is in milli-sec resolution and very not accurate for our tests. We require micro-sec waits and high accuracy.

Alex
Reply all
Reply to author
Forward
0 new messages