On Sun, Apr 07, 2019 at 01:54:35PM +0000, Ipsen S Ripsbusker wrote: > My hw.ncpu and hw.ncpuonline are less than my hw.ncpufound. > I tried setting hw.smt, but that alone was apparently not enough. > What should I do if I want to use all 4 CPUs? > > Also, now that I have realized this, I have a theory about a related > issue, and I would like to know how I can debug it. I am using softraid > CRYPTO, and I have found that accessing the disk with one process will > interrupt the other processes accessing the disk. Now I wonder this > happens because the sole core must switch encryption/decription > processes for the different files. How could I determine whether this is > indeed happening? > > More hardware information follows. It is a ThinkPad T530 with > two SSDs and two corresponding softraid CRYPTO disks.
This type of question *requires* a dmesg. -Otto > > $ sysctl hw > hw.machine=amd64 > hw.model=Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz > hw.ncpu=1 > hw.byteorder=1234 > hw.pagesize=4096 > hw.disknames=sd0:c4ae9aa6707fe6a0,sd1:10319ae393cc594d,sd2:72b7961f3a883f2a,sd3:9067e68ce463822c > hw.diskcount=4 > hw.sensors.cpu0.temp0=44.00 degC > hw.sensors.acpitz0.temp0=47.00 degC (zone temperature) > hw.sensors.acpibtn0.indicator0=On (lid open) > hw.sensors.acpibat0.volt0=11.10 VDC (voltage) > hw.sensors.acpibat0.volt1=12.11 VDC (current voltage) > hw.sensors.acpibat0.power0=0.00 W (rate) > hw.sensors.acpibat0.watthour0=28.20 Wh (last full capacity) > hw.sensors.acpibat0.watthour1=1.41 Wh (warning capacity) > hw.sensors.acpibat0.watthour2=0.20 Wh (low capacity) > hw.sensors.acpibat0.watthour3=28.20 Wh (remaining capacity), OK > hw.sensors.acpibat0.watthour4=73.26 Wh (design capacity) > hw.sensors.acpibat0.raw0=0 (battery full), OK > hw.sensors.acpiac0.indicator0=On (power supply) > hw.sensors.acpithinkpad0.temp0=47.00 degC > hw.sensors.acpithinkpad0.temp1=47.00 degC > hw.sensors.acpithinkpad0.temp2=47.00 degC > hw.sensors.acpithinkpad0.temp3=47.00 degC > hw.sensors.acpithinkpad0.temp4=47.00 degC > hw.sensors.acpithinkpad0.temp5=47.00 degC > hw.sensors.acpithinkpad0.temp6=47.00 degC > hw.sensors.acpithinkpad0.temp7=47.00 degC > hw.sensors.acpithinkpad0.fan0=2121 RPM > hw.sensors.acpithinkpad0.indicator0=Off (port replicator), UNKNOWN > hw.sensors.softraid0.drive0=online (sd3), OK > hw.cpuspeed=2901 > hw.setperf=100 > hw.vendor=LENOVO > hw.product=2392ASU > hw.version=ThinkPad T530 > hw.serialno=PK2X772 > hw.uuid=81c1c6e7-7653-cb11-b4d1-97bd37f8963e > hw.physmem=16845565952 > hw.usermem=16811044864 > hw.ncpufound=4 > hw.allowpowerdown=1 > hw.perfpolicy=auto > hw.smt=1 > hw.ncpuonline=1 >