On Jul 03 10:32:29, Amit Kulkarni wrote: > > This is 5.1-beta/i386 on an ALIX about five years old, > > running as my home server. > > > > Recently, processes started to die for reasons unknown, as in > > > > pid 20260 (postgres): user write of 118784@0x28052000 at 159088 failed: 14 > > pid 1872 (cron): user write of 118784@0x2b1e3000 at 30224 failed: 14 > > > > 14 is EFAULT as per sys/errno,h > > - what can be causing it? > > first check if filesystem is full.
Filesystem Size Used Avail Capacity Mounted on /dev/wd0a 196M 113M 73.6M 61% / /dev/wd0d 490M 421M 44.2M 90% /usr /dev/wd0e 1.6G 382M 1.1G 25% /usr/local /dev/wd0g 48.5M 7.4M 38.7M 16% /var /dev/wd0h 49.0M 22.8M 23.7M 49% /var/log /dev/wd0i 49.0M 20.2M 26.4M 43% /var/mail /dev/wd0j 197M 23.6M 164M 13% /var/mysql /dev/wd0k 97.8M 39.9M 53.0M 43% /var/postgresql /dev/wd0l 49.0M 16.3M 30.3M 35% /var/spool /dev/wd0m 4.9G 3.3G 1.3G 71% /var/www /dev/wd0n 1005M 34.0K 954M 0% /tmp /dev/wd0o 5.0G 2.9G 1.8G 61% /home Can you please elaborate how a lack of disk space would result in an EFAULT? > how much is swap configured? swapctl: no swap devices configured The machine doesn't do much, and so far the 128M of RAM was enough. I will reinstall with a swap partition if it makes a difference - should lack of swap result in an EFAULT? Jan > > It usually happens under a stress (the machine is pretty scarse > > on resources, so 'stress' can be accepting a batch of DNS queries). > > For example, the postgres EFAULT above happened exactly when a batch > > of emails arrived. > > > > Is this a memory problem? My login.conf limits all classes > > to datasize-cur=100M. Can this be a memory HW problem? > > > > Jan > > > > > > > > OpenBSD 5.1-beta (GENERIC) #140: Sat Jan 21 00:40:23 MST 2012 > > dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC > > cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) > > 432 MHz > > cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX,MMXX,3DNOW2,3DNOW > > real mem = 133758976 (127MB) > > avail mem = 121544704 (115MB) > > mainbus0 at root > > bios0 at mainbus0: AT/286+ BIOS, date 12/10/07, BIOS32 rev. 0 @ 0xfceb2 > > pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000 > > pcibios0: pcibios_get_intr_routing - function not supported > > pcibios0: PCI IRQ Routing information unavailable. > > pcibios0: PCI bus #0 is the last bus > > bios0: ROM list: 0xe0000/0xa800 > > cpu0 at mainbus0: (uniprocessor) > > pci0 at mainbus0 bus 0: configuration mode 1 (bios) > > pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x31 > > glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES > > vr0 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, > > address 00:0d:b9:12:9f:2c > > ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI > > 0x004063, model 0x0034 > > vr1 at pci0 dev 10 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11, > > address 00:0d:b9:12:9f:2d > > ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI > > 0x004063, model 0x0034 > > vr2 at pci0 dev 11 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12, > > address 00:0d:b9:12:9f:2e > > ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI > > 0x004063, model 0x0034 > > ral0 at pci0 dev 12 function 0 "Ralink RT2560" rev 0x01: irq 9, address > > 00:11:09:0d:d3:36 > > ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525 > > glxpcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03: rev 3, 32-bit > > 3579545Hz timer, watchdog, gpio > > gpio0 at glxpcib0: 32 pins > > pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 > > wired to compatibility, channel 1 wired to compatibility > > wd0 at pciide0 channel 0 drive 0: <LEXAR ATA FLASH CARD> > > wd0: 1-sector PIO, LBA, 15263MB, 31260096 sectors > > wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 > > pciide0: channel 1 ignored (disabled) > > ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 15, version > > 1.0, legacy support > > ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 15 > > usb0 at ehci0: USB revision 2.0 > > uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 > > isa0 at glxpcib0 > > isadma0 at isa0 > > com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo > > com0: console > > pcppi0 at isa0 port 0x61 > > spkr0 at pcppi0 > > npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 > > usb1 at ohci0: USB revision 1.0 > > uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1 > > mtrr: K6-family MTRR support (2 registers) > > nvram: invalid checksum > > vscsi0 at root > > scsibus0 at vscsi0: 256 targets > > softraid0 at root > > scsibus1 at softraid0: 256 targets > > root on wd0a (5bea3261eefd6b7e.a) swap on wd0b dump on wd0b > > clock: unknown CMOS layout > > ral0: device timeout > > pid 20260 (postgres): user write of 118784@0x28052000 at 159088 failed: 14 > > pid 1872 (cron): user write of 118784@0x2b1e3000 at 30224 failed: 14