3
如可在socket man page中看到的那樣,可以使用SO_TIMESTAMP
和setsockopt
到 度量Linux內核將接收到的網絡包傳遞給用戶空間所花費的時間量。SO_TIMESTAMP for tsc not timeval?
這裏有一個很好的功能描述:Measuring latency in the Linux network stack between kernel and user space。
在內核接收到數據包時,有什麼方法可以讀取tsc
而不是timeval
?
如果你拿了很多樣品,反正你會有亞美的準確度。 – 2013-03-07 08:58:07