Skip to content

Commit 7cc74dc

Browse files
committed
Fix SFAM-2421 (#655)
1 parent 66500cb commit 7cc74dc

4 files changed

Lines changed: 8 additions & 5 deletions

File tree

‎docs/create_crypto_lvol.md‎

100644100755
File mode changed.

‎docs/generate_doc.py‎

100644100755
File mode changed.

‎simplyblock_core/storage_node_ops.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import json
44
import os
55

6+
import platform
67
import socket
78

89
import psutil
@@ -2680,7 +2681,9 @@ def deploy(ifname, isolate_cores=False):
26802681
if isolate_cores:
26812682
utils.generate_realtime_variables_file(all_isolated_cores)
26822683
utils.run_tuned()
2683-
utils.run_grubby(all_isolated_cores)
2684+
arch = platform.machine().lower()
2685+
if "arm" in arch or "aarch64" in arch:
2686+
utils.run_grubby(all_isolated_cores)
26842687
return f"{dev_ip}:5000"
26852688

26862689

‎simplyblock_core/utils/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -849,8 +849,8 @@ def run_tuned():
849849
check=True
850850
)
851851
logger.info("Successfully run the tuned adm profile")
852-
except subprocess.CalledProcessError as e:
853-
logger.error(f"Error running the tuned adm profile: {e}")
852+
except subprocess.CalledProcessError:
853+
logger.warning("Error running the tuned adm profile")
854854

855855
def run_grubby(core_list):
856856
isolated_cores = ",".join(map(str, core_list))
@@ -862,8 +862,8 @@ def run_grubby(core_list):
862862
check=True
863863
)
864864
logger.info("Successfully run the grubby command")
865-
except subprocess.CalledProcessError as e:
866-
logger.error(f"Error running the grubby command: {e}")
865+
except subprocess.CalledProcessError:
866+
logger.warning("Error running the grubby command")
867867

868868
def parse_thread_siblings():
869869
"""Parse the thread siblings from the sysfs topology."""

0 commit comments

Comments
 (0)