"strace" is a powerful linux debug command and it can be used on Arista EOS.
Some useful arguments:
-c -- count time and calls
-p pid -- trace process with pid#
-T -- print time spent
Example:
[admin@bn303 ~]$ ps -ef | grep Bgp
root 14926 2044 1 09:55 ? 00:00:09 Bgp
[admin@bn303 ~]$ sudo strace -c -p 14926
Process 14926 attached
^CProcess 14926 detached
% time seconds usecs/call calls errors syscall
------ ----------- ----------- --------- --------- ----------------
-nan 0.000000 0 1 ioctl
-nan 0.000000 0 3 3 stat64
-nan 0.000000 0 46 epoll_ctl
-nan 0.000000 0 45 epoll_wait
-nan 0.000000 0 4 send
-nan 0.000000 0 1 sendmsg
-nan 0.000000 0 1 recvmsg
------ ----------- ----------- --------- --------- ----------------
100.00 0.000000 101 3 total
No comments:
Post a Comment