On Sat, Nov 14, 2020 at 02:26:47AM +0200, Mihai Popescu wrote:
> Hello,
>
> My computer has 2 x 4GB memory, as one can see in dmesg. A part of it is
> used by the video card, I'm not sure how much, maybe around 256MB or less I
> want to know if I will hit the swap space when I will let it run on 1 x 4GB
> memory, but I'm not sure how to interpret some of the following outputs or
> if I need to run other commands:
>
> $ dmesg
> OpenBSD 6.8-current (GENERIC.MP) #175: Wed Nov 11 10:02:40 MST 2020
> [email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
> real mem = 8029429760 (7657MB)
> avail mem = 7770787840 (7410MB)
> [ ... ]
> spdmem0 at iic0 addr 0x52: 4GB DDR3 SDRAM PC3-10600
> spdmem1 at iic0 addr 0x53: 4GB DDR3 SDRAM PC3-10600
> [ ... ]
>
> $ systat
> 1 users Load 0.19 0.37 0.31 thinkc.my.domain
> 02:23:22
>
> memory totals (in KB) PAGING SWAPPING
> Interrupts
> real virtual free in out in out 360
> total
> Active 1530836 1530836 2928304 ops 100
> clock
> All 4668644 4668644 11031684 pages 237 ipi
>
> radeondr
> Proc:r d s w Csw Trp Sys Int Sof Flt forks 13
> ahci0
> 2 259 769 746 3040 22 288 520 fkppw
> ohci0
> fksvm
> ehci0
> 0.0%Int 0.1%Spn 1.1%Sys 5.1%Usr 93.7%Idle pwait 8
> ohci1
> | | | | | | | | | | | 175 relck
> ehci1
> =>> 175 rlkok
> azalia0
> noram
> ohci2
> Namei Sys-cache Proc-cache No-cache 56 ndcpy 2 bge0
> Calls hits % hits % miss % fltcp
> ohci3
> 102 79 77 22 22 295 zfod
> pckbc0
> cow
> Disks sd0 cd0 63307 fmin
> seeks 84409 ftarg
> xfers 26 itarg
> speed 410K 2 wired 3
> IPKTS
> sec 0.0 pdfre 1
> OPKTS
>
> $ vmstat
> procs memory page disks traps cpu
> r s avm fre flt re pi po fr sr sd0 cd0 int sys cs us sy
> id
> 1 259 1504M 2848M 1450 0 0 0 0 0 2 0 174 13338 3982 13 3
> 83
vmstat only swows pi an po, pages paged in and out, not swap usage.
For sysyat: the vmstat view does not show swap usage, but it does show
paging/swap traffic. The swap view does (per swap device), as does the
uvm view (swpginuse, this is a total swap pages in use).
top also shows swap usage.
-Otto