HowTo manage Mellanox Linux Driver modules and RPMs
?? 3
This post shows various of commands to manage the Linux driver modules and PRMs.
This post is basic and meant for beginners.
References
- HowTo Find the Logical-to-Physical Port Mapping (Linux)
- Mellanox Linux Driver Modules Relationship (MLNX_OFED)
- Linux rpm cheat sheet
Note: in different OS distributions the output may be different.
Kernel Module management
Use the following commands:
- lsmod
- modprobe
- modinfo
For example:
lsmod
# lsmod | grep ibib_ucm 22546 0ib_ipoib 136649 0ib_uverbs 66467 2 ib_ucm,rdma_ucmib_umad 22221 0mlx5_ib 142352 0mlx5_core 108415 1 mlx5_ibmlx4_ib 200149 0mlx4_core 336659 2 mlx4_en,mlx4_ibib_iser 52192 0rdma_cm 44355 2 ib_iser,rdma_ucmib_cm 48505 3 rdma_cm,ib_ucm,ib_ipoibib_sa 39729 5 rdma_cm,ib_cm,mlx4_ib,rdma_ucm,ib_ipoibib_mad 51544 4 ib_cm,ib_sa,mlx4_ib,ib_umadib_core 130594 13 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_iser,ib_umad,ib_uverbs,rdma_ucm,ib_ipoibib_addr 18737 3 rdma_cm,ib_core,ib_uverbscompat 15936 18 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_en,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_addr,ib_core,ib_iser,ib_umad,ib_uverbs,mlx4_core,mlx5_core,rdma_ucm,ib_ipoiblibiscsi 57278 1 ib_iserscsi_transport_iscsi 99754 3 ib_iser,libiscsilibahci 32009 1 ahcilibata 219478 2 ahci,libahci# lsmod | grep _enmlx4_en 137100 0vxlan 37584 1 mlx4_enmlx4_core 336659 2 mlx4_en,mlx4_ibcompat 15936 18 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_en,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_addr,ib_core,ib_iser,ib_umad,ib_uverbs,mlx4_core,mlx5_core,rdma_ucm,ib_ipoibptp 18933 2 e1000e,mlx4_en# lsmod | grep rdmardma_ucm 22410 0ib_uverbs 66467 2 ib_ucm,rdma_ucmrdma_cm 44355 2 ib_iser,rdma_ucmiw_cm 18547 1 rdma_cmib_cm 48505 3 rdma_cm,ib_ucm,ib_ipoibib_sa 39729 5 rdma_cm,ib_cm,mlx4_ib,rdma_ucm,ib_ipoibib_core 130594 13 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_iser,ib_umad,ib_uverbs,rdma_ucm,ib_ipoibib_addr 18737 3 rdma_cm,ib_core,ib_uverbscompat 15936 18 rdma_cm,ib_cm,ib_sa,iw_cm,mlx4_en,mlx4_ib,mlx5_ib,ib_mad,ib_ucm,ib_addr,ib_core,ib_iser,ib_umad,ib_uverbs,mlx4_core,mlx5_core,rdma_ucm,ib_ipoib
modinfo
# modinfo mlx4_enfilename: /lib/modules/3.10.0-123.el7.x86_64/extra/mlnx-ofa_kernel/drivers/net/ethernet/mellanox/mlx4/mlx4_en.koversion: 2.4-1.0.4 (Mar 8 2015)license: Dual BSD/GPLdescription: Mellanox ConnectX HCA Ethernet driverauthor: Liran Liss, Yevgeny Petrilinsrcversion: 8E1CD57B955BEC04E92C0A6depends: mlx4_core,compat,ptp,vxlanvermagic: 3.10.0-123.el7.x86_64 SMP mod_unload modversionssigner: Mellanox Technologies signing keysig_key: 61:FE:B0:74:FC:72:92:F9:58:41:93:86:FF:DD:9D:5C:A9:99:E4:03sig_hashalgo: sha256parm: udp_rss:Enable RSS for incoming UDP traffic (uint)parm: pfctx:Priority based Flow Control policy on TX[7:0]. Per priority bit mask (uint)parm: pfcrx:Priority based Flow Control policy on RX[7:0]. Per priority bit mask (uint)parm: inline_thold:Threshold for using inline data (range: 17-104, default: 104) (uint)
modprobe
1. To Load a module, run: modprobe
# modprobe xprtrdma
2. To remove a module run: modprobe -r
# modprobe -r xprtrdma
3. Add a module with parameters:
# modprobe....
RPM Management
1. Quary RPMs
# rpm -qa | grep srpperl-srpm-macros-1-8.el7.noarchkmod-srp-1.4-OFED.2.4.1.0.4.1.g13136df.rhel7u0.x86_64srptools-1.0.1-OFED.2.4.40.g68b353c.x86_64
2. To install RPMs use rpm -ivh
# rpm -ivh srptools-1.0.1-OFED.2.4.40.g68b353c.x86_64
3. To remove RPM use rpm -e
# rpm –e srptools-1.0.1-OFED.2.4.40.g68b353c.x86_64
See here for more RPM command info - Linux rpm cheat sheet.
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
댓글
댓글 쓰기