Merge "Reduce IB child size in controller"
This commit is contained in:
commit
001ef6986e
|
@ -128,7 +128,19 @@ function update_fw_if_not_oem () {
|
|||
function enable_eipoib (){
|
||||
if [ $DRIVER == 'eth_ipoib' ]; then
|
||||
sed -i s/^E_IPOIB_LOAD.*$/E_IPOIB_LOAD=yes/g /etc/infiniband/openib.conf
|
||||
echo "options ib_ipoib recv_queue_size=128 send_queue_size=128" > /etc/modprobe.d/ipoib.conf
|
||||
|
||||
# Set Buffers size
|
||||
if [ -f /etc/modprobe.d/ib_ipoib.conf ];then
|
||||
sed -i s/^.*queue_size.*$//g /etc/modprobe.d/ib_ipoib.conf
|
||||
fi
|
||||
if [[ $ROLE == *controller* ]];then
|
||||
buffer_size=32
|
||||
else
|
||||
buffer_size=128
|
||||
fi
|
||||
echo "options ib_ipoib recv_queue_size=$buffer_size send_queue_size=$buffer_size" > /etc/modprobe.d/ipoib.conf
|
||||
|
||||
# Use fixed MLNX_OFED scripts
|
||||
\cp -f ./ipoibd /sbin/ipoibd
|
||||
\cp -f ./openibd /etc/init.d/openibd
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue