*BSD News Article 87738


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!vixen.cso.uiuc.edu!ux9.cso.uiuc.edu!not-for-mail
From: igor@students.uiuc.edu (igor vladimirovich roshchin)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Swapping problems ?
Date: 29 Jan 1997 03:17:43 GMT
Organization: University of Illinois at Urbana
Lines: 67
Message-ID: <5cmfgn$5ql@vixen.cso.uiuc.edu>
NNTP-Posting-Host: ux9.cso.uiuc.edu
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34678


Hello!

I've got a problem with the memory management.

Swap doesn't seem to be used effectively.
(2.1.6.1)

#systat -vmstat

    2 users    Load  0.00  0.00  0.00                  Tue Jan 28 22:02

Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
        Tot   Share      Tot    Share    Free         in  out     in  out
Act    2588     508    37044    32828    9672 count
All   27188    6212   707252   648500         pages
                                                          cow    Interrupts
Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt      1 zfod    229 total
              7         4    2   30  230    4    2   3416 wire    100 clk0 irq0
                                                    17144 act     128 rtc0 irq8
 0.3%Sys   0.0%Intr  0.0%User  0.0%Nice 99.7%Idl      548 inact       fdc0 irq6
|    |    |    |    |    |    |    |    |    |       5868 cache       wdc0 irq14
                                                     3804 free        sc0 irq1
                                                          daefr     1 ep0 irq10
Namei         Name-cache    Proc-cache                    prcfr
    Calls     hits    %     hits     %                    react
        4        4  100                                   pdwake
                                                          pdpgs
Discs  wd0                                                intrn
seeks                                                3871 buf
xfers
 blks
 msps


[22:02] [141] ~#top

load averages:  0.00,  0.00,  0.00                                     22:02:29
30 processes:  1 running, 29 sleeping
Cpu states:     % user,     % nice,     % system,     % interrupt,     % idle
Mem: 17M Active, 548K Inact, 3416K Wired, 5868K Cache, 3871K Buf, 3856K Free
Swap: 225M Total, 64K Used, 225M Free

  PID USERNAME PRI NICE  SIZE   RES STATE    TIME   WCPU    CPU COMMAND
 1574 root      33    0  372K  744K RUN      0:00  0.00%  0.00% top
  596 root      18    0  712K 1084K pause    0:00  0.00%  0.00% tcsh

#swapinfo
Device      512-blocks     Used    Avail Capacity  Type
/dev/wd0s1b     450560        0   450432     0%    Interleaved
 

This computer hangs or reboots if I start compiling something big
(say, the kernel, or "make world")


Does anybody have any idea, why is it so ?

I think, the problem is in swap management.
Notice the discrepency between different diagnostics..


Thanks for any input on this.

IgoR
aka StR