W dniu 17.11.2021 o 10:53, Dev Op pisze:
omg.. damn autocorrect! s/hypertrading/Hyper-threading/ :) Sometimes words
change their meaning. I'm laughing. Sorry for that.


ср, 17 нояб. 2021 г. в 11:00, Dev Op <[email protected]>:

Hi all!

I was dealing with one router and faced with the fact that I did not see
hypertrading after installing OpenBSD 7.0. I came across an email
https://www.mail-archive.com/[email protected]/msg99141.html,
where I read hypertrading was disabled for Intel processors running on
OpenBSD/amd64 and that it can be enabled via hw.smt. I did so, but I don't
see it making a difference. How do you make sure it's on and used?

router1$ dmesg | grep ^cpu
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel(R) Xeon(R) CPU E5430 @ 2.66GHz, 2667.11 MHz, 06-17-06
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,LONG,LAHF,PERF,SENSOR,MELTDOWN
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
cpu0: mwait min=64, max=64, C-substates=0.2.2.2, IBE
router1$ sysctl hw
hw.machine=amd64
hw.model=Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
hw.ncpu=1
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:fa871ac66d86823a
hw.diskcount=1
hw.sensors.acpitz0.temp0=8.30 degC (zone temperature)
hw.sensors.cpu0.temp0=50.00 degC
hw.sensors.ciss0.drive0=online (sd0), OK
hw.cpuspeed=2667
hw.setperf=100
hw.vendor=HP
hw.product=ProLiant DL360 G5
hw.serialno=CZJ815A9BY
hw.uuid=34353739-3234-435a-4a38-313541394259
hw.physmem=4276432896
hw.usermem=4276416512
hw.ncpufound=1
hw.allowpowerdown=1
hw.perfpolicy=manual
hw.smt=1
hw.ncpuonline=1
router1$ uname -a
OpenBSD router1 7.0 GENERIC#224 amd64
router1$

dmesg.boot is here: https://pastebin.com/G24A7Jbw

According to the Intel CPU E5430 specification, it has 4 cores.

Before updating the router, I noticed that it worked without hypertrading
on OpenBSD 6.7/amd64 with a good load:

->% uptime
11:03 AM up 209 days, 4:25, 3 users, load averages: 3.40, 3.17, 3.02

I didn’t see which process was eating the CPU in htop, but the average
load was scary. Suggested that HT disabled might be the cause, so I decided
to update the OS and enable HT.

The following services worked before the updates: pf / CARP / ospfd /
zabbix-proxy / snmpd.

Thank you for any suggestions.

Regards,
Den



Hi,

https://calomel.org/network_performance.html

According to this article, enabling hyperthreading in router may degrade performance.

I'm more concerned that your dmesg says only cpu0, while it should also have cpu1 cpu2 and cpu3 (with hyperthreading enabled also cpu4, cpu5, cpu6 and cpu7)

Also hw.ncpu=1 - it looks like actually you have only one cpu core enabled.

I suggest you should look in bios, because you most likely disabled 3 of 4 cores. You can also try resetting bios to factory defaults.

This also explains high load, I think that when you'll enable them, and disable hyperthreading, your load may drop to about 0.8.

How much cpu usage graphs do you see in htop?


Kind regards
--
Łukasz Moskała

Reply via email to