Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 1999 11:28:19 -0400 (EDT)
From:      Brian Feldman <green@unixhelp.org>
To:        Andreas Klemm <andreas@klemm.gtn.com>
Cc:        current@FreeBSD.ORG
Subject:   Re: different systat -vmstat output when using egcs to compile kernel
Message-ID:  <Pine.BSF.4.05.9904041127130.21547-100000@janus.syracuse.net>
In-Reply-To: <19990404134250.A995@titan.klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 4 Apr 1999, Andreas Klemm wrote:

> See the leading \n's in the Interrupts column (see !!!)
> 1st is ok using our cc
> 2nd is using egcs with different compile options.
> But error remains the same even with no optimitation

Very strange. It could have something to do with the following, though, maybe?

1.160 Sun Apr 4 7:11:02 1999 UTC by alc 
CVS Tags: HEAD
Diffs to 1.159 

Two changes to vm_map_delete:

1. Don't bother checking object->ref_count == 1 in order to set
OBJ_ONEMAPPING.  It's a waste of time.  If object->ref_count == 1,
vm_map_entry_delete will "run-down" the object and its pages.

2. If object->ref_count == 1, ignore OBJ_ONEMAPPING.  Wait for
vm_map_entry_delete to "run-down" the object and its pages.
Otherwise, we're calling two different procedures to delete
the object's pages.

Note: "vmstat -s" will once again show a non-zero value
for "pages freed by exiting processes".

Also, MAYBE the entire world needs to be compiled by egcs as well to have
the correct sizes for structs and such, that might be different.

> 
> --------------------------------------------------------------------------------
> kernel compiled with FreeBSD 3.1-STABLE C compiler, -pipe -O
> --------------------------------------------------------------------------------
>     1 users    Load  0.97  0.39  0.16                  So   4 Apr 12:41
> 
> Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
>         Tot   Share      Tot    Share    Free         in  out     in  out
> Act   35180    4348  3773760     6632    9000 count
> All   92160   14304   785608    20952         pages
>                                                        91 cow    Interrupts
> Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt    430 zfod    236 total
>      1     3 21        88  597  909  237   60  582  15516 wire    100 clk0 irq2
>                                                     52868 act     128 rtc0 irq8
>  5.3%Sys   0.2%Intr 47.6%User  0.0%Nice 47.0%Idl    16624 inact       pci irq19
> |    |    |    |    |    |    |    |    |    |       6956 cache     7 pci irq17
> ===>>>>>>>>>>>>>>>>>>>>>>>>                          2044 free      1 pci irq16
>                                                           daefr       atkbd0 irq
> Namei         Name-cache    Dir-cache                  29 prcfr       psm0 irq12
>     Calls     hits    %     hits    %                     react       ed0 irq10
>      1039     1015   98        3    0                     pdwak       isic0 irq9
>                                                           pdpgs
> Discs  ccd0  ccd1  ccd2  ccd3   da0   da1   da2           intrn
> KB/t   0.00  0.00  5.25  8.00  8.00  4.33  8.00      8345 buf
> tps       0     0     1     0     4     1     0      7506 desiredvnodes
> MB/s   0.00  0.00  0.00  0.00  0.03  0.00  0.00      1626 numvnodes
>                                                        24 freevnodes
> --------------------------------------------------------------------------------
> kernel compiled on FreeBSD 3.1-STABLE with egcs,
> 	tried these different compile options ...
> 			-mpentiumpro -pipe -O
> 			-pipe -O
> 			-mpentiumpro -pipe
> 			-pipe
> --------------------------------------------------------------------------------
>     1 users    Load  0.42  0.23  0.09                  So   4 Apr 12:51
> 
> Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
>         Tot   Share      Tot    Share    Free         in  out     in  out
> Act   30724    3976  3736388     6632   11800 count
> All   92768   11544   736712    18172         pages
>                                                           cow    Interrupts
> Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt        zfod    455 total
>      1     1 22       407    2 2533  456  264    1  13908 wire    243 \nclk0 irq
>                                                                       ^^ !!!
>                                                     53972 act     128 \nrtc0 irq
>                                                                       ^^ !!!
>  9.0%Sys   0.4%Intr  4.3%User  0.0%Nice 86.3%Idl    14284 inact       \natkbd0 i
>                                                                       ^^ !!!
> |    |    |    |    |    |    |    |    |    |      10404 cache    84 \npsm0 irq
>                                                                       ^^ !!!
> =====>>                                              1396 free        \ned0 irq1
>                                                                       ^^ !!!
>                                                           daefr       \nisic0 ir
>                                                                       ^^ !!!
> Namei         Name-cache    Dir-cache                     prcfr
>     Calls     hits    %     hits    %                     react
>      3831      525   14     1994   52                     pdwake
>                                                           pdpgs
> Discs  ccd0  ccd1  ccd2  ccd3   da0   da1   da2           intrn
> KB/t   0.00  0.00  0.00  0.00  5.07  0.00  0.00      8343 buf
> tps       0     0     0     0    86     0     0      7503 desiredvnodes
> MB/s   0.00  0.00  0.00  0.00  0.42  0.00  0.00      1148 numvnodes
>                                                       428 freevnodes
> 
> -- 
> Andreas Klemm                               http://www.FreeBSD.ORG/~andreas
>                                   http://www.freebsd.org/~fsmp/SMP/SMP.html
>                                 powered by Symmetric MultiProcessor FreeBSD
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-current" in the body of the message
> 

 Brian Feldman                _ __ ___ ____  ___ ___ ___  
 green@unixhelp.org                _ __ ___ | _ ) __|   \ 
     FreeBSD: The Power to Serve!      _ __ | _ \__ \ |) |
         http://www.freebsd.org           _ |___/___/___/ 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9904041127130.21547-100000>