diff --git a/ece_os_readiness/mor.py b/ece_os_readiness/mor.py index 94823e1..2619582 100755 --- a/ece_os_readiness/mor.py +++ b/ece_os_readiness/mor.py @@ -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}" @@ -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: diff --git a/ece_tuned_profile/README.md b/ece_tuned_profile/README.md index 4f3344a..24e7cc2 100644 --- a/ece_tuned_profile/README.md +++ b/ece_tuned_profile/README.md @@ -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*** @@ -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*** diff --git a/ece_tuned_profile/storagescale-ece_UB24/tuned.conf b/ece_tuned_profile/storagescale-ece_UB24/tuned.conf new file mode 100644 index 0000000..8a39355 --- /dev/null +++ b/ece_tuned_profile/storagescale-ece_UB24/tuned.conf @@ -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