mirror of
https://github.com/andreas-abel/nanoBench.git
synced 2026-01-06 20:30:13 +01:00
HT warning
This commit is contained in:
@@ -240,6 +240,9 @@ if os.geteuid() != 0:
|
||||
if not os.path.exists('/sys/nb'):
|
||||
sys.exit('Error: nanoBench kernel module not loaded\nLoad with "sudo insmod kernel/nb.ko"')
|
||||
|
||||
if readFile('/sys/devices/system/cpu/smt/active').startswith('1'):
|
||||
print('Note: Hyper-threading is enabled; it can be disabled with "sudo ./disable-HT.sh"', file=sys.stderr)
|
||||
|
||||
prevNMIWatchdogState = readFile('/proc/sys/kernel/nmi_watchdog')
|
||||
writeFile('/proc/sys/kernel/nmi_watchdog', '0')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user