Skip to content

Commit

Permalink
Updated tuning parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcinZablocki committed Apr 6, 2021
1 parent d7c75c4 commit fd30ac2
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions src/var/lib/oci-cn-auth/bin/ifup-rdma
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,6 @@ if shape == 'BM.GPU4.8':

result = run_command(set_channels)

# ignore if failed
#
# if result['exit_code'] == 1:
# print('Error running {}.\n{}'.format(str(set_ring).join(','), result['stderr'].read().decode('utf-8')))
# sys.exit(1)

ip = shutil.which('ip')
if not ip:
ifconfig = shutil.which('ifconfig')
Expand All @@ -251,37 +245,16 @@ if result['exit_code'] != 0:
sys.exit(1)

if ip:
<<<<<<< Updated upstream
<<<<<<< Updated upstream
<<<<<<< Updated upstream
command = [ip, 'link', 'set', 'dev', interface, 'txqueuelen', '200000']
result = run_command(command)
elif ifconfig:
command = [ifconfig, interface, 'txqueuelen', '200000']
=======
=======
>>>>>>> Stashed changes
command = [ip, 'link', 'set', 'dev', interface, 'txqueuelen', '20000']
result = run_command(command)
elif ifconfig:
command = [ifconfig, interface, 'txqueuelen', '20000']
<<<<<<< Updated upstream
>>>>>>> Stashed changes
=======
command = [ip, 'link', 'set', 'dev', interface, 'txqueuelen', '20000']
result = run_command(command)
elif ifconfig:
command = [ifconfig, interface, 'txqueuelen', '20000']
>>>>>>> Stashed changes
=======
>>>>>>> Stashed changes
command = [ifconfig, interface, 'txqueuelen', '20000']
result = run_command(command)

if result['exit_code'] != 0:
print('Error running {}.\n{}'.format(str(command).join(','), result['stderr'].read().decode('utf-8')))
sys.exit(1)


command = [mlnx_qos, '-i', interface, '--trust dscp']
result = run_command(command)

Expand Down

0 comments on commit fd30ac2

Please sign in to comment.