NorskSystemST2110.recommendCoresFor() method
Ask the server to pick a NUMA-local set of DPDK lcores for the given NIC. The server reads the NIC’s local_cpulist plus the kernel’s isolcpus / nohz_full sets, so callers don’t have to know the host’s CPU topology themselves — handy for tests that may run on different hardware in CI.
The returned shape is exactly what scheduling: { type: "pinned", … } on a subsequent nic() call expects.
Signature:
recommendCoresFor(settings: {
nic: Nic;
count: number;
}): Promise<{
mainCore: number;
otherCores: number[];
}>;
Parameters
| Parameter | Type | Description |
|---|---|---|
settings |
{ nic: Nic; count: number; } |
Returns:
Promise<{ mainCore: number; otherCores: number[]; }>