On Mon, Apr 17, 2023 at 08:23:27PM +0000, Mikolaj Kucharski wrote:
> On Thu, Apr 13, 2023 at 04:43:39PM +0000, Mikolaj Kucharski wrote:
> > Hi,
> >
> > I have an amd64 based cheap laptop, which has extremly slow I/O and even
> > slower I/O in the installer. The result is, that fsck during upgrade,
> > triggered via sysupgrade -s, takes ages. Basically makes upgrade
> > non-usable. I need to follow manual upgrade or I edit via the
> > gzip, rdsetroot -x, vnconfig, mount, vi, umount, vnconfig -u,
> > rdsetroot, gzip dance the WATCHDOG_PERIOD_SEC in install.sub and
> > bump it to 60 minutes, then I can sysupgrade the machine.
> >
> > Would it be possible to bump it to 60 minutes?
> >
> > I have that laptop powered off at the moment, but I will upgrade to
> > -current in coming days and will post in the thread dmesg from
> > GENERIC.MP and RAMDISK_CD.
> >
>
> Below info generated via sendbug(1) on that machine.
>
>
> dmesg:
> OpenBSD 7.3-current (GENERIC.MP) #1147: Sun Apr 16 20:02:47 MDT 2023
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
I don't have enough big chunk of time to troubleshoot it in a constant
pace. Sending what I find useful for the thread, in an incremental manner.
I tested fsck -fy / fsck -fp on GENERIC.MP and on RAMDISK_CD and on:
- generic mp takes about 13 minutes 45 seconds
- installer takes about 35 minutes
Because of small size of the disk, I kept partitioning to minimum:
$ df -hl
Filesystem Size Used Avail Capacity Mounted on
/dev/sd0a 24.6G 16.5G 6.9G 71% /
This is sysctl hw from GENERIC.MP
hw.machine=amd64
hw.model=Intel(R) Celeron(R) CPU N3050 @ 1.60GHz
hw.ncpu=2
hw.byteorder=1234
hw.pagesize=4096
hw.disknames=sd0:d31094b20cc03606
hw.diskcount=1
hw.sensors.cpu0.temp0=50.00 degC
hw.sensors.cpu0.frequency0=2150000000.00 Hz
hw.sensors.cpu1.frequency0=2150000000.00 Hz
hw.sensors.acpibat0.volt0=8.40 VDC (voltage)
hw.sensors.acpibat0.volt1=8.31 VDC (current voltage)
hw.sensors.acpibat0.current0=0.02 A (rate)
hw.sensors.acpibat0.amphour0=3.40 Ah (last full capacity)
hw.sensors.acpibat0.amphour1=0.34 Ah (warning capacity)
hw.sensors.acpibat0.amphour2=0.14 Ah (low capacity)
hw.sensors.acpibat0.amphour3=3.40 Ah (remaining capacity), OK
hw.sensors.acpibat0.amphour4=3.40 Ah (design capacity)
hw.sensors.acpibat0.raw0=0 (battery full), OK
hw.sensors.acpibat0.raw1=34 (discharge cycles)
hw.sensors.acpiac0.indicator0=On (power supply)
hw.sensors.acpibtn0.indicator0=On (lid open)
hw.sensors.acpitz0.temp0=0.00 degC (zone temperature)
hw.cpuspeed=1601
hw.setperf=100
hw.vendor=Insyde
hw.product=Braswell
hw.version=Type1 - TBD by OEM
hw.serialno=Type1 - 123456789
hw.uuid=78563412-3412-7856-90ab-cddeefaabbcc
hw.physmem=1926934528
hw.usermem=1926799360
hw.ncpufound=2
hw.allowpowerdown=1
hw.perfpolicy=auto
hw.smt=0
hw.ncpuonline=2
hw.power=1
dmesg from the installer
OpenBSD 7.3-current (RAMDISK_CD) #1082: Sun Apr 16 20:07:54 MDT 2023
[email protected]:/usr/src/sys/arch/amd64/compile/RAMDISK_CD
real mem = 1926934528 (1837MB)
avail mem = 1864577024 (1778MB)
random: good seed from bootblocks
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0x7433a000 (49 entries)
bios0: vendor INSYDE Corp. version "22.11" date 07/29/2015
bios0: Insyde Braswell
acpi0 at bios0: ACPI 5.0
acpi0: tables DSDT FACP UEFI TCPA UEFI MCFG SLIC SSDT SSDT SSDT SSDT SSDT APIC
SSDT TPM2 FPDT BGRT
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Celeron(R) CPU N3050 @ 1.60GHz, 1600.42 MHz, 06-4c-03
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,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,MOVBE,POPCNT,DEADLINE,AES,RDRAND,NXE,RDTSCP,LONG,LAHF,3DNOWP,PERF,ITSC,TSC_ADJUST,SMEP,ERMS,SENSOR,ARAT,MELTDOWN
cpu0: 24KB 64b/line 6-way D-cache, 32KB 64b/line 8-way I-cache, 1MB 64b/line
16-way L2 cache
cpu0: apic clock running at 80MHz
cpu0: mwait min=64, max=64, C-substates=0.2, IBE
cpu at mainbus0: not configured
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 115 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus -1 (RP03)
acpiprt4 at acpi0: bus -1 (RP04)
acpiec0 at acpi0
acpipci0 at acpi0 PCI0: 0x00000004 0x00000011 0x00000001
"PNP0C0A" at acpi0 not configured
com0 at acpi0 IURT addr 0x3f8/0x8 irq 4: ns16550a, 16 byte fifo
sdhc0 at acpi0 SDHA addr 0x9141f000/0x1000 irq 45
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, ddr52, dma
sdhc1 at acpi0 SDHC addr 0x9141d000/0x1000 irq 47
sdhc1: SDHC 3.0, 200 MHz base clock
sdmmc1 at sdhc1: 4-bit, sd high-speed, mmc high-speed, ddr52, dma
"INTL9C60" at acpi0 not configured
"BCM2E64" at acpi0 not configured
"BCM4752" at acpi0 not configured
"BOSC0200" at acpi0 not configured
"GDIX1001" at acpi0 not configured
"MSFT0002" at acpi0 not configured
chvgpio0 at acpi0 GPO0 uid 1 addr 0xfed80000/0x8000 irq 49, 56 pins
"ATML1000" at acpi0 not configured
"NXP7471" at acpi0 not configured
"ACPI0003" at acpi0 not configured
"PNP0C0D" at acpi0 not configured
"HTR0001" at acpi0 not configured
acpicmos0 at acpi0
"PNP0C0C" at acpi0 not configured
"PNP0C0E" at acpi0 not configured
chvgpio1 at acpi0 GPO1 uid 2 addr 0xfed88000/0x8000 irq 48, 59 pins
chvgpio2 at acpi0 GPO2 uid 3 addr 0xfed90000/0x8000 irq 50, 24 pins
chvgpio3 at acpi0 GPO3 uid 4 addr 0xfed98000/0x8000 irq 91, 55 pins
"INT3400" at acpi0 not configured
"INT3406" at acpi0 not configured
"INT3403" at acpi0 not configured
"MSFT0101" at acpi0 not configured
"PNP0C0B" at acpi0 not configured
acpicpu at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpipwrres at acpi0 not configured
acpitz at acpi0 not configured
cpu0: using Silvermont MDS workaround
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Braswell Host" rev 0x21
"Intel HD Graphics" rev 0x21 at pci0 dev 2 function 0 not configured
"Intel Braswell Power" rev 0x21 at pci0 dev 11 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel Braswell xHCI" rev 0x21: 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 Braswell TXE" rev 0x21 at pci0 dev 26 function 0 not configured
"Intel Braswell HD Audio" rev 0x21 at pci0 dev 27 function 0 not configured
ppb0 at pci0 dev 28 function 0 "Intel Braswell PCIE" rev 0x21: msi
pci1 at ppb0 bus 1
re0 at pci1 dev 0 function 0 "Realtek 8101E" rev 0x05: RTL8105E (0x4080), msi,
address 00:16:96:e6:18:dd
rlphy0 at re0 phy 7: RTL8201E 10/100 PHY, rev. 2
"Intel Braswell PCU LPC" rev 0x21 at pci0 dev 31 function 0 not configured
"Intel Braswell SMBus" rev 0x21 at pci0 dev 31 function 3 not configured
isa0 at mainbus0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
efifb0 at mainbus0: 1920x1080, 32bpp
wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
sdmmc1: can't enable card
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Samsung, MBG4GC, 0000> removable
sd0: 29820MB, 512 bytes/sector, 61071360 sectors
"Image Processor USB 2.0 PC Cam" rev 2.00/0.05 addr 2 at uhub0 port 1 not
configured
urtwn0 at uhub0 port 4 configuration 1 interface 0 "Realtek 802.11n WLAN
Adapter" rev 2.00/2.00 addr 3
urtwn0: MAC/BB RTL8188CUS, RF 6052 1T1R, address 00:13:ef:40:51:2a
"Realtek 802.11n WLAN Adapter" rev 2.10/2.00 addr 4 at uhub0 port 5 not
configured
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
--
Regards,
Mikolaj