• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

noironetworks / opflex / 1643 / 1
68%
master: 68%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2020 06:23PM UTC
Files 271
Run time 36s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

06 Nov 2020 06:23PM UTC coverage: 79.151% (-0.09%) from 79.24%
TEST_SUITE=travis-build.sh

push

travis-ci-com

GitHub
Changes to move svc stats to a low prio thread (#295)

- Created a new thread to handle svc stat flows CRUD. The thread works on a new asio io_service object to handle new events from taskqueue.
- Stats collection done via ServiceStatsManager also uses the new asio io_service.
- All linux threads by default have SCHED_OTHER scheduling policy. This has a static priority of 0. Other sched policies like SCHED_FIFO and SCHED_RR allow users to control thread priority varying from values 1 to 99. Due to this FIFO/RR will preempt SCHED_OTHER threads. Either we move all threads to FIFO/RR and set priorities or somehow influence priority within SCHED_OTHER policy. Luckily there is a "nice" value than is configurable at a thread level per process which can control the total time allocated per thread. The new thread has highest "nice" value, which makes it consume least CPU time.
- Call programServiceSnatDnatFlows() appropriately per service, once all the stats flows are programmed. This is to update cookie values in SNAT/DNAT flows for stats collection. Note: This used to be called twice for every service during EP update. Reduced this to just one call. Also, since service flows get programmed via agent thread and since stats flows are created via different thread, this call needs to be called separately for service updates as well.
- Flows get programmed by both agent thread and new thread. Addressed tsan issues with a mutex in switch manager.
- Changed a few booleans to atomic bools.
- make check and mock agent work fine. Will be creating more services and pods and verify further.

Signed-off-by: Gautam Venkataramanan <gautam.chennai@gmail.com>

22357 of 28246 relevant lines covered (79.15%)

3638.25 hits per line

Source Files on job 1643.1 (TEST_SUITE=travis-build.sh)
  • Tree
  • List 0
  • Changed 99
  • Source Changed 7
  • Coverage Changed 99
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1059
  • Travis Job 1643.1
  • 615ded80 on github
  • Prev Job for TEST_SUITE=travis-build.sh on master (#1635.1)
  • Next Job for TEST_SUITE=travis-build.sh on master (#1658.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc