-
Change Request
-
Resolution: Unresolved
-
Trivial
-
None
-
2.2.10
Parsing resp. seeking the psudo file /proc/net/tcp is significant more time consuming in comparison to seeking a regular file. Possibly this applies to other pseudo files as well.
See _llseek
# ./test.sh cat test.sh wc /proc/net/tcp strace -qfc zabbix_agentd -t 'vfs.file.regexp[/proc/net/tcp,"foobar"]' 2>&1 | head cat /proc/net/tcp > /tmp/tcp strace -qfc zabbix_agentd -t 'vfs.file.regexp[/tmp/tcp,"foobar"]' 2>&1 | head 1039 14918 155850 /proc/net/tcp vfs.file.regexp[/proc/net/tcp,"foobar"] [m|ZBX_NOTSUPPORTED] [Timeout while processing item.] % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 66.21 1.598514 812 1969 1 _llseek 33.65 0.812428 769 1056 read 0.13 0.003046 762 4 1 waitpid 0.01 0.000121 2 76 1 open 0.00 0.000093 0 984 clock_gettime 0.00 0.000081 1 154 mmap2 0.00 0.000031 1 54 rt_sigprocmask vfs.file.regexp[/tmp/tcp,"foobar"] [s|] % time seconds usecs/call calls errors syscall ------ ----------- ----------- --------- --------- ---------------- 81.72 0.002615 654 4 1 waitpid 8.22 0.000263 0 1134 read 3.72 0.000119 0 2124 1 _llseek 3.31 0.000106 1 153 mmap2 1.28 0.000041 1 76 fstat64 0.75 0.000024 0 1061 clock_gettime 0.59 0.000019 0 76 1 open