FreeBSD 8.2 and MPD5 stability issues - update

Eugene Grosbein egrosbein at rdtc.ru
Mon Jul 4 12:30:41 UTC 2011


04.07.2011 15:30, Adrian Minta пишет:

> if I undestand corectly, in order to increase the connection rate I need 
> to replace 60 with 600 and 10 with 100 like this:
> 
>    #define SETOVERLOAD(q)        do {                                    \
>                                      int t = (q);                        \
>                                      if (t > 600) {                      \
>                                          gOverload = 100;                \
>                                      } else if (t > 100) {               \
>                                          gOverload = (t - 100) * 2;      \
>                                      } else {                            \
>                                          gOverload = 0;                  \
>                                      }                                   \
>                                  } while (0)
> 
>   Is this enough, or I need to modify something else ?

It seems, enough. But, are you sure your L2TP client will wait
for overloaded daemon to complete connection? The change will proportionally increase
responsiveness of mpd - it has not enough CPU horsepower to process requests timely.

Eugene Grosbein


More information about the freebsd-net mailing list