@nxtedition/lib 26.0.35 → 26.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +4 -2
- package/package.json +1 -1
package/app.js
CHANGED
|
@@ -359,9 +359,11 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
359
359
|
})
|
|
360
360
|
}
|
|
361
361
|
|
|
362
|
+
const prev = sched_getaffinity(0)
|
|
363
|
+
|
|
362
364
|
affinity = indices.flatMap((i) => allNodes[i] ?? [])
|
|
363
365
|
affinity = fp.uniq(affinity)
|
|
364
|
-
affinity = fp.intersection(affinity,
|
|
366
|
+
affinity = fp.intersection(affinity, prev)
|
|
365
367
|
|
|
366
368
|
if (
|
|
367
369
|
!Array.isArray(affinity) ||
|
|
@@ -369,7 +371,7 @@ export function makeApp(appConfig, onTerminate) {
|
|
|
369
371
|
affinity.some((x) => !Number.isInteger(x) || x < 0)
|
|
370
372
|
) {
|
|
371
373
|
throw Object.assign(new Error('invalid numa configuration:' + numa), {
|
|
372
|
-
data: { numa, allNodes, affinity },
|
|
374
|
+
data: { numa, allNodes, indices, next: affinity, prev },
|
|
373
375
|
})
|
|
374
376
|
}
|
|
375
377
|
|