vppinfra: get_mempolicy instead of move_pages for mem init 87/41287/6
authorFlorin Coras <[email protected]>
Mon, 22 Jul 2024 19:09:53 +0000 (12:09 -0700)
committerDamjan Marion <[email protected]>
Tue, 23 Jul 2024 07:41:56 +0000 (07:41 +0000)
commit1f870c9bdc4f2ce4076b1faeb42878a41125fd76
treea0a8a4aaa873ee77e6b0f57e7efe063cb59623d7
parent3ac2ac532497024725e19fdd6f33ecbfceb9ff05
vppinfra: get_mempolicy instead of move_pages for mem init

Use get_mempolicy instead of move_pages to detect numa nodes. Avoids
issues whereby move_pages could stall if another rt thread spin waits
instead of yielding the cpu.

Type: improvement

Signed-off-by: Tatsushi Kanemoto <[email protected]>
Signed-off-by: Florin Coras <[email protected]>
Change-Id: I7db2073ed82bb0b1e707130d9bd8f54bea333840
src/vppinfra/linux/mem.c