Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HPCasCode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hpc-team
HPCasCode
Commits
791f06b8
Commit
791f06b8
authored
3 years ago
by
Andreas Hamacher
Browse files
Options
Downloads
Patches
Plain Diff
disabling global pause on hypervisors
parent
41229efd
No related branches found
No related tags found
1 merge request
!534
disabling global pause on hypervisors
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/mellanox_config/tasks/rocev2.yml
+4
-2
4 additions, 2 deletions
roles/mellanox_config/tasks/rocev2.yml
roles/mellanox_config/templates/roce_mode.service.j2
+8
-0
8 additions, 0 deletions
roles/mellanox_config/templates/roce_mode.service.j2
with
12 additions
and
2 deletions
roles/mellanox_config/tasks/rocev2.yml
+
4
−
2
View file @
791f06b8
...
...
@@ -9,6 +9,7 @@
shell
:
/usr/sbin/ibstat | grep mlx5 | awk '{print $2}' | sed -r "s#'##g"
register
:
qibdevicenames
check_mode
:
no
changed_when
:
false
#when: not statrocemode.stat.exists
-
name
:
print qibdevicenames
...
...
@@ -23,6 +24,7 @@
owner
:
root
group
:
root
mode
:
u+rwx,g-wx,o-rwx
register
:
pfcecn
-
name
:
template roce_mode.service file
template
:
dest=/etc/systemd/system/roce_mode.service src=roce_mode.service.j2 owner=root group=root mode=0644
...
...
@@ -38,9 +40,9 @@
register
:
reload_service
-
name
:
enable roce_mode setting
service
:
name=roce_mode state=started enabled=yes
service
:
name=roce_mode state=
re
started enabled=yes
become
:
true
when
:
service_file.changed
when
:
service_file.changed
or pfcecn.changed
-
name
:
enable roce_mode setting
service
:
name=roce_mode state=started enabled=yes
...
...
This diff is collapsed.
Click to expand it.
roles/mellanox_config/templates/roce_mode.service.j2
+
8
−
0
View file @
791f06b8
...
...
@@ -18,6 +18,14 @@ ExecStart=/usr/sbin/cma_roce_mode -d {{ device }} -p 1 -m {{ rocemode }}
ExecStartPost=/usr/sbin/pfc-ecn.sh
{% endif %}
{% if "OpenStack Nova" not in ansible_product_name %}
ExecStartPost=/sbin/ethtool -A p1p1 rx off tx off
ExecStartPost=/sbin/ethtool -A p1p2 rx off tx off
{% else %}
# disable global pause counters. Query via ethtool -a mlx0. Commented because they are always off anyway and turning them of returns code 78
#ExecStartPost=/sbin/ethtool -A mlx0 rx off tx off
{% endif %}
[Install]
WantedBy=multi-user.target
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment