X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vpp%2Fconf%2Fstartup.conf;h=bce002027bfdcbe41318edd64fff3679927007ef;hb=9876520f9ba746ed4d9923f392911c4f1888a105;hp=84a026474c902a9d80150e20bb9637b77f80575e;hpb=1946a12a52deddfb501d2bdf320ff280cb42a076;p=vpp.git diff --git a/vpp/conf/startup.conf b/vpp/conf/startup.conf index 84a026474c9..bce002027bf 100644 --- a/vpp/conf/startup.conf +++ b/vpp/conf/startup.conf @@ -14,13 +14,30 @@ api-segment { } cpu { + ## In the VPP there is one main thread and optionally the user can create worker(s) + ## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically + + ## Manual pinning of thread(s) to CPU core(s) + ## Set logical CPU core where main thread runs # main-core 1 ## Set logical CPU core(s) where worker threads are running - ## by default there is no worker threads started # corelist-workers 2-3,18-19 + ## Automatic pinning of thread(s) to CPU core(s) + + ## Sets number of CPU core(s) to be skipped (1 ... N-1) + ## Skipped CPU core(s) are not used for pinning main thread and working thread(s). + ## The main thread is automatically pinned to the first available CPU core and worker(s) + ## are pinned to next free CPU core(s) after core assigned to main thread + # skip-cores 4 + + ## Specify a number of workers to be created + ## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s) + ## and main thread's CPU core + # workers 2 + ## Set scheduling policy and priority of main and worker threads ## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)