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

noironetworks / opflex / 1643
68%

Build:
DEFAULT BRANCH: master
Ran 06 Nov 2020 06:23PM UTC
Jobs 1
Files 271
Run time 37s
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

pending completion
1643

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

Jobs
ID Job ID Ran Files Coverage
1 1643.1 (TEST_SUITE=travis-build.sh) 06 Nov 2020 06:23PM UTC 0
79.15
Travis Job 1643.1
Source Files on build 1643
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1643
  • 615ded80 on github
  • Prev Build on master (#1635)
  • Next Build on master (#1658)
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