CESNET / Nemea-Framework

Nemea framework is the heart of the Nemea system. It contains implementation of common communication interfaces, UniRec data format and useful datastructures and algorithms.
11 stars 24 forks source link

libtrap: fix cpu usage #143

Closed barnama1 closed 4 years ago

barnama1 commented 4 years ago

Fix unintentional busy waiting in TCP/IP and TLS interfaces resulting in high CPU usage.

Add "delay" counters to input interfaces for measuring of time intervals between receive calls (may be useful for debugging slow modules).

codecov-io commented 4 years ago

Codecov Report

Merging #143 into master will increase coverage by 0.01%. The diff coverage is 64.46%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #143      +/-   ##
==========================================
+ Coverage   41.86%   41.88%   +0.01%     
==========================================
  Files          73       73              
  Lines       14633    14708      +75     
==========================================
+ Hits         6126     6160      +34     
- Misses       8507     8548      +41     
Impacted Files Coverage Δ
libtrap/tools/trap_stats.c 0.00% <0.00%> (ø)
libtrap/src/trap.c 44.74% <39.47%> (-0.07%) :arrow_down:
libtrap/src/ifc_tls.c 58.14% <87.87%> (+0.25%) :arrow_up:
libtrap/src/ifc_tcpip.c 57.81% <97.14%> (+0.26%) :arrow_up:
libtrap/src/ifc_file.c 49.21% <0.00%> (-0.26%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d7530b4...7946b2c. Read the comment docs.