Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dpvs 初始化 CONFIG_DPVS_MAX_LCORE最大为64 #955

Closed
fishyu-mushroom opened this issue May 6, 2024 · 5 comments
Closed

dpvs 初始化 CONFIG_DPVS_MAX_LCORE最大为64 #955

fishyu-mushroom opened this issue May 6, 2024 · 5 comments

Comments

@fishyu-mushroom
Copy link

使用物理机是256核数的机器时,初始化报错。
发现是CONFIG_DPVS_MAX_LCORE最大限制了64。修改代码的变量值为256,dpvs服务可以启动。

请问这个64有什么特别的意义吗?

@ywc689
Copy link
Collaborator

ywc689 commented May 7, 2024

DPVS 的消息模块最大支持64核。实际上,对于万兆或者25G网卡的机器,8个核基本上就够了。具体可以参考DPVS性能测试文档。

@fishyu-mushroom
Copy link
Author

我们测试过了8核是最佳的状态。
我司新采购机器是256核心25G网卡的机器,所以只能在256核心的机器上跑。

DPVS 的消息模块最大支持64核,这个消息模块是不是就是对应 MSG_MAX_LCORE_SUPPORTED? 如何把这个值也改大,是不是就不会其他限制。

@fishyu-mushroom
Copy link
Author

在配置文件中我们仅定义了 8个cpu核心,但是为了在256的机器上启动服务,我们在编译前改了这些宏变量值。
修改了CONFIG_DPVS_MAX_LCORE MSG_MAX_LCORE_SUPPORTED 改到与物理机核心一致256,然后可以正常跑DPVS,但是没有在线上测试过。所以想额外咨询下,这个参数调整了是不是就不会有影响?还是会对DPVS某个模块产生影响,无法支持。

@ywc689
Copy link
Collaborator

ywc689 commented May 7, 2024

DPVS 的 EAL 启动参数可以解决这个问题。
比如

./dpvs ... -- -l 1-9 ...

具体可以参考help信息

./dpvs -- --help

@fishyu-mushroom
Copy link
Author

👌好的

@ywc689 ywc689 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants