hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Ipsen S Ripsbusker-2
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.

$ 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

Reply | Threaded
Open this post in threaded view
|

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Otto Moerbeek
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
>

Reply | Threaded
Open this post in threaded view
|

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Aaron Mason
Looks to me like you're not running bsd.mp.  A dmesg would clear this up.

On Mon, Apr 8, 2019 at 2:19 AM Otto Moerbeek <[hidden email]> wrote:

>
> 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
> >
>


--
Aaron Mason - Programmer, open source addict
I've taken my software vows - for beta or for worse

Reply | Threaded
Open this post in threaded view
|

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Ipsen S Ripsbusker-2
Aaron Mason writes:
> Looks to me like you're not running bsd.mp.  A dmesg would clear this up.

Indeed I was not running bsd.mp. I switched to bsd.mp, and then 2 of 4
CPUs were online. Then I set "sysctl hw.smt = 1" to get all 4 online.

Otto Moerbeek writes:

> On Sun, Apr 07, 2019 at 01:54:35PM +0000, Ipsen S Ripsbusker wrote:
> > ...
> > 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?
> > ...
>
> This type of question *requires* a dmesg.
>
> -Otto

The interruptions continued after I started using 2 CPUs, and they seem
to have stopped now that I have 4 CPUs. I am still curious for real
debugging though.

Thanks

$ dmesg
OpenBSD 6.4 (GENERIC.MP) #364: Thu Oct 11 13:30:23 MDT 2018
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 16845565952 (16065MB)
avail mem = 16325763072 (15569MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xbae9c000 (69 entries)
bios0: vendor LENOVO version "G4ETA7WW (2.67 )" date 08/24/2016
bios0: LENOVO 2392ASU
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC TCPA SSDT SSDT SSDT HPET APIC MCFG ECDT FPDT ASF! UEFI UEFI MSDM SSDT SSDT UEFI DBG2
acpi0: wakeup devices LID_(S4) SLPB(S3) IGBE(S4) EXP3(S4) XHCI(S3) EHC1(S3) EHC2(S3) HDEF(S4)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.95 MHz, 06-3a-09
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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.1.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 MHz, 06-3a-09
cpu1: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu1: 256KB 64b/line 8-way L2 cache
cpu1: smt 1, core 0, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 MHz, 06-3a-09
cpu2: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu2: 256KB 64b/line 8-way L2 cache
cpu2: smt 0, core 1, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz, 2893.43 MHz, 06-3a-09
cpu3: 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,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND,NXE,RDTSCP,LONG,LAHF,PERF,ITSC,FSGSBASE,SMEP,ERMS,IBRS,IBPB,STIBP,L1DF,SSBD,SENSOR,ARAT,XSAVEOPT,MELTDOWN
cpu3: 256KB 64b/line 8-way L2 cache
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xf8000000, bus 0-63
acpiec0 at acpi0
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEG_)
acpiprt2 at acpi0: bus 2 (EXP1)
acpiprt3 at acpi0: bus 3 (EXP2)
acpiprt4 at acpi0: bus 4 (EXP3)
acpicpu0 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C2(350@80 mwait.1@0x20), C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: PUBS, resource for XHCI, EHC1, EHC2
acpitz0 at acpi0: critical temperature is 103 degC
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: SLPB
acpicmos0 at acpi0
tpm0 at acpi0: TPM_ addr 0xfed40000/0x5000: device 0x0000104a rev 0x4e
acpibat0 at acpi0: BAT0 model "45N1011" serial  2086 type LION oem "LGC"
acpiac0 at acpi0: AC unit online
"LEN0078" at acpi0 not configured
acpithinkpad0 at acpi0
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
acpivideo0 at acpi0: VID_
acpivout at acpivideo0 not configured
acpivideo1 at acpi0: VID_
acpivout at acpivideo1 not configured
cpu0: Enhanced SpeedStep 2893 MHz: speeds: 2901, 2900, 2800, 2700, 2500, 2400, 2300, 2200, 2000, 1900, 1800, 1700, 1600, 1400, 1300, 1200 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 3G Host" rev 0x09
ppb0 at pci0 dev 1 function 0 "Intel Core 3G PCIE" rev 0x09: msi
pci1 at ppb0 bus 1
1:0:0: mem address conflict 0xfff80000/0x80000
vendor "NVIDIA", unknown product 0x0def (class display subclass VGA, rev 0xa1) at pci1 dev 0 function 0 not configured
inteldrm0 at pci0 dev 2 function 0 "Intel HD Graphics 4000" rev 0x09
drm0 at inteldrm0
inteldrm0: msi
inteldrm0: 1600x900, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
xhci0 at pci0 dev 20 function 0 "Intel 7 Series xHCI" rev 0x04: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00 addr 1
"Intel 7 Series MEI" rev 0x04 at pci0 dev 22 function 0 not configured
puc0 at pci0 dev 22 function 3 "Intel 7 Series KT" rev 0x04: ports: 16 com
com4 at puc0 port 0 apic 2 int 19: ns16550a, 16 byte fifo
com4: probed fifo depth: 0 bytes
em0 at pci0 dev 25 function 0 "Intel 82579LM" rev 0x04: msi, address 3c:97:0e:eb:a4:eb
ehci0 at pci0 dev 26 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 16
usb1 at ehci0: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 7 Series HD Audio" rev 0x04: msi
azalia0: codecs: Realtek ALC269
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 7 Series PCIE" rev 0xc4: msi
pci2 at ppb1 bus 2
sdhc0 at pci2 dev 0 function 0 "Ricoh 5U823 SD/MMC" rev 0x05: apic 2 int 16
sdhc0: SDHC 3.0, 50 MHz base clock
sdmmc0 at sdhc0: 4-bit, sd high-speed, mmc high-speed, dma
"Ricoh 5U832 Firewire" rev 0x04 at pci2 dev 0 function 3 not configured
ppb2 at pci0 dev 28 function 1 "Intel 7 Series PCIE" rev 0xc4: msi
pci3 at ppb2 bus 3
iwn0 at pci3 dev 0 function 0 "Intel Centrino Advanced-N 6205" rev 0x34: msi, MIMO 2T2R, MoW, address e0:9d:31:54:37:64
ppb3 at pci0 dev 28 function 2 "Intel 7 Series PCIE" rev 0xc4: msi
pci4 at ppb3 bus 4
ehci1 at pci0 dev 29 function 0 "Intel 7 Series USB" rev 0x04: apic 2 int 23
usb2 at ehci1: USB revision 2.0
uhub2 at usb2 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
pcib0 at pci0 dev 31 function 0 "Intel QM77 LPC" rev 0x04
ahci0 at pci0 dev 31 function 2 "Intel 7 Series AHCI" rev 0x04: msi, AHCI 1.3
ahci0: port 0: 6.0Gb/s
ahci0: port 2: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, P3-2TB, T180> SCSI3 0/direct fixed naa.5000000000000000
sd0: 1953514MB, 512 bytes/sector, 4000797360 sectors, thin
sd1 at scsibus1 targ 2 lun 0: <ATA, MT-1TB, T180> SCSI3 0/direct fixed naa.5000000000000000
sd1: 976762MB, 512 bytes/sector, 2000409264 sectors, thin
ichiic0 at pci0 dev 31 function 3 "Intel 7 Series SMBus" rev 0x04: apic 2 int 18
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 8GB DDR3 SDRAM PC3-12800 SO-DIMM
spdmem1 at iic0 addr 0x51: 8GB DDR3 SDRAM PC3-12800 SO-DIMM
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
wsmouse1 at pms0 mux 0
pms0: Synaptics touchpad, firmware 7.2, 0x1c0b1 0xb40000
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
error: [drm:pid0:cpt_set_fifo_underrun_reporting] *ERROR* uncleared pch fifo underrun on pch transcoder A
error: [drm:pid0:intel_pch_fifo_underrun_irq_handler] *ERROR* PCH transcoder A FIFO underrun
umass0 at uhub0 port 1 configuration 1 interface 0 "Flash USB Disk" rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd2 at scsibus2 targ 1 lun 0: <Flash, USB Disk, 2.10> SCSI2 0/direct removable serial.19081320672895025497
sd2: 120MB, 512 bytes/sector, 247776 sectors
uhub3 at uhub1 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
ugen0 at uhub3 port 3 "Auth Biometric Coprocessor" rev 1.10/0.01 addr 3
uvideo0 at uhub3 port 6 configuration 1 interface 0 "Chicony Electronics Co., Ltd. Integrated Camera" rev 2.00/5.20 addr 4
video0 at uvideo0
uhub4 at uhub2 port 1 configuration 1 interface 0 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
uhub5 at uhub4 port 8 configuration 1 interface 0 "Lenovo product 0x1009" rev 2.00/0.00 addr 3
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/43.01 addr 4
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse2 at ums0 mux 0
uhidev1 at uhub5 port 2 configuration 1 interface 0 "Microdia / Sonix Technology Co., Ltd. USB Keyboard" rev 2.00/1.02 addr 5
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub5 port 2 configuration 1 interface 1 "Microdia / Sonix Technology Co., Ltd. USB Keyboard" rev 2.00/1.02 addr 5
uhidev2: iclass 3/1, 1 report id
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhidev3 at uhub5 port 4 configuration 1 interface 0 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev4 at uhub5 port 4 configuration 1 interface 1 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev4: iclass 3/0
uhid1 at uhidev4: input=32, output=32, feature=0
uhidev5 at uhub5 port 4 configuration 1 interface 2 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev5: iclass 3/0
ukbd2 at uhidev5: 128 variable keys, 0 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd3 at scsibus4 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed
sd3: 976756MB, 512 bytes/sector, 2000397143 sectors
softraid0: volume sd3 is roaming, it used to be sd4, updating metadata
root on sd3a (9067e68ce463822c.a) swap on sd3b dump on sd3b
wsmouse2 detached
ums0 detached
uhidev0 detached
wskbd1: disconnecting from wsdisplay0
wskbd1 detached
ukbd0 detached
uhidev1 detached
uhid0 detached
uhidev2 detached
wskbd2: disconnecting from wsdisplay0
wskbd2 detached
ukbd1 detached
uhidev3 detached
uhid1 detached
uhidev4 detached
wskbd3: disconnecting from wsdisplay0
wskbd3 detached
ukbd2 detached
uhidev5 detached
uhub5 detached
acpivideo1: unknown event 0xdf
uhub5 at uhub4 port 8 configuration 1 interface 0 "Lenovo product 0x1009" rev 2.00/0.00 addr 3
acpivideo1: unknown event 0xdf
uhidev0 at uhub5 port 1 configuration 1 interface 0 "Logitech USB Optical Mouse" rev 2.00/43.01 addr 4
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse2 at ums0 mux 0
uhidev1 at uhub5 port 2 configuration 1 interface 0 "Microdia / Sonix Technology Co., Ltd. USB Keyboard" rev 2.00/1.02 addr 5
uhidev1: iclass 3/1
ukbd0 at uhidev1: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev2 at uhub5 port 2 configuration 1 interface 1 "Microdia / Sonix Technology Co., Ltd. USB Keyboard" rev 2.00/1.02 addr 5
uhidev2: iclass 3/1, 1 report id
uhid0 at uhidev2 reportid 1: input=2, output=0, feature=0
uhidev3 at uhub5 port 4 configuration 1 interface 0 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev4 at uhub5 port 4 configuration 1 interface 1 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev4: iclass 3/0
uhid1 at uhidev4: input=32, output=32, feature=0
uhidev5 at uhub5 port 4 configuration 1 interface 2 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev5: iclass 3/0
ukbd2 at uhidev5: 128 variable keys, 0 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
firefox[99209]: pledge "tty", syscall 54
firefox[71262]: pledge "tty", syscall 54
firefox[88752]: pledge "tty", syscall 54
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
wskbd2: disconnecting from wsdisplay0
wskbd2 detached
ukbd1 detached
uhidev3 detached
uhid1 detached
uhidev4 detached
wskbd3: disconnecting from wsdisplay0
wskbd3 detached
ukbd2 detached
uhidev5 detached
uhidev3 at uhub5 port 3 configuration 1 interface 0 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev4 at uhub5 port 3 configuration 1 interface 1 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev4: iclass 3/0
uhid1 at uhidev4: input=32, output=32, feature=0
uhidev5 at uhub5 port 3 configuration 1 interface 2 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev5: iclass 3/0
ukbd2 at uhidev5: 128 variable keys, 0 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
firefox[27680]: pledge "tty", syscall 54
error: [drm:pid12100:intel_pipe_update_start] *ERROR* Potential atomic update failure on pipe B
wskbd2: disconnecting from wsdisplay0
wskbd2 detached
ukbd1 detached
uhidev3 detached
uhid1 detached
uhidev4 detached
wskbd3: disconnecting from wsdisplay0
wskbd3 detached
ukbd2 detached
uhidev5 detached
uhidev3 at uhub5 port 3 configuration 1 interface 0 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev3: iclass 3/1
ukbd1 at uhidev3: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
wskbd2: connecting to wsdisplay0
uhidev4 at uhub5 port 3 configuration 1 interface 1 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev4: iclass 3/0
uhid1 at uhidev4: input=32, output=32, feature=0
uhidev5 at uhub5 port 3 configuration 1 interface 2 "technomancy Atreus" rev 1.10/0.24 addr 6
uhidev5: iclass 3/0
ukbd2 at uhidev5: 128 variable keys, 0 key codes
wskbd3 at ukbd2 mux 1
wskbd3: connecting to wsdisplay0
uhidev6 at uhub0 port 2 configuration 1 interface 0 "TMK/Cub Ergodox" rev 1.10/0.01 addr 3
uhidev6: iclass 3/1
ukbd3 at uhidev6: 8 variable keys, 6 key codes
wskbd4 at ukbd3 mux 1
wskbd4: connecting to wsdisplay0
uhidev7 at uhub0 port 2 configuration 1 interface 1 "TMK/Cub Ergodox" rev 1.10/0.01 addr 3
uhidev7: iclass 3/1
ums1 at uhidev7: 5 buttons, Z and W dir
wsmouse3 at ums1 mux 0
uhidev8 at uhub0 port 2 configuration 1 interface 2 "TMK/Cub Ergodox" rev 1.10/0.01 addr 3
uhidev8: iclass 3/0, 3 report ids
uhid2 at uhidev8 reportid 2: input=2, output=0, feature=0
uhid3 at uhidev8 reportid 3: input=2, output=0, feature=0
uhidev9 at uhub0 port 2 configuration 1 interface 3 "TMK/Cub Ergodox" rev 1.10/0.01 addr 3
uhidev9: iclass 3/0
uhid4 at uhidev9: input=32, output=32, feature=0
uhidev10 at uhub0 port 2 configuration 1 interface 4 "TMK/Cub Ergodox" rev 1.10/0.01 addr 3
uhidev10: iclass 3/0
ukbd4 at uhidev10: 128 variable keys, 0 key codes
wskbd5 at ukbd4 mux 1
wskbd5: connecting to wsdisplay0
wskbd4: disconnecting from wsdisplay0
wskbd4 detached
ukbd3 detached
uhidev6 detached
wsmouse3 detached
ums1 detached
uhidev7 detached
uhid2 detached
uhid3 detached
uhidev8 detached
uhid4 detached
uhidev9 detached
wskbd5: disconnecting from wsdisplay0
wskbd5 detached
ukbd4 detached
uhidev10 detached

Reply | Threaded
Open this post in threaded view
|

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Philip Guenther-2
On Mon, May 27, 2019 at 6:18 PM Ipsen S Ripsbusker <
[hidden email]> wrote:

> Aaron Mason writes:
> > Looks to me like you're not running bsd.mp.  A dmesg would clear this
> up.
>
> Indeed I was not running bsd.mp. I switched to bsd.mp, and then 2 of 4
> CPUs were online. Then I set "sysctl hw.smt = 1" to get all 4 online.
>

This is a side-point, but you do understand that those extra 2 aren't full
CPUs, they're just the cardboard mockups that Intel sold you, and that if
you run any untrusted code (including javascript in a web-browser) that
those fake CPUs leak data across process boundaries, right?



> Otto Moerbeek writes:
> > On Sun, Apr 07, 2019 at 01:54:35PM +0000, Ipsen S Ripsbusker wrote:
> > > ...
> > > 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?
>

Can you explain in more detail what you were observing when you said "found
that accessing the disk with one process will interrupt the other processes
accessing the disk"?  The word 'interrupt' is overloaded in computing and
what you saw may be a real problem with device support, or it may be
completely innocuous, something which you should be ignoring.

Philip Guenther
Reply | Threaded
Open this post in threaded view
|

Re: hw.ncpu=1, hw.ncpuonline=1, hw.ncpufound=4

Ipsen S Ripsbusker-2
Thank you

I was not aware of the security issues of hw.smt. Fortunately, things
are fast enough without it, and I'm setting up a true multicore AMD
system soon.

On my hypothesis about CPU usage competition, I was using "interrupt"
in the sense that doesn't involve computers. For example, suppose that
I first run something that outputs its processing as it processes, like
nmh scan(1) or playing music with mpv(1). Second, in the middle, I run
something that uses the filesystem a lot, like a borg(1) backup. The
first thing's output will stop for a moment while the second thing runs.

Best salutations,
Ipsen