man > devlink-sb(8)

πŸ“– NAME

devlink-sb β€” devlink shared buffer configuration

πŸš€ Quick Reference

Use CaseCommandDescription
πŸ” List shared buffersdevlink sb showDisplay all available shared buffers and their attributes
πŸ“Š List poolsdevlink sb pool showShow pools with type, size, thtype, cell_size
βš™οΈ Set pool attributesdevlink sb pool set DEV [sb SB_INDEX] pool POOL_INDEX size SIZE thtype static|dynamicConfigure pool size and threshold type
πŸ”— Show port-pool thresholddevlink sb port pool show DEV/PORT_INDEX [sb SB_INDEX] pool POOL_INDEXDisplay threshold for port‑pool combination
✏️ Set port-pool thresholddevlink sb port pool set DEV/PORT_INDEX [sb SB_INDEX] pool POOL_INDEX th THRESHOLDChange threshold for a port‑pool mapping
πŸ”— Show TC bindingsdevlink sb tc bind show DEV/PORT_INDEX [sb SB_INDEX] tc TC_INDEX type ingress|egressDisplay pool binding and threshold for a TC
✏️ Set TC bindingdevlink sb tc bind set DEV/PORT_INDEX [sb SB_INDEX] tc TC_INDEX type ingress|egress pool POOL_INDEX th THRESHOLDBind TC to pool with threshold
πŸ“Έ Take occupancy snapshotdevlink sb occupancy snapshot DEV [sb SB_INDEX]Capture current occupancy values
πŸ“ˆ Show occupancydevlink sb occupancy show DEV|DEV/PORT_INDEX [sb SB_INDEX]Display snapshot occupancy (current/max)
🧹 Clear watermarksdevlink sb occupancy clearmax DEV [sb SB_INDEX]Reset max occupancy values

πŸ“‹ SYNOPSIS

devlink [ OPTIONS ] sb  { COMMAND | help }

OPTIONS := { -V[ersion] | -n[no-nice-names] }

devlink sb show [ DEV [ sb SB_INDEX ] ]

devlink sb pool show [ DEV [ sb SB_INDEX ]
        pool POOL_INDEX ]

devlink sb pool set DEV [ sb SB_INDEX ]
        pool POOL_INDEX
        size POOL_SIZE
        thtype { static | dynamic }

devlink sb port pool show [ DEV/PORT_INDEX [ sb SB_INDEX ]
        pool POOL_INDEX ]

devlink sb port pool set DEV/PORT_INDEX [ sb SB_INDEX ]
        pool POOL_INDEX
        th THRESHOLD

devlink sb tc bind show [ DEV/PORT_INDEX [ sb SB_INDEX ]
        tc TC_INDEX
        type { ingress | egress } ]

devlink sb tc bind set DEV/PORT_INDEX [ sb SB_INDEX ]
        tc TC_INDEX
        type { ingress | egress }
        pool POOL_INDEX
        th THRESHOLD

devlink sb occupancy show { DEV | DEV/PORT_INDEX } [ sb SB_INDEX ]

devlink sb occupancy snapshot DEV [ sb SB_INDEX ]

devlink sb occupancy clearmax DEV [ sb SB_INDEX ]

devlink sb help

πŸ“ DESCRIPTION

πŸ” devlink sb show – display available shared buffers and their attributes

πŸ“Š devlink sb pool show – display available pools and their attributes

βš™οΈ devlink sb pool set – set attributes of pool

πŸ”— devlink sb port pool show – display port-pool combinations and threshold for each

✏️ devlink sb port pool set – set port-pool threshold

πŸ”— devlink sb tc bind show – display port-TC to pool bindings and threshold for each

✏️ devlink sb tc bind set – set port-TC to pool binding with specified threshold

πŸ“ˆ devlink sb occupancy show – display shared buffer occupancy values for device or port

This command is used to browse shared buffer occupancy values. Values are shown for every port‑pool combination as well as for all port‑TC combinations (with pool this port‑TC is bound to). Format of value is: current_value/max_value. Note that before showing values, one has to issue occupancy snapshot command first.

πŸ“Έ devlink sb occupancy snapshot – take occupancy snapshot of shared buffer for device

This command is used to take a snapshot of shared buffer occupancy values. After that, the values can be shown using occupancy show command.

🧹 devlink sb occupancy clearmax – clear occupancy watermarks of shared buffer for device

This command is used to reset maximal occupancy values reached for whole device. Note that before browsing reset values, one has to issue occupancy snapshot command.

πŸ’‘ EXAMPLES

devlink sb show

List available shared buffers.

devlink sb pool show

List available pools and their config.

devlink sb port pool show pci/0000:03:00.0/1 pool 0

Show port-pool setup for specified port and pool.

sudo devlink sb port pool set pci/0000:03:00.0/1 pool 0 th 15

Change threshold for specified port and pool.

devlink sb tc bind show pci/0000:03:00.0/1 tc 0 type ingress

Show pool binding and threshold for specified port and TC.

sudo devlink sb tc bind set pci/0000:03:00.0/1 tc 0 type ingress pool 0 th 9

Set pool binding and threshold for specified port and TC.

sudo devlink sb occupancy snapshot pci/0000:03:00.0

Make a snapshot of occupancy of shared buffer for specified devlink device.

devlink sb occupancy show pci/0000:03:00.0/1

Show occupancy for specified port from the snapshot.

sudo devlink sb occupancy clearmax pci/0000:03:00.0

Clear watermarks for shared buffer of specified devlink device.

πŸ“š SEE ALSO

devlink(8), devlink-dev(8), devlink-port(8), devlink-monitor(8)

✍️ AUTHOR

Jiri Pirko <jiri AT mellanox.com>

iproute2  14 Apr 2016  DEVLINK-SB(8)

devlink-sb(8)
πŸ“– NAME πŸš€ Quick Reference πŸ“‹ SYNOPSIS πŸ“ DESCRIPTION
πŸ” devlink sb show – display available shared buffers and their attributes πŸ“Š devlink sb pool show – display available pools and their attributes βš™οΈ devlink sb pool set – set attributes of pool πŸ”— devlink sb port pool show – display port-pool combinations and threshold for each ✏️ devlink sb port pool set – set port-pool threshold πŸ”— devlink sb tc bind show – display port-TC to pool bindings and threshold for each ✏️ devlink sb tc bind set – set port-TC to pool binding with specified threshold πŸ“ˆ devlink sb occupancy show – display shared buffer occupancy values for device or port πŸ“Έ devlink sb occupancy snapshot – take occupancy snapshot of shared buffer for device 🧹 devlink sb occupancy clearmax – clear occupancy watermarks of shared buffer for device
πŸ’‘ EXAMPLES πŸ“š SEE ALSO ✍️ AUTHOR

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-30 21:49 @216.73.217.152
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^