Claudio Jeker <cje...@diehard.n-r-g.com> wrote: ... > You are probably haunted by a bad issue with DMA memory and running out of > it. Your top is missing -SH since then you would probably see the > pagedameon go bananas. The problem is you have not enough memory below 4G > but the pagedaemon is not able to properly free memory there since it has > no proper tracking for that condition. It only knows memory is short and > tries to drop as much as possible over and over again. As a result your > system becomes unresponsive. > > The boot loader can print the memory map. Which should show you > how much memory is below 4G (I think the command is machine mem). > > This is a known issue and there is some work going on to fix the problem.
It's been a few months but I wanted to double-check that my memory map is consistent with this explanation. Here's the one I sent to the list in May (I didn't CC anyone that time): boot> machine memory Region 0: type 1 at 0x0 for 609KB Region 1: type 2 at 0xf0000 for 64KB Region 2: type 2 at 0xfec00000 for 20480KB Region 3: type 2 at 0xe0000000 for 262144KB Region 4: type 2 at 0x98400 for 31KB Region 5: type 2 at 0xcfdf0000 for 64KB Region 6: type 1 at 0x100000 for 3404292KB Region 7: type 3 at 0xcfde3000 for 52KB Region 8: type 4 at 0xcfde0000 for 12KB Region 9: type 1 at 0x100000000 for 13369344KB Low ram: 609KB High ram: 3404292KB Total free memory: 16774245KB and after transferring the SSD (and video card) to a different machine, I still experience the same problem. That machine's "machine memory" output contains Region 3: type 1 at 0x100000 for 3136000KB (both manually transcribed; photo for second at [0]; "new" machine's dmesg below signature, in case it helps). If I'm correctly guessing the meaning of that output, each machine has a region with nearly 3GB of memory before 4GB / 0x100000000. I don't know my way around the kernel but let me know if there's anything I can do to help. Also, I took a video of top updating itself comically slowly, one little chunk of text at a time: [1]. This time I passed -1SH so you can see pagedaemon at the top as expected. A quick description of the symptoms, since it's been a while: - Machine becomes almost completely unresponsive, then completely unresponsive. Even the mouse cursor gets sluggish then stops. - Hard disk light is on. - Example line from top (manually transcribed); note the tiny active amount and large free amount: Memory: Real: 36K/2132M act/tot free: 9746M Cache: 151M Swap: 877M/32G [0] https://photos.falsifian.org/photo/IJ1gRH7ERkW5/IMG_20241111_171352_436.jpg [1] https://photos.falsifian.org/video/PjdfzVzv3LAm/VID_20241111_165503.mp4 -- James OpenBSD 7.6-current (GENERIC.MP) #407: Fri Nov 1 20:31:42 MDT 2024 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 12859211776 (12263MB) avail mem = 12446150656 (11869MB) random: good seed from bootblocks mpath0 at root scsibus0 at mpath0: 256 targets mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xf0700 (81 entries) bios0: vendor American Megatrends Inc. version "0704" date 11/12/2009 bios0: ASUSTeK Computer INC. P6T DELUXE V2 acpi0 at bios0: ACPI 3.0 acpi0: sleep states S0 S1 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG OEMB HPET OSFR SSDT acpi0: wakeup devices NPE2(S4) NPE4(S4) NPE5(S4) NPE6(S4) NPE8(S4) NPE9(S4) NPEA(S4) P0P1(S4) USB0(S4) USB1(S4) USB2(S4) USB5(S4) EUSB(S4) USB3(S4) USB4(S4) USB6(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 24 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2672.88 MHz, 06-1a-04, patch 00000012 cpu0: cpuid 1 edx=bfebfbff<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> ecx=98e3bd<SSE3,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,POPCNT> cpu0: cpuid 6 eax=3<SENSOR> ecx=1<EFFFREQ> cpu0: cpuid a vers=3, gp=4, gpwidth=48, ff=3, ffwidth=48 cpu0: cpuid 80000001 edx=28100800<NXE,RDTSCP,LONG> ecx=1<LAHF> cpu0: cpuid 80000007 edx=100<ITSC> cpu0: MELTDOWN cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 4-way I-cache, 256KB 64b/line 8-way L2 cache, 8MB 64b/line 16-way L3 cache cpu0: smt 0, core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges cpu0: apic clock running at 133MHz cpu0: mwait min=64, max=64, C-substates=0.2.1.1, IBE cpu1 at mainbus0: apid 2 (application processor) cpu1: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2672.98 MHz, 06-1a-04, patch 00000012 cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 4 (application processor) cpu2: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.02 MHz, 06-1a-04, patch 00000012 cpu2: smt 0, core 2, package 0 cpu3 at mainbus0: apid 6 (application processor) cpu3: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.26 MHz, 06-1a-04, patch 00000012 cpu3: smt 0, core 3, package 0 cpu4 at mainbus0: apid 1 (application processor) cpu4: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.46 MHz, 06-1a-04, patch 00000012 cpu4: smt 1, core 0, package 0 cpu5 at mainbus0: apid 3 (application processor) cpu5: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.57 MHz, 06-1a-04, patch 00000012 cpu5: smt 1, core 1, package 0 cpu6 at mainbus0: apid 5 (application processor) cpu6: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.45 MHz, 06-1a-04, patch 00000012 cpu6: smt 1, core 2, package 0 cpu7 at mainbus0: apid 7 (application processor) cpu7: Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz, 2673.25 MHz, 06-1a-04, patch 00000012 cpu7: smt 1, core 3, package 0 ioapic0 at mainbus0: apid 8 pa 0xfec00000, version 20, 24 pins ioapic1 at mainbus0: apid 9 pa 0xfec8a000, version 20, 24 pins acpimcfg0 at acpi0 acpimcfg0: addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318179 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus -1 (NPE2) acpiprt2 at acpi0: bus -1 (NPE4) acpiprt3 at acpi0: bus -1 (NPE5) acpiprt4 at acpi0: bus -1 (NPE6) acpiprt5 at acpi0: bus -1 (NPE8) acpiprt6 at acpi0: bus -1 (NPE9) acpiprt7 at acpi0: bus -1 (NPEA) acpiprt8 at acpi0: bus 8 (P0P1) acpiprt9 at acpi0: bus 7 (P0P4) acpiprt10 at acpi0: bus -1 (P0P5) acpiprt11 at acpi0: bus 6 (P0P6) acpiprt12 at acpi0: bus -1 (P0P7) acpiprt13 at acpi0: bus 5 (P0P8) acpiprt14 at acpi0: bus 4 (P0P9) acpiprt15 at acpi0: bus 1 (NPE1) acpiprt16 at acpi0: bus 2 (NPE3) acpiprt17 at acpi0: bus 3 (NPE7) acpipci0 at acpi0 PCI0 acpicmos0 at acpi0 aibs0 at acpi0 RTMP RVLT RFAN GGRP GITM SITM aibs0: TSIF: 0: not a nameref: 257 type aibs0: TSIF: 1: not a nameref: 257 type aibs0: FSIF: 0: not a nameref: 257 type aibs0: FSIF: 1: not a nameref: 257 type aibs0: FSIF: 2: not a nameref: 257 type aibs0: FSIF: 3: not a nameref: 257 type aibs0: FSIF: 4: not a nameref: 257 type aibs0: VSIF: 0: not a nameref: 257 type aibs0: VSIF: 1: not a nameref: 257 type aibs0: VSIF: 2: not a nameref: 257 type aibs0: VSIF: 3: not a nameref: 257 type aibs0: no sensors found "pnp0c14" at acpi0 not configured acpibtn0 at acpi0: PWRB acpicpu0 at acpi0: C1(@1 halt!), PSS acpicpu1 at acpi0: C1(@1 halt!), PSS acpicpu2 at acpi0: C1(@1 halt!), PSS acpicpu3 at acpi0: C1(@1 halt!), PSS acpicpu4 at acpi0: C1(@1 halt!), PSS acpicpu5 at acpi0: C1(@1 halt!), PSS acpicpu6 at acpi0: C1(@1 halt!), PSS acpicpu7 at acpi0: C1(@1 halt!), PSS cpu0: using IvyBridge MDS workaround cpu0: Enhanced SpeedStep 2672 MHz: speeds: 2668, 2667, 2533, 2400, 2267, 2133, 2000, 1867, 1733, 1600 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "Intel X58 Host" rev 0x12 ppb0 at pci0 dev 1 function 0 "Intel X58 PCIE" rev 0x12: msi pci1 at ppb0 bus 1 ppb1 at pci0 dev 3 function 0 "Intel X58 PCIE" rev 0x12: msi pci2 at ppb1 bus 2 radeondrm0 at pci2 dev 0 function 0 "ATI Radeon HD 5450" rev 0x00 drm0 at radeondrm0 radeondrm0: msi azalia0 at pci2 dev 0 function 1 "ATI Radeon HD 5470 Audio" rev 0x00: msi azalia0: no supported codecs ppb2 at pci0 dev 7 function 0 "Intel X58 PCIE" rev 0x12: msi pci3 at ppb2 bus 3 nvme0 at pci3 dev 0 function 0 "SanDisk PC SN520" rev 0x01: msix, NVMe 1.3 nvme0: PC SN520 NVMe WDC 256GB, firmware 20220012, serial 1937B4803998 scsibus1 at nvme0: 2 targets, initiator 0 sd0 at scsibus1 targ 1 lun 0: <NVMe, PC SN520 NVMe WD, 2022> sd0: 244198MB, 512 bytes/sector, 500118192 sectors "Intel X58 Misc" rev 0x12 at pci0 dev 20 function 0 not configured "Intel X58 GPIO" rev 0x12 at pci0 dev 20 function 1 not configured "Intel X58 RAS" rev 0x12 at pci0 dev 20 function 2 not configured "Intel X58 Throttle" rev 0x12 at pci0 dev 20 function 3 not configured uhci0 at pci0 dev 26 function 0 "Intel 82801JI USB" rev 0x00: apic 8 int 16 uhci1 at pci0 dev 26 function 1 "Intel 82801JI USB" rev 0x00: apic 8 int 21 uhci2 at pci0 dev 26 function 2 "Intel 82801JI USB" rev 0x00: apic 8 int 19 ehci0 at pci0 dev 26 function 7 "Intel 82801JI USB" rev 0x00: apic 8 int 18 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 azalia1 at pci0 dev 27 function 0 "Intel 82801JI HD Audio" rev 0x00: msi azalia1: codecs: Analog Devices AD1989B audio0 at azalia1 ppb3 at pci0 dev 28 function 0 "Intel 82801JI PCIE" rev 0x00: msi pci4 at ppb3 bus 7 ppb4 at pci0 dev 28 function 2 "Intel 82801JI PCIE" rev 0x00: msi pci5 at ppb4 bus 6 mskc0 at pci5 dev 0 function 0 "Marvell Yukon 88E8056" rev 0x12, Yukon-2 EC Ultra rev. B0 (0x3): msi msk0 at mskc0 port A: address 00:24:8c:52:e5:48 eephy0 at msk0 phy 0: 88E1149, rev. 1 ppb5 at pci0 dev 28 function 4 "Intel 82801JI PCIE" rev 0x00: msi pci6 at ppb5 bus 5 pciide0 at pci6 dev 0 function 0 "Marvell 88SE6121 SATA" rev 0xb2: DMA (unsupported), channel 0 configured to native-PCI, channel 1 configured to native-PCI pciide0: using apic 8 int 16 for native-PCI interrupt pciide0: channel 0 ignored (not responding; disabled or no drives?) pciide0: channel 1 ignored (not responding; disabled or no drives?) ppb6 at pci0 dev 28 function 5 "Intel 82801JI PCIE" rev 0x00: msi pci7 at ppb6 bus 4 mskc1 at pci7 dev 0 function 0 "Marvell Yukon 88E8056" rev 0x12, Yukon-2 EC Ultra rev. B0 (0x3): msi msk1 at mskc1 port A: address 00:24:8c:52:e5:47 eephy1 at msk1 phy 0: 88E1149, rev. 1 uhci3 at pci0 dev 29 function 0 "Intel 82801JI USB" rev 0x00: apic 8 int 23 uhci4 at pci0 dev 29 function 1 "Intel 82801JI USB" rev 0x00: apic 8 int 19 uhci5 at pci0 dev 29 function 2 "Intel 82801JI USB" rev 0x00: apic 8 int 18 ehci1 at pci0 dev 29 function 7 "Intel 82801JI USB" rev 0x00: apic 8 int 23 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 addr 1 ppb7 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x90 pci8 at ppb7 bus 8 "VIA VT6306 FireWire" rev 0xc0 at pci8 dev 2 function 0 not configured pcib0 at pci0 dev 31 function 0 "Intel 82801JIR LPC" rev 0x00 ahci0 at pci0 dev 31 function 2 "Intel 82801JI AHCI" rev 0x00: msi, AHCI 1.2 ahci0: port 3: 3.0Gb/s scsibus2 at ahci0: 32 targets sd1 at scsibus2 targ 3 lun 0: <ATA, WDC WDS100T2B0A, 4150> naa.5001b448b53807dd sd1: 953869MB, 512 bytes/sector, 1953525168 sectors, thin ichiic0 at pci0 dev 31 function 3 "Intel 82801JI SMBus" rev 0x00: apic 8 int 18 iic0 at ichiic0 iic0: addr 0x1e 01=01 02=01 11=01 12=01 21=01 22=01 31=01 32=01 words 00=0001 01=0101 02=0100 03=0000 04=0000 05=0000 06=0000 07=0000 iic0: addr 0x20 01=80 02=17 03=7f 10=00 19=b0 20=20 21=00 25=20 26=b2 38=74 39=03 4a=99 6a=2c 78=02 79=08 7a=00 7b=00 7e=82 80=20 8b=37 8c=13 96=9f 99=41 9a=98 9b=01 d0=00 d1=03 d2=72 d3=72 d4=03 d5=02 d6=01 d7=87 d8=27 d9=00 da=00 db=00 dc=00 dd=00 de=00 df=10 e0=00 e1=00 e2=10 e3=0c e4=10 e5=10 e6=17 e7=10 e8=10 e9=10 ea=10 ec=07 ee=00 ef=00 f1=0f f5=01 f6=02 f9=cd fa=c0 fb=50 words 00=ffff 01=8037 02=1766 03=7fff 04=ffff 05=ffff 06=ffff 07=ffff spdmem0 at iic0 addr 0x50: 2GB DDR3 SDRAM PC3-10600 spdmem1 at iic0 addr 0x51: 2GB DDR3 SDRAM PC3-10600 spdmem2 at iic0 addr 0x52: 2GB DDR3 SDRAM PC3-10600 spdmem3 at iic0 addr 0x53: 2GB DDR3 SDRAM PC3-10600 spdmem4 at iic0 addr 0x54: 2GB DDR3 SDRAM PC3-10600 spdmem5 at iic0 addr 0x55: 2GB DDR3 SDRAM PC3-10600 usb2 at uhci0: USB revision 1.0 uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb3 at uhci1: USB revision 1.0 uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb4 at uhci2: USB revision 1.0 uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb5 at uhci3: USB revision 1.0 uhub5 at usb5 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb6 at uhci4: USB revision 1.0 uhub6 at usb6 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 usb7 at uhci5: USB revision 1.0 uhub7 at usb7 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 pckbc0 at isa0 port 0x60/5 irq 1 irq 12 pckbd0 at pckbc0 (kbd slot) wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 lm0 at isa0 port 0x290/8: W83627DHG vmm0 at mainbus0: VMX/EPT (using slow L1TF mitigation) uhub8 at uhub0 port 5 configuration 1 interface 0 "NEC hub" rev 2.00/1.00 addr 2 umass0 at uhub1 port 3 configuration 1 interface 0 " Patriot Memory" rev 2.00/1.10 addr 2 umass0: using SCSI over Bulk-Only scsibus3 at umass0: 2 targets, initiator 0 sd2 at scsibus3 targ 1 lun 0: <, Patriot Memory, PMAP> removable serial.13fe1e0007781FA7021F sd2: 1968MB, 512 bytes/sector, 4030464 sectors uhub9 at uhub1 port 6 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" rev 2.00/77.63 addr 3 uhidev0 at uhub9 port 3 configuration 1 interface 0 "ZSA Ergodox EZ" rev 1.10/0.01 addr 4 uhidev0: iclass 3/1 ukbd0 at uhidev0: 8 variable keys, 6 key codes wskbd1 at ukbd0 mux 1 uhidev1 at uhub9 port 3 configuration 1 interface 1 "ZSA Ergodox EZ" rev 1.10/0.01 addr 4 uhidev1: iclass 3/0, 5 report ids uhid0 at uhidev1 reportid 3: input=2, output=0, feature=0 ucc0 at uhidev1 reportid 4: 668 usages, 20 keys, array wskbd2 at ucc0 mux 1 ukbd1 at uhidev1 reportid 5: 128 variable keys, 0 key codes wskbd3 at ukbd1 mux 1 uhidev2 at uhub9 port 4 configuration 1 interface 0 "Kensington Kensington Expert Mouse" rev 1.10/2.01 addr 5 uhidev2: iclass 3/1 ums0 at uhidev2: 4 buttons, Z dir wsmouse0 at ums0 mux 0 vscsi0 at root scsibus4 at vscsi0: 256 targets softraid0 at root scsibus5 at softraid0: 256 targets sd3 at scsibus5 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006> sd3: 391167MB, 512 bytes/sector, 801111803 sectors softraid0: volume sd3 is roaming, it used to be sd2, updating metadata root on sd3a (676fc55ae679a444.a) swap on sd3b dump on sd3b WARNING: / was not properly unmounted radeondrm0: CEDAR radeon_audio_component_init: stub radeondrm0: 1920x1080, 32bpp wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wskbd1: connecting to wsdisplay0 wskbd2: connecting to wsdisplay0 wskbd3: connecting to wsdisplay0 wsdisplay0: screen 1-5 added (std, vt100 emulation)