Skip to content

Commit

Permalink
config/x86: increase lcores number for native AMD EPYC
Browse files Browse the repository at this point in the history
By default, max lcores are limited to 128 for x86 platforms.
On AMD EPYC processors, this limit needs to be increased to
leverage all the cores.

The patch adjusts the limit specifically for native compilation
on AMD EPYC CPUs.

techboard: https://mails.dpdk.org/archives/dev/2023-October/279672.html

Signed-off-by: Sivaprasad Tummala <[email protected]>
Acked-by: Konstantin Ananyev <[email protected]>
Acked-by: Morten Brørup <[email protected]>
  • Loading branch information
sivapt12 authored and tmonjalo committed Nov 12, 2023
1 parent 2284d67 commit acb34af
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions config/x86/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,21 @@ endif

dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64)
dpdk_conf.set('RTE_MAX_LCORE', 128)

epyc_zen_cores = {
'__znver4__':512,
'__znver3__':256,
'__znver2__':256,
'__znver1__':128
}

if get_option('platform') == 'native'
foreach m:epyc_zen_cores.keys()
if cc.get_define(m, args: machine_args) != ''
dpdk_conf.set('RTE_MAX_LCORE', epyc_zen_cores[m])
break
endif
endforeach
endif

dpdk_conf.set('RTE_MAX_NUMA_NODES', 32)

0 comments on commit acb34af

Please sign in to comment.