-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WiP] Add startup script with worker core support #75
base: master
Are you sure you want to change the base?
Conversation
start.sh
Outdated
echo " main-core ${BASH_REMATCH[1]}" >>/tmp/startup.conf | ||
echo " corelist-workers ${BASH_REMATCH[2]}" >>/tmp/startup.conf | ||
else | ||
echo "workers 0" >>/tmp/startup.conf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing indentation in echo value.
set -o pipefail | ||
set -o errtrace | ||
|
||
trap "sleep 10" EXIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Big 👍 fot this sleep!
ddde293
to
ea49a88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a corner case of timers "firing" after being stopped because their "user handles" being already collected into the 'expires' vector in pfcp_process(). This caused msg_pool corruption.
Non-empty value of VPP_USE_WORKER_CORE env var enables the use of the worker core. In this case, exactly 2 logical cores must be allocated for the VPP container via the cpuset cgroup controller.
ea49a88
to
b736a69
Compare
Non-empty value of VPP_USE_WORKER_CORE env var enables the use of the
worker core. In this case, exactly 2 logical cores must be allocated
for the VPP container via the cpuset cgroup controller.
workers 0
) case-x
from#!/bin/bash
in thestart.sh