netdev
[Top] [All Lists]

Re: [PATCH] repairing rtcache killer

To: Robert.Olsson@xxxxxxxxxxx (Robert Olsson)
Subject: Re: [PATCH] repairing rtcache killer
From: kuznet@xxxxxxxxxxxxx
Date: Wed, 6 Aug 2003 22:06:45 +0400 (MSD)
Cc: davem@xxxxxxxxxx, Robert.Olsson@xxxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <16177.14760.612648.582063@robur.slu.se> from "Robert Olsson" at Aug 06, 2003 07:23:52 PM
Sender: netdev-bounce@xxxxxxxxxxx
Hello!

> +             if (in_hit < in_slow_tot) {
> +                     /* Aggressive  */
> +                     if(ip_rt_gc_elasticity2 > 1) 
> +                             ip_rt_gc_elasticity2 >>= 1;
> +             }
> +             else 
> +                     if(ip_rt_gc_elasticity2 < 2*ip_rt_gc_elasticity) {
> +                             ip_rt_gc_elasticity2 <<= 1;
> +                     }

It is the system with positive feedback. Reduction of chain length
results in increasing amount of misses and so on. Under normal load
it has the only stable state, zero chain length and will never leave it.

hits/misses is wrong feedback, unless you use it to increase chain length. :-)

Alexey

<Prev in Thread] Current Thread [Next in Thread>