On Mon, Jan 03, 2011 at 04:07:09PM +0200, jin&hitman&Barracuda wrote:

> Hi.
> I have a problem in computer memory results.
> My computer has got 3.5Gbyte Ram, but memory amount seems 2.6 Gbyte on some
> command output.
> How could i fix this ?
> Here is the "Dmesg output" and "faulty result".

Roughly speaking, vmstat only shows available mem *for processes*,
that is, mem that isn't reserved by the kernel for the buffer cache
and other usefull things.  Also, currently we have some limitation to
address all physical mem, as can be seen on the mem lines in the
dmesg. The kernel only "sees" about 3G of your mem. 

        -Otto

> -- 
> 
> bash-4.1# dmesg
> OpenBSD 4.8 (GENERIC.MP) #359: Mon Aug 16 09:16:26 MDT 2010
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ ("AuthenticAMD"
> 686-class, 512KB L2 cache) 2.41 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
> real mem  = 3220598784 (3071MB)
> avail mem = 3157938176 (3011MB)
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 04/07/08, BIOS32 rev. 0 @ 0xf0010,
> SMBIOS rev. 2.5 @ 0xfc320 (54 entries)
> bios0: vendor MS-7250 version "V3.10" date 04/07/2008
> bios0: MSI MS-7250
> acpi0 at bios0: rev 0
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP APIC MCFG OEMB HPET SSDT
> acpi0: wakeup devices PS2K(S4) PS2M(S4) NSMB(S4) USB0(S4) USB2(S3) NMAC(S5)
> NMAD(S5) P0P1(S4) HDAC(S4) BR10(S4) BR11(S4) BR12(S4) BR13(S4) BR14(S4)
> BR15(S4) SLPB(S4)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 200MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ ("AuthenticAMD"
> 686-class, 512KB L2 cache) 2.41 GHz
> cpu1:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,CX16
> ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 11, 24 pins
> acpihpet0 at acpi0: 25000000 Hz
> acpiprt0 at acpi0: bus 0 (PCI0)
> acpiprt1 at acpi0: bus 1 (P0P1)
> acpiprt2 at acpi0: bus 7 (BR10)
> acpiprt3 at acpi0: bus 6 (BR11)
> acpiprt4 at acpi0: bus 5 (BR12)
> acpiprt5 at acpi0: bus 4 (BR13)
> acpiprt6 at acpi0: bus 3 (BR14)
> acpiprt7 at acpi0: bus 2 (BR15)
> acpicpu0 at acpi0: PSS
> acpicpu1 at acpi0: PSS
> acpibtn0 at acpi0: SLPB
> acpibtn1 at acpi0: PWRB
> bios0: ROM list: 0xc0000/0x10000
> cpu0: PowerNow! K8 2407 MHz: speeds: 2400 2200 2000 1800 1000 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> "NVIDIA MCP55 Memory" rev 0xa2 at pci0 dev 0 function 0 not configured
> pcib0 at pci0 dev 1 function 0 "NVIDIA MCP55 ISA" rev 0xa3
> nviic0 at pci0 dev 1 function 1 "NVIDIA MCP55 SMBus" rev 0xa3
> iic0 at nviic0
> spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-6400CL5
> spdmem1 at iic0 addr 0x51: 1GB DDR2 SDRAM non-parity PC2-5300CL5
> spdmem2 at iic0 addr 0x53: 512MB DDR2 SDRAM non-parity PC2-5300CL5
> iic1 at nviic0
> iic1: addr 0x2f 00=c0 01=0f 02=02 03=01 04=07 05=00 06=18 07=00 08=00 14=14
> 15=62 16=02 17=05 words 00=c0ff 01=0fff 02=02ff 03=01ff 04=07ff 05=00ff
> 06=18ff 07=00ff
> admtemp0 at iic1 addr 0x4c: gl523sm
> ohci0 at pci0 dev 2 function 0 "NVIDIA MCP55 USB" rev 0xa1: apic 2 int 10
> (irq 10), version 1.0, legacy support
> ehci0 at pci0 dev 2 function 1 "NVIDIA MCP55 USB" rev 0xa2: apic 2 int 11
> (irq 11)
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "NVIDIA EHCI root hub" rev 2.00/1.00 addr 1
> pciide0 at pci0 dev 4 function 0 "NVIDIA MCP55 IDE" rev 0xa1: DMA, channel 0
> configured to compatibility, channel 1 configured to compatibility
> wd0 at pciide0 channel 0 drive 0: <Maxtor 6E040L0>
> wd0: 16-sector PIO, LBA, 39202MB, 80287039 sectors
> wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 6
> pciide0: channel 1 ignored (disabled)
> pciide1 at pci0 dev 5 function 0 "NVIDIA MCP55 SATA" rev 0xa3: DMA
> pciide1: using apic 2 int 5 (irq 5) for native-PCI interrupt
> wd1 at pciide1 channel 0 drive 0: <SAMSUNG HD161HJ>
> wd1: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
> wd1(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 6
> pciide2 at pci0 dev 5 function 1 "NVIDIA MCP55 SATA" rev 0xa3: DMA
> pciide2: using apic 2 int 10 (irq 10) for native-PCI interrupt
> pciide3 at pci0 dev 5 function 2 "NVIDIA MCP55 SATA" rev 0xa3: DMA
> pciide3: using apic 2 int 10 (irq 10) for native-PCI interrupt
> atapiscsi0 at pciide3 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CDDVDW SH-S223C, SB04> ATAPI
> 5/cdrom removable
> cd0(pciide3:0:0): using PIO mode 4, Ultra-DMA mode 5
> wd2 at pciide3 channel 1 drive 0: <ST3320613AS>
> wd2: 16-sector PIO, LBA48, 305245MB, 625142448 sectors
> wd2(pciide3:1:0): using PIO mode 4, Ultra-DMA mode 6
> ppb0 at pci0 dev 6 function 0 "NVIDIA MCP55 PCI-PCI" rev 0xa2
> pci1 at ppb0 bus 1
> vendor "Techsan Electronics", unknown product 0x2103 (class network subclass
> miscellaneous, rev 0x02) at pci1 dev 1 function 0 not configured
> azalia0 at pci0 dev 6 function 1 "NVIDIA MCP55 HD Audio" rev 0xa2: apic 2
> int 11 (irq 11)
> azalia0: codecs: Realtek ALC888
> audio0 at azalia0
> nfe0 at pci0 dev 8 function 0 "NVIDIA MCP55 LAN" rev 0xa3: apic 2 int 5 (irq
> 5), address 00:1d:92:33:cc:f7
> ciphy0 at nfe0 phy 0: VSC8601 10/100/1000 PHY, rev. 1
> nfe1 at pci0 dev 9 function 0 "NVIDIA MCP55 LAN" rev 0xa3: apic 2 int 10
> (irq 10), address 00:1d:92:33:cc:f8
> ciphy1 at nfe1 phy 1: VSC8601 10/100/1000 PHY, rev. 1
> ppb1 at pci0 dev 10 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci2 at ppb1 bus 2
> ppb2 at pci0 dev 11 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci3 at ppb2 bus 3
> ppb3 at pci0 dev 12 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci4 at ppb3 bus 4
> ppb4 at pci0 dev 13 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci5 at ppb4 bus 5
> ppb5 at pci0 dev 14 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci6 at ppb5 bus 6
> ppb6 at pci0 dev 15 function 0 "NVIDIA MCP55 PCIE" rev 0xa3
> pci7 at ppb6 bus 7
> vga1 at pci7 dev 0 function 0 "ATI Radeon HD 2600 XT" rev 0x00
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> radeondrm0 at vga1: apic 2 int 10 (irq 10)
> drm0 at radeondrm0
> azalia1 at pci7 dev 0 function 1 "ATI Radeon HD 2600 HD Audio" rev 0x00:
> apic 2 int 11 (irq 11)
> azalia1: no supported codecs
> azalia1: initialization failure, detaching
> pchb0 at pci0 dev 24 function 0 "AMD AMD64 0Fh HyperTransport" rev 0x00
> pchb1 at pci0 dev 24 function 1 "AMD AMD64 0Fh Address Map" rev 0x00
> pchb2 at pci0 dev 24 function 2 "AMD AMD64 0Fh DRAM Cfg" rev 0x00
> kate0 at pci0 dev 24 function 3 "AMD AMD64 0Fh Misc Cfg" rev 0x00: core rev
> JH-F3
> isa0 at pcib0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pmsi0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pmsi0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> lpt0 at isa0 port 0x378/4 irq 7
> wbsio0 at isa0 port 0x4e/2: W83627EHF rev 0x68
> lm1 at wbsio0 port 0xa10/8: W83627EHF
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> usb1 at ohci0: USB revision 1.0
> uhub1 at usb1 "NVIDIA OHCI root hub" rev 1.00/1.00 addr 1
> mtrr: Pentium Pro MTRR support
> umass0 at uhub0 port 8 configuration 1 interface 0 "Philips SPD5230CC" rev
> 2.00/0.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus1 at umass0: 2 targets, initiator 0
> sd0 at scsibus1 targ 1 lun 0: <Hitachi, HTS541616J9AT00, SB4O> SCSI0
> 0/direct fixed
> sd0: 152627MB, 512 bytes/sec, 312581808 sec total
> softraid0 at root
> root on wd0a swap on wd0b dump on wd0b
> 
> bash-4.1# vmstat
>  procs    memory       page                    disks    traps          cpu
>  r b w    avm     fre  flt  re  pi  po  fr  sr wd0 wd1  int   sys   cs us sy
> id
>  1 0 0 288492 2474064  388   0   0   0   0   0   7   0   73  7686  614  5  1
> 94
> 
> 
> Thanks

Reply via email to