Is it possible to determine the time difference between the moment when the era is generated by the core and the moment that the S JVM reads?

i.e. Time A = voltage goes to the mains adapter; Time B = A selector from the Java NIO package can select a socket channel for I / O.

+3
source share
2 answers

Use SO_TIMESTAMP and find a network adapter that actually supports timestamps, and one that supports timestamps with a resolution of more than a million. Then you should have a chance if you can get Java to read the incoming cmsgsupporting data.

.

(edit # 1) C, 2.6.30 , :

http://www.mjmwired.net/kernel/Documentation/networking/timestamping/timestamping.c

( # 2) C:

http://vilimpoc.org/research/ku-latency/

(edit # 3) J-OWAMP, . OWAMP Linux SO_TIMESTAMP.

http://www.av.it.pt/jowamp/

+4

- tcpdump, "", , jvm.

0

Source: https://habr.com/ru/post/1781335/


All Articles