I expected "machine memory =1G" to reduce the memory size of this system from 8GB to 1GB. After the first invocation, free memory is reduced to ~6GB. The second invocation results in the expected ~1GB free memory.
My intention is to limit the size of a subsequent crash dump. I'm surprised it took two invocations to get the expected results. Thanks in advance for helping me better understand this issue. syncing disks... done rebooting... >> OpenBSD/amd64 BOOT 3.23 boot> machine memory Region 0: type 1 at 0x0 for 630KB Region 1: type 2 at 0x9d800 for 10KB Region 2: type 2 at 0xe0000 for 128KB Region 3: type 1 at 0x100000 for 3135984KB Region 4: type 4 at 0xbf77c000 for 288KB Region 5: type 3 at 0xbf7c4000 for 32KB Region 6: type 2 at 0xbf7cc000 for 16KB Region 7: type 4 at 0xbf7d0000 for 16KB Region 8: type 2 at 0xbf7d4000 for 2496KB Region 9: type 4 at 0xbfa44000 for 28KB Region 10: type 2 at 0xbfa4b000 for 160KB Region 11: type 4 at 0xbfa73000 for 2060KB Region 12: type 1 at 0xbfc76000 for 2600KB Region 13: type 1 at 0x100001000 for 4964348KB Region 14: type 2 at 0xe0000000 for 262144KB Region 15: type 2 at 0xfec00000 for 4KB Region 16: type 2 at 0xfec10000 for 4KB Region 17: type 2 at 0xfed00000 for 4KB Region 18: type 2 at 0xfed61000 for 64KB Region 19: type 2 at 0xfed80000 for 64KB Region 20: type 2 at 0xff000000 for 16384KB Low ram: 630KB High ram: 3135984KB Total free memory: 8103562KB boot> machine memory =1G Region 0: type 1 at 0x0 for 630KB Region 1: type 2 at 0x9d800 for 10KB Region 2: type 2 at 0xe0000 for 128KB Region 3: type 1 at 0x100000 for 1047552KB Region 4: type 4 at 0xbf77c000 for 288KB Region 5: type 3 at 0xbf7c4000 for 32KB Region 6: type 2 at 0xbf7cc000 for 16KB Region 7: type 4 at 0xbf7d0000 for 16KB Region 8: type 2 at 0xbf7d4000 for 2496KB Region 9: type 4 at 0xbfa44000 for 28KB Region 10: type 2 at 0xbfa4b000 for 160KB Region 11: type 4 at 0xbfa73000 for 2060KB Region 12: type 1 at 0x100001000 for 4964348KB Region 13: type 2 at 0xe0000000 for 262144KB Region 14: type 2 at 0xfec00000 for 4KB Region 15: type 2 at 0xfec10000 for 4KB Region 16: type 2 at 0xfed00000 for 4KB Region 17: type 2 at 0xfed61000 for 64KB Region 18: type 2 at 0xfed80000 for 64KB Region 19: type 2 at 0xff000000 for 16384KB Low ram: 630KB High ram: 3135984KB Total free memory: 6012530KB boot> machine memory =1G Region 0: type 1 at 0x0 for 630KB Region 1: type 2 at 0x9d800 for 10KB Region 2: type 2 at 0xe0000 for 128KB Region 3: type 1 at 0x100000 for 1047552KB Region 4: type 4 at 0xbf77c000 for 288KB Region 5: type 3 at 0xbf7c4000 for 32KB Region 6: type 2 at 0xbf7cc000 for 16KB Region 7: type 4 at 0xbf7d0000 for 16KB Region 8: type 2 at 0xbf7d4000 for 2496KB Region 9: type 4 at 0xbfa44000 for 28KB Region 10: type 2 at 0xbfa4b000 for 160KB Region 11: type 4 at 0xbfa73000 for 2060KB Region 12: type 2 at 0xe0000000 for 262144KB Region 13: type 2 at 0xfec00000 for 4KB Region 14: type 2 at 0xfec10000 for 4KB Region 15: type 2 at 0xfed00000 for 4KB Region 16: type 2 at 0xfed61000 for 64KB Region 17: type 2 at 0xfed80000 for 64KB Region 18: type 2 at 0xff000000 for 16384KB Low ram: 630KB High ram: 3135984KB Total free memory: 1048182KB boot> boot booting hd0a:/bsd: 6503036+1639852+1076056+0+623264 [80+552312+368725]=0xe453c0 entry point at 0x10001e0 [7205c766, 34000004, 24448b12, b958a304] [ using 921888 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2013 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 5.4-current (GENERIC.MP) #44: Mon Aug 19 17:02:07 MDT 2013 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 1056964608 (1008MB) avail mem = 1020780544 (973MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeb0c0 (17 entries) bios0: vendor American Megatrends Inc. version "P1.60" date 05/29/2012 bios0: ASRock A75M-ITX acpi0 at bios0: rev 2 acpi0: sleep states S0 S3 S4 S5 acpi0: tables DSDT FACP APIC MCFG AAFT HPET SSDT SSDT acpi0: wakeup devices SBAZ(S4) CIR_(S3) PS2K(S4) PS2M(S4) UAR1(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) XHC0(S4) XHC1(S4) [...] acpitimer0 at acpi0: 3579545 Hz, 32 bits acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD A6-3500 APU with Radeon(tm) HD Graphics, 2096.45 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: AMD erratum 721 detected and fixed cpu0: smt 0, core 0, package 0 cpu0: apic clock running at 199MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD A6-3500 APU with Radeon(tm) HD Graphics, 2096.19 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu1: AMD erratum 721 detected and fixed cpu1: smt 0, core 1, package 0 cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD A6-3500 APU with Radeon(tm) HD Graphics, 2096.19 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 1MB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu2: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu2: AMD erratum 721 detected and fixed cpu2: smt 0, core 2, package 0 ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 21, 24 pins acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255 acpihpet0 at acpi0: 14318180 Hz acpiprt0 at acpi0: bus 0 (PCI0) acpiprt1 at acpi0: bus 2 (PE20) acpiprt2 at acpi0: bus -1 (PE21) acpiprt3 at acpi0: bus -1 (PE22) acpiprt4 at acpi0: bus -1 (PE23) acpiprt5 at acpi0: bus -1 (PCE2) acpicpu0 at acpi0: C2, PSS acpicpu1 at acpi0: C2, PSS acpicpu2 at acpi0: C2, PSS acpibtn0 at acpi0: PWRB cpu0: 2096 MHz: speeds: 2100 1900 1600 1400 1200 1000 800 MHz pci0 at mainbus0 bus 0 pchb0 at pci0 dev 0 function 0 "AMD AMD64 12h Host" rev 0x00 radeondrm0 at pci0 dev 1 function 0 "ATI Radeon HD 6530D" rev 0x00: apic 4 int 18 drm0 at radeondrm0 azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6500D HD Audio" rev 0x00: msi azalia0: no supported codecs "AMD Hudson-2 xHCI" rev 0x03 at pci0 dev 16 function 0 not configured "AMD Hudson-2 xHCI" rev 0x03 at pci0 dev 16 function 1 not configured ahci0 at pci0 dev 17 function 0 "AMD Hudson-2 SATA" rev 0x40: msi, AHCI 1.3 scsibus0 at ahci0: 32 targets sd0 at scsibus0 targ 0 lun 0: <ATA, ST3808110AS, 3.AA> SCSI3 0/direct fixed t10.ATA_ST3808110AS_5LR250N5 sd0: 76319MB, 512 bytes/sector, 156301488 sectors sd1 at scsibus0 targ 1 lun 0: <ATA, ST3250620AS, 3.AA> SCSI3 0/direct fixed t10.ATA_ST3250620AS_5QE0N070 sd1: 238475MB, 512 bytes/sector, 488397168 sectors sd2 at scsibus0 targ 2 lun 0: <ATA, ST500DM002-1BD14, KC44> SCSI3 0/direct fixed naa.5000c500443ee774 sd2: 476940MB, 512 bytes/sector, 976773168 sectors ohci0 at pci0 dev 18 function 0 "AMD Hudson-2 USB" rev 0x11: apic 4 int 18, version 1.0, legacy support ehci0 at pci0 dev 18 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 4 int 17 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1 ohci1 at pci0 dev 19 function 0 "AMD Hudson-2 USB" rev 0x11: apic 4 int 18, version 1.0, legacy support ehci1 at pci0 dev 19 function 2 "AMD Hudson-2 USB2" rev 0x11: apic 4 int 17 usb1 at ehci1: USB revision 2.0 uhub1 at usb1 "AMD EHCI root hub" rev 2.00/1.00 addr 1 piixpm0 at pci0 dev 20 function 0 "AMD Hudson-2 SMBus" rev 0x13: polling iic0 at piixpm0 spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 pciide0 at pci0 dev 20 function 1 "AMD Hudson-2 IDE" rev 0x00: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility azalia1 at pci0 dev 20 function 2 "AMD Hudson-2 HD Audio" rev 0x01: apic 4 int 16 azalia1: codecs: Realtek/0x0892 audio0 at azalia1 pcib0 at pci0 dev 20 function 3 "AMD Hudson-2 LPC" rev 0x11 ppb0 at pci0 dev 20 function 4 "AMD Hudson-2 PCI" rev 0x40 pci1 at ppb0 bus 1 ohci2 at pci0 dev 20 function 5 "AMD Hudson-2 USB" rev 0x11: apic 4 int 18, version 1.0, legacy support ppb1 at pci0 dev 21 function 0 "AMD Hudson-2 PCIE" rev 0x00 pci2 at ppb1 bus 2 re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 4 int 16, address bc:5f:f4:1f:1e:3c rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5 pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43 pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00 pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00 km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00 pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00 pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00 pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00 pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00 usb2 at ohci0: USB revision 1.0 uhub2 at usb2 "AMD OHCI root hub" rev 1.00/1.00 addr 1 usb3 at ohci1: USB revision 1.0 uhub3 at usb3 "AMD OHCI root hub" rev 1.00/1.00 addr 1 isa0 at pcib0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pcppi0 at isa0 port 0x61 spkr0 at pcppi0 wbsio0 at isa0 port 0x2e/2: NCT6776F rev 0x33 lm1 at wbsio0 port 0x290/8: NCT6776F usb4 at ohci2: USB revision 1.0 uhub4 at usb4 "AMD OHCI root hub" rev 1.00/1.00 addr 1 mtrr: Pentium Pro MTRR support vscsi0 at root scsibus1 at vscsi0: 256 targets softraid0 at root scsibus2 at softraid0: 256 targets root on sd2a (d638bee5601eac13.a) swap on sd2b dump on sd2b drm: initializing kernel modesetting (SUMO 0x1002:0x964A 0x1849:0x9640). radeondrm0: VRAM: 256M 0x0000000000000000 - 0x000000000FFFFFFF (256M used) radeondrm0: GTT: 512M 0x0000000010000000 - 0x000000002FFFFFFF ttm_pool_mm_shrink_init stub drm: PCIE GART of 512M enabled (table at 0x0000000000040000). drm: Internal thermal controller without fan control radeon_hwmon_init partial stub radeondrm0: 1024x768 wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (std, vt100 emulation) Fast boot: skipping disk checks. setting tty flags pf enabled ddb.console: 0 -> 1 ddb.max_line: 24 -> 0 vm.swapencrypt.enable: 1 -> 0 vfs.nfs.iothreads: -1 -> 4 kern.nosuidcoredump: 1 -> 2 machdep.allowaperture: 0 -> 2 machdep.kbdreset: 0 -> 1 kern.usermount: 0 -> 1 kern.shminfo.shmall: 8192 -> 32768 kern.shminfo.shmall: 32768 -> 51200 kern.shminfo.shmmni: 128 -> 1024 starting network DHCPREQUEST on re0 to 255.255.255.255 port 67 DHCPACK from 10.1.2.18 (14:da:e9:b5:84:cf) bound to 10.1.2.30 -- renewal in 302400 seconds. starting early daemons: syslogd pflogd named ntpd. starting RPC daemons: portmap mountd nfsd lockd. savecore: no core dump checking quotas: done. clearing /tmp starting pre-securelevel daemons:. setting kernel security level: kern.securelevel: 0 -> 1 creating runtime link editor directory cache. preserving editor files. starting network daemons: sshd lpd smtpd inetd sndiod. starting package daemons: smbd nmbd dbus_daemon apcupsd dovecot. starting local daemons: apmd sensorsd cron wsmoused. Fri Aug 23 17:54:18 EDT 2013