-
Notifications
You must be signed in to change notification settings - Fork 119
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
Can I turn off buffer sharing among ports on a switch? #15
Comments
Yes, you can configure per port threshold here
Right now it's set to a large threshold so it won't really trigger. You may also need to look at a few other parameters around this line. |
Got it. m_port_max_shared_cell = 4800 * 1030; //max buffer for an ingress port Besides the (private) queue size threshold for each port specified by this parameter, is there any switch I need to turn off to prevent the packets from using the shared buffer when the queue is full? Thanks~ |
"shared" means it's shared by all ingress pg (priority groups) of that port. sp means service pool. These are Broadcom terminology. It's roughly Total buffer = guarantee + sp + headroom; all ports' shared buffer is in sp. For more concrete details you can read the code To turn off ingress sharing, make sure m_dynamicth is false and this is not called: I don't think I implemented egress sharing. |
Hi Yibo,
From your replies in the issue Some questions about how modules work in simlator, I learnt that all the ports on a switch share the same queue buffer by "A node can have multiple qbb-net-device (especially on a switch), which share the same m_broadcom and m_queue."
I would like to know, can I turn off the buffer sharing and let each port have its own fixed-size buffer? In this way I can control the buffer resource allocated to each switch port.
Thanks~
The text was updated successfully, but these errors were encountered: