Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ece_os_readiness/mor.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,8 @@ def get_ip_of_ifname(netif_name: str) -> str:
if not netif_name or isinstance(netif_name, str) is False:
print(f"{ERROR} Invalid parameter netif_name: {netif_name}")
return ''
if "@" in netif_name:
netif_name = netif_name.split('@')[0]

errcnt = 0
cmd = f"ip addr show {netif_name}"
Expand Down Expand Up @@ -4722,6 +4724,8 @@ def get_speed_of_network_interface(netif: str) -> int:
if not netif or isinstance(netif, str) is False:
print(f"{ERROR} Invalid parameter netif: {netif}")
return -1
if "@" in netif:
netif = netif.split('@')[0]
speed_file = f"/sys/class/net/{netif}/speed"
speed = -1
try:
Expand Down
12 changes: 10 additions & 2 deletions ece_tuned_profile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ NOTE: How to add profile to the system, refer to [Chapter 3. Customizing TuneD p
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/*** directory with new directory named as ***/etc/tuned/storagescale-ece***
- Apply the profile: ***tuned-adm profile storagescale-ece***

For Ubuntu 24.0:
- Copy the directory which has the suffix ***_UB\**** to the ***/etc/tuned/*** directory with new directory named as ***/etc/tuned/storagescale-ece***
- Apply the profile: ***tuned-adm profile storagescale-ece***

- 5.1.9 and subsequent version
For RHEL 10:
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/profiles*** directory with new directory named as ***/etc/tuned/profiles/storagescale-ece***
Expand All @@ -28,10 +32,14 @@ NOTE: How to add profile to the system, refer to [Chapter 3. Customizing TuneD p
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/*** directory with new directory named as ***/etc/tuned/storagescale-ece***
- Apply the profile: ***tuned-adm profile storagescale-ece***

For Ubuntu 24.0:
- Copy the directory which has the suffix ***_UB\**** to the ***/etc/tuned/*** directory with new directory named as ***/etc/tuned/storagescale-ece***
- Apply the profile: ***tuned-adm profile storagescale-ece***

- 5.1.8 and previous version
For RHEL 10:
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/profiles*** directory with new directory named as ***/etc/tuned/profiles/storagescale-ece***
- Apply the profile: ***tuned-adm profile storagescale-ece***
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/profiles*** directory with new directory named as ***/etc/tuned/profiles/spectrumscale-ece***
- Apply the profile: ***tuned-adm profile spectrumscale-ece***

For versions earlier than RHEL 10:
- Copy the directory which has the suffix ***_RH\**** to the ***/etc/tuned/*** directory with new directory named as ***/etc/tuned/spectrumscale-ece***
Expand Down
31 changes: 31 additions & 0 deletions ece_tuned_profile/storagescale-ece_UB24/tuned.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#
# tuned configuration
#

[main]
summary=Optimizations for Storage Scale Erasure Code Edition

[cpu]
governor=performance
energy_perf_bias=performance
min_perf_pct=100

[sysctl]
kernel.numa_balancing = 1
vm.dirty_ratio = 40
vm.dirty_background_ratio = 10
vm.swappiness=10
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_timestamps = 1

[disk-sas]
type=disk
devices = sd*
elevator = mq-deadline
readahead = 0

[disk-nvme]
type=disk
devices = nvme*
elevator = none
readahead = 0