Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2001 07:57:45 -0400
From:      Normand Leclerc <leclercn@videotron.ca>
To:        Valentin Nechayev <netch@iv.nn.kiev.ua>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: ip_divert blues (was natd blues)
Message-ID:  <3B10EBB9.1070707@videotron.ca>
References:  <3B1059DD.8090505@videotron.ca> <20010527091140.A1554@iv.nn.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--------------010207000404040705080502
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Valentin,

   Okay, I don't know if I can send this info on the newsgroup...  I'll 
do it anyway as it is small.  Sorry for the HTML formatting, I wanted 
the output to be as clean as possible...

   The tests were done with my 3 usual rules:

       - 00050 allow ip from any to any
       - 00090 divert 8668 ip from any to any via rl0
       - 00100 allow ip from any to any
       - 65535 deny ip from any to any    (default ... of course)

   We see clearly that my system isn't stressed at all.  We can even see 
that with rule 50, my system gets more interrupts.

SYSTAT WITHOUT RULE 50:
-----------------------



                   /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
    Load Average  

         /0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
cpu  user|
    nice|
  system|X
interrupt|
    idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

         /0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
ad0   MB/s
     tps|
ad1   MB/s
     tps|
fd0   MB/s
     tps|





   3 users    Load  0.08  0.10  0.06                  Sun May 27 07:38

Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
       Tot   Share      Tot    Share    Free         in  out     in  out
Act    6700    1212    11912     1476    9320 count
All   21324    2224  2344560     3244         pages
                                                                Interrupts
Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt        cow     298 total
            10       108    3  366  298   44    2   6728 wire        
ata0 irq14
                                                   13148 act         
ata1 irq15
3.0%Sys   1.9%Intr  0.8%User  0.0%Nice 94.4%Idl     1008 inact    66 rl0 
irq10
|    |    |    |    |    |    |    |    |    |        440 cache     4 
xl0 irq11
=+>                                                  8880 free        
fdc0 irq6
                                                         daefr       
sio1 irq3
Namei         Name-cache    Dir-cache                     prcfr   100 
clk irq0
   Calls     hits    %     hits    %                     react   128 rtc 
irq8
                                                         pdwake
                                         zfod            pdpgs
Disks   ad0   ad1   fd0                   ofod            intrn
KB/t    128  0.00  0.00                   %slo-z     6752 buf
tps       0     0     0                   tfree        14 dirtybuf
MB/s   0.02  0.00  0.00                              1971 desiredvnodes
% busy    1     0     0                               670 numvnodes
                                                     307 freevnodes





UPTIME
------

7:42AM  up  8:27, 2 users, load averages: 0.01, 0.06, 0.06









SYSTAT WITHOUT RULE 50:
-----------------------



                   /0   /1   /2   /3   /4   /5   /6   /7   /8   /9   /10
    Load Average   |

         /0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
cpu  user| 
    nice|
  system|XX
interrupt|XX
    idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX   

         /0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
ad0   MB/s
     tps|
ad1   MB/s
     tps|
fd0   MB/s
     tps|







   3 users    Load  0.20  0.12  0.07                  Sun May 27 07:39

Mem:KB    REAL            VIRTUAL                     VN PAGER  SWAP PAGER
       Tot   Share      Tot    Share    Free         in  out     in  out
Act    5852    1148    10532     1476    3712 count
All   29840    2144  2354092     3244         pages
                                                                Interrupts
Proc:r  p  d  s  w    Csw  Trp  Sys  Int  Sof  Flt        cow     530 total
             7       206    3  424  530   12    1   7056 wire      2 
ata0 irq14
                                                   13488 act         
ata1 irq15
8.2%Sys   4.3%Intr  0.6%User  0.0%Nice 86.8%Idl     5948 inact   297 rl0 
irq10
|    |    |    |    |    |    |    |    |    |       3348 cache     3 
xl0 irq11
====++>                                               364 free        
fdc0 irq6
                                                         daefr       
sio1 irq3
Namei         Name-cache    Dir-cache                     prcfr   100 
clk irq0
   Calls     hits    %     hits    %                     react   128 rtc 
irq8
                                                         pdwake
                                         zfod            pdpgs
Disks   ad0   ad1   fd0                   ofod            intrn
KB/t    128  0.00  0.00                   %slo-z     6752 buf
tps       2     0     0                49 tfree        14 dirtybuf
MB/s   0.20  0.00  0.00                              1971 desiredvnodes
% busy    6     0     0                               670 numvnodes
                                                     309 freevnodes





UPTIME:
-------

7:40AM  up  8:25, 2 users, load averages: 0.10, 0.11, 0.07




NETSTAT:
--------

Name  Mtu   Network       Address            Ipkts Ierrs     Ibytes    
Opkts Oerrs     Obytes  Coll
rl0   1500  <Link#1>    00:00:b4:a8:34:19   121332     0  125208002    
54838     0    3327570     0
                       1:0:5e:0:0:1
rl0   1500  24.201.45/24  modemcable238.4    50554     -   54968080    
54832     -    2559305     -
                       ALL-SYSTEMS.MCAST.net
xl0   1500  <Link#2>    00:10:5a:e2:60:c3    32386     0    2406465    
48378     0   68497930     8
                       1:0:5e:0:0:1
xl0   1500  192.168.56/25 neutrino            5498     -     694497     
2880     -     461228     -
                       ALL-SYSTEMS.MCAST.net
xl0   1500  192.168.56/25 ns2                  145     -      10091      
  0     -          0     -
                       ALL-SYSTEMS.MCAST.net
xl0   1500  192.168.56/25 gw100                  0     -          0      
  0     -          0     -
                       ALL-SYSTEMS.MCAST.net
lo0   16384 <Link#3>                           137     0      22385      
137     0      22385     0
lo0   16384 127           localhost             32     -       2139     
  32     -       2139     -
                       ALL-SYSTEMS.MCAST.net




Valentin Nechayev wrote:

>  Sat, May 26, 2001 at 21:35:25, leclercn (Normand Leclerc) wrote about "ip_divert blues (was natd blues)": 
> 
>>      I recently posted help on a slowdown problem when using natd.  I 
>> found out that ipfilter (ipnat) is doing the very same thing: slowdown.  
>> I trimed down the kernel to almost nothing, I removed a network adapter 
>> I didn't need; in brief, I did everything I could think of ...  nothing 
>> has changed.  My cable modem is as slow as an ADSL.
>>    I have two rules in my firewall when using natd:
>>        - 100 divert natd all from any to any via rl0
>>        - 200 pass all from any to any
>>    On the nat machine, I start a transfer with my ISP's ftp server to be 
>> able to reach maximum transfer speed.  I get something like 50k/s.  On 
>> the fly, I add a third rule: 50 pass all from any to any.  Suddently, my 
>> transfer rate goes up to nearly 170k/s.
> 
> 
> You didn't do standard system load meterings. Please tell:
> `uptime' output (LA values),
> `top' output - does natd occupy top position or not; exact WCPU and CPU values;
> `systat -io' output - percents of processor in each mode (idle/user/sys/intr);
> `systat -vm' output - number of interrupts, context switches, syscalls
> per second;
> 
> Also try get collisions, input and output errors on interface with netstat.
> 
> All these data may help with diagnostics, but without them diagnostics
> is almost impossible.
> 
>>    The nat machine is a P90 with 32megs of ram.  It has a 3com 3B905BTX 
>> and a cheaper nic connected to the cable modem (realtek).
>>    Ideas?  Has the IP divertion become that slow?
> 
> 
> 
> /netch
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-stable" in the body of the message



--------------010207000404040705080502
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<html><head></head><body>Hi Valentin,<br>
<br>
 &nbsp;&nbsp; Okay, I don't know if I can send this info on the newsgroup...&nbsp; I'll
do it anyway as it is small.&nbsp; Sorry for the HTML formatting, I wanted the
output to be as clean as possible...<br>
<br>
 &nbsp;&nbsp; The tests were done with my 3 usual rules:<br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; - 00050 allow ip from any to any<br>
 &nbsp;&nbsp; &nbsp; &nbsp; - 00090 divert 8668 ip from any to any via rl0<br>
 &nbsp;&nbsp; &nbsp; &nbsp; - 00100 allow ip from any to any<br>
 &nbsp;&nbsp; &nbsp; &nbsp; - 65535 deny ip from any to any &nbsp;&nbsp; (default ... of course)<br>
<br>
 &nbsp;&nbsp; We see clearly that my system isn't stressed at all.&nbsp; We can even see that with rule 50, my system gets more interrupts.<br>
<tt><br>
<font size="-1">SYSTAT WITHOUT RULE 50:<br>
-----------------------<br>
<br>
<br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /1 &nbsp; /2 &nbsp; /3 &nbsp; /4 &nbsp; /5 &nbsp; /6 &nbsp; /7 &nbsp; /8 &nbsp; /9 &nbsp; /10<br>
 &nbsp; &nbsp; Load Average &nbsp; <br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /10&nbsp; /20&nbsp; /30&nbsp; /40&nbsp; /50&nbsp; /60&nbsp; /70&nbsp; /80&nbsp; /90&nbsp; /100<br>
cpu&nbsp; user|<br>
 &nbsp; &nbsp; nice|<br>
 &nbsp; system|X <br>
interrupt|<br>
 &nbsp; &nbsp; idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX <br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /10&nbsp; /20&nbsp; /30&nbsp; /40&nbsp; /50&nbsp; /60&nbsp; /70&nbsp; /80&nbsp; /90&nbsp; /100<br>
ad0 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps| <br>
ad1 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps|<br>
fd0 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps|<br>
<br>
<br>
<br>
<br>
<br>
 &nbsp;&nbsp; 3 users &nbsp;&nbsp; Load&nbsp; 0.08&nbsp; 0.10&nbsp; 0.06 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sun May 27 07:38<br>
<br>
Mem:KB &nbsp;&nbsp; REAL &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VIRTUAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VN PAGER&nbsp; SWAP PAGER<br>
 &nbsp;&nbsp; &nbsp; &nbsp; Tot &nbsp; Share &nbsp;&nbsp; &nbsp; Tot &nbsp;&nbsp; Share &nbsp;&nbsp; Free &nbsp; &nbsp; &nbsp; &nbsp; in&nbsp; out &nbsp; &nbsp; in&nbsp; out<br>
Act &nbsp;&nbsp; 6700 &nbsp;&nbsp; 1212 &nbsp;&nbsp; 11912 &nbsp; &nbsp; 1476 &nbsp;&nbsp; 9320 count<br>
All &nbsp; 21324 &nbsp;&nbsp; 2224&nbsp; 2344560 &nbsp; &nbsp; 3244 &nbsp; &nbsp; &nbsp; &nbsp; pages<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Interrupts<br>
Proc:r&nbsp; p&nbsp; d&nbsp; s&nbsp; w &nbsp;&nbsp; Csw&nbsp; Trp&nbsp; Sys&nbsp; Int&nbsp; Sof&nbsp; Flt &nbsp;&nbsp; &nbsp; &nbsp; cow &nbsp; &nbsp; 298 total<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 10 &nbsp; &nbsp; &nbsp; 108 &nbsp;&nbsp; 3&nbsp; 366&nbsp; 298 &nbsp; 44 &nbsp;&nbsp; 2 &nbsp; 6728 wire &nbsp;&nbsp; &nbsp; &nbsp; ata0 irq14<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 13148 act &nbsp; &nbsp; &nbsp; &nbsp; ata1 irq15<br>
 3.0%Sys &nbsp; 1.9%Intr&nbsp; 0.8%User&nbsp; 0.0%Nice 94.4%Idl &nbsp; &nbsp; 1008 inact &nbsp;&nbsp; 66 rl0 irq10<br>
| &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; &nbsp; &nbsp; 440 cache &nbsp; &nbsp; 4 xl0 irq11<br>
=+&gt; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 8880 free &nbsp;&nbsp; &nbsp; &nbsp; fdc0 irq6<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; daefr &nbsp; &nbsp; &nbsp; sio1 irq3<br>
Namei &nbsp; &nbsp; &nbsp; &nbsp; Name-cache &nbsp;&nbsp; Dir-cache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prcfr &nbsp; 100 clk irq0<br>
 &nbsp;&nbsp; Calls &nbsp; &nbsp; hits &nbsp;&nbsp; % &nbsp; &nbsp; hits &nbsp;&nbsp; % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; react &nbsp; 128 rtc irq8<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdwake<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zfod &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdpgs<br>
Disks &nbsp; ad0 &nbsp; ad1 &nbsp; fd0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ofod &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intrn<br>
KB/t &nbsp;&nbsp; 128&nbsp; 0.00&nbsp; 0.00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %slo-z &nbsp; &nbsp; 6752 buf<br>
tps &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tfree &nbsp;&nbsp; &nbsp; &nbsp; 14 dirtybuf<br>
MB/s &nbsp; 0.02&nbsp; 0.00&nbsp; 0.00 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1971 desiredvnodes<br>
% busy &nbsp;&nbsp; 1 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 670 numvnodes<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 307 freevnodes<br>
<br>
<br>
<br>
<br>
<br>
UPTIME<br>
------<br>
<br>
7:42AM&nbsp; up&nbsp; 8:27, 2 users, load averages: 0.01, 0.06, 0.06<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
SYSTAT WITHOUT RULE 50:<br>
-----------------------<br>
<br>
<br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /1 &nbsp; /2 &nbsp; /3 &nbsp; /4 &nbsp; /5 &nbsp; /6 &nbsp; /7 &nbsp; /8 &nbsp; /9 &nbsp; /10<br>
 &nbsp; &nbsp; Load Average &nbsp; |<br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /10&nbsp; /20&nbsp; /30&nbsp; /40&nbsp; /50&nbsp; /60&nbsp; /70&nbsp; /80&nbsp; /90&nbsp; /100<br>
cpu&nbsp; user|&nbsp; <br>
 &nbsp; &nbsp; nice|<br>
 &nbsp; system|XX<br>
interrupt|XX<br>
 &nbsp; &nbsp; idle|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX &nbsp;&nbsp; <br>
<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; /0 &nbsp; /10&nbsp; /20&nbsp; /30&nbsp; /40&nbsp; /50&nbsp; /60&nbsp; /70&nbsp; /80&nbsp; /90&nbsp; /100<br>
ad0 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps| <br>
ad1 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps|<br>
fd0 &nbsp; MB/s <br>
 &nbsp;&nbsp; &nbsp; tps|<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
 &nbsp;&nbsp; 3 users &nbsp;&nbsp; Load&nbsp; 0.20&nbsp; 0.12&nbsp; 0.07 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sun May 27 07:39<br>
<br>
Mem:KB &nbsp;&nbsp; REAL &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VIRTUAL &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; VN PAGER&nbsp; SWAP PAGER<br>
 &nbsp;&nbsp; &nbsp; &nbsp; Tot &nbsp; Share &nbsp;&nbsp; &nbsp; Tot &nbsp;&nbsp; Share &nbsp;&nbsp; Free &nbsp; &nbsp; &nbsp; &nbsp; in&nbsp; out &nbsp; &nbsp; in&nbsp; out<br>
Act &nbsp;&nbsp; 5852 &nbsp;&nbsp; 1148 &nbsp;&nbsp; 10532 &nbsp; &nbsp; 1476 &nbsp;&nbsp; 3712 count<br>
All &nbsp; 29840 &nbsp;&nbsp; 2144&nbsp; 2354092 &nbsp; &nbsp; 3244 &nbsp; &nbsp; &nbsp; &nbsp; pages<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Interrupts<br>
Proc:r&nbsp; p&nbsp; d&nbsp; s&nbsp; w &nbsp;&nbsp; Csw&nbsp; Trp&nbsp; Sys&nbsp; Int&nbsp; Sof&nbsp; Flt &nbsp;&nbsp; &nbsp; &nbsp; cow &nbsp; &nbsp; 530 total<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 7 &nbsp; &nbsp; &nbsp; 206 &nbsp;&nbsp; 3&nbsp; 424&nbsp; 530 &nbsp; 12 &nbsp;&nbsp; 1 &nbsp; 7056 wire &nbsp;&nbsp; &nbsp; 2 ata0 irq14<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 13488 act &nbsp; &nbsp; &nbsp; &nbsp; ata1 irq15<br>
 8.2%Sys &nbsp; 4.3%Intr&nbsp; 0.6%User&nbsp; 0.0%Nice 86.8%Idl &nbsp; &nbsp; 5948 inact &nbsp; 297 rl0 irq10<br>
| &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp;&nbsp; | &nbsp; &nbsp; &nbsp; 3348 cache &nbsp; &nbsp; 3 xl0 irq11<br>
====++&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 364 free &nbsp;&nbsp; &nbsp; &nbsp; fdc0 irq6<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; daefr &nbsp; &nbsp; &nbsp; sio1 irq3<br>
Namei &nbsp; &nbsp; &nbsp; &nbsp; Name-cache &nbsp;&nbsp; Dir-cache &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; prcfr &nbsp; 100 clk irq0<br>
 &nbsp;&nbsp; Calls &nbsp; &nbsp; hits &nbsp;&nbsp; % &nbsp; &nbsp; hits &nbsp;&nbsp; % &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; react &nbsp; 128 rtc irq8<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdwake<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; zfod &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pdpgs<br>
Disks &nbsp; ad0 &nbsp; ad1 &nbsp; fd0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ofod &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; intrn<br>
KB/t &nbsp;&nbsp; 128&nbsp; 0.00&nbsp; 0.00 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; %slo-z &nbsp; &nbsp; 6752 buf<br>
tps &nbsp; &nbsp; &nbsp; 2 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 49 tfree &nbsp;&nbsp; &nbsp; &nbsp; 14 dirtybuf<br>
MB/s &nbsp; 0.20&nbsp; 0.00&nbsp; 0.00 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1971 desiredvnodes<br>
% busy &nbsp;&nbsp; 6 &nbsp; &nbsp; 0 &nbsp; &nbsp; 0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 670 numvnodes<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 309 freevnodes<br>
<br>
<br>
<br>
<br>
<br>
UPTIME:<br>
-------<br>
<br>
7:40AM&nbsp; up&nbsp; 8:25, 2 users, load averages: 0.10, 0.11, 0.07<br>
<br>
<br>
<br>
<br>
NETSTAT:<br>
--------<br>
<br>
Name&nbsp; Mtu &nbsp; Network &nbsp; &nbsp; &nbsp; Address &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ipkts Ierrs &nbsp; &nbsp; Ibytes &nbsp;&nbsp; Opkts Oerrs &nbsp; &nbsp; Obytes&nbsp; Coll<br>
rl0 &nbsp; 1500&nbsp; &lt;Link#1&gt; &nbsp;&nbsp; 00:00:b4:a8:34:19 &nbsp; 121332 &nbsp; &nbsp; 0&nbsp; 125208002 &nbsp;&nbsp; 54838 &nbsp; &nbsp; 0 &nbsp;&nbsp; 3327570 &nbsp; &nbsp; 0<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1:0:5e:0:0:1<br>
rl0 &nbsp; 1500&nbsp; 24.201.45/24&nbsp; modemcable238.4 &nbsp;&nbsp; 50554 &nbsp; &nbsp; - &nbsp; 54968080 &nbsp;&nbsp; 54832 &nbsp; &nbsp; - &nbsp;&nbsp; 2559305 &nbsp; &nbsp; -<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL-SYSTEMS.MCAST.net<br>
xl0 &nbsp; 1500&nbsp; &lt;Link#2&gt; &nbsp;&nbsp; 00:10:5a:e2:60:c3 &nbsp;&nbsp; 32386 &nbsp; &nbsp; 0 &nbsp;&nbsp; 2406465 &nbsp;&nbsp; 48378 &nbsp; &nbsp; 0 &nbsp; 68497930 &nbsp; &nbsp; 8<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1:0:5e:0:0:1<br>
xl0 &nbsp; 1500&nbsp; 192.168.56/25 neutrino &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 5498 &nbsp; &nbsp; - &nbsp; &nbsp; 694497 &nbsp; &nbsp; 2880 &nbsp; &nbsp; - &nbsp; &nbsp; 461228 &nbsp; &nbsp; -<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL-SYSTEMS.MCAST.net<br>
xl0 &nbsp; 1500&nbsp; 192.168.56/25 ns2 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 145 &nbsp; &nbsp; - &nbsp;&nbsp; &nbsp; 10091 &nbsp;&nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; - &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; -<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL-SYSTEMS.MCAST.net<br>
xl0 &nbsp; 1500&nbsp; 192.168.56/25 gw100 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; - &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp;&nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; - &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; 0 &nbsp; &nbsp; -<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL-SYSTEMS.MCAST.net<br>
lo0 &nbsp; 16384 &lt;Link#3&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 137 &nbsp; &nbsp; 0 &nbsp;&nbsp; &nbsp; 22385 &nbsp;&nbsp; &nbsp; 137 &nbsp; &nbsp; 0 &nbsp;&nbsp; &nbsp; 22385 &nbsp; &nbsp; 0<br>
lo0 &nbsp; 16384 127 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; localhost &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 32 &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 2139 &nbsp; &nbsp; &nbsp; 32 &nbsp; &nbsp; - &nbsp; &nbsp; &nbsp; 2139 &nbsp; &nbsp; -<br>
 &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ALL-SYSTEMS.MCAST.net<br>
<br>
</font></tt><br>
<br>
<br>
Valentin Nechayev wrote:<br>
<blockquote type="cite" cite="mid:20010527091140.A1554@iv.nn.kiev.ua"><pre wrap=""> Sat, May 26, 2001 at 21:35:25, leclercn (Normand Leclerc) wrote about "ip_divert blues (was natd blues)": <br><br></pre>
  <blockquote type="cite"><pre wrap="">     I recently posted help on a slowdown problem when using natd.  I <br>found out that ipfilter (ipnat) is doing the very same thing: slowdown.  <br>I trimed down the kernel to almost nothing, I removed a network adapter <br>I didn't need; in brief, I did everything I could think of ...  nothing <br>has changed.  My cable modem is as slow as an ADSL.<br>   I have two rules in my firewall when using natd:<br>       - 100 divert natd all from any to any via rl0<br>       - 200 pass all from any to any<br>   On the nat machine, I start a transfer with my ISP's ftp server to be <br>able to reach maximum transfer speed.  I get something like 50k/s.  On <br>the fly, I add a third rule: 50 pass all from any to any.  Suddently, my <br>transfer rate goes up to nearly 170k/s.<br></pre></blockquote>
    <pre wrap=""><!----><br>You didn't do standard system load meterings. Please tell:<br>`uptime' output (LA values),<br>`top' output - does natd occupy top position or not; exact WCPU and CPU values;<br>`systat -io' output - percents of processor in each mode (idle/user/sys/intr);<br>`systat -vm' output - number of interrupts, context switches, syscalls<br>per second;<br><br>Also try get collisions, input and output errors on interface with netstat.<br><br>All these data may help with diagnostics, but without them diagnostics<br>is almost impossible.<br><br></pre>
    <blockquote type="cite"><pre wrap="">   The nat machine is a P90 with 32megs of ram.  It has a 3com 3B905BTX <br>and a cheaper nic connected to the cable modem (realtek).<br>   Ideas?  Has the IP divertion become that slow?<br></pre></blockquote>
      <pre wrap=""><!----><br><br>/netch<br><br>To Unsubscribe: send mail to <a class="moz-txt-link-abbreviated" href="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</a><br>with "unsubscribe freebsd-stable" in the body of the message<br></pre>
      </blockquote>
      <br>
</body></html>
--------------010207000404040705080502--


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B10EBB9.1070707>