[О блоге] [наверх] [пред] [2022-01-04 15:36:12+03:00] [417da01d501f30561951ef53afc8190dc85ec4aa]
Темы: [bsd][tip]

ministat

https://klarasystems.com/articles/freebsd-tcp-performance-system-controls/
В FreeBSD много где встречал красивых ASCII графиков наподобие:

    $ ministat -s -w 60 iguana chameleon
    x iguana
    + chameleon
    +------------------------------------------------------------+
    |x      *  x            *      +              + x           +|
    | |________M______A_______________|                          |
    |             |________________M__A___________________|      |
    +------------------------------------------------------------+
        N        Min        Max     Median        Avg       Stddev
    x   7         50        750        200        300    238.04761
    +   5        150        930        500        540    299.08193
    No difference proven at 95.0% confidence

Делаются штатной ministat утилитой из коробки.

    #/bin/sh
    for size in 65k 1m ; do
      for x in 3 10 20 40 ; do
        sudo sysctl net.inet.tcp.initcwnd_segments=${x};
        for y in $(jot 20) ; do do
          /usr/bin/time -a -o iperf3-iw${x}-${size}.out iperf3 -c iperf3.example.com -n ${size}
          sudo -v
        done
      done
    done

    $ ministat iperf3-iw3.out iperf3-iw10.out iperf3-iw20.out iperf3-iw40.out
    x iperf3-iw3.out
    + iperf3-iw10.out
    * iperf3-iw20.out
    % iperf3-iw40.out
    +--------------------------------------------------------------------------+
    |       *       +             %                     x                      |
    |       *       +             %                     x                      |
    |       *       +             %              x      x                      |
    |       *       +             %      %       x      x                      |
    |       *       +             %      %       x      x                      |
    |       *       +             %      %       x      x                      |
    |       *       *             %      %       x      x                      |
    |       *       *             %      %       x      x                      |
    |       *       *      @      %      %       x      x                      |
    |*      *       *      @      %      %       #      x      x              x|
    |     |_MA__||__A__|       |__M__A____|     |______AM_____|                |
    +--------------------------------------------------------------------------+
        N           Min           Max        Median           Avg        Stddev
    x  20          0.86           0.9          0.87         0.868  0.0095145318
    +  20          0.81          0.83          0.82          0.82  0.0045883147
    Difference at 95.0% confidence
        -0.048 +/- 0.00478065
        -5.52995% +/- 0.52619%
        (Student's t, pooled s = 0.00746924)
    *  20           0.8          0.82          0.81        0.8115  0.0048936048
    Difference at 95.0% confidence
        -0.0565 +/- 0.00484226
        -6.50922% +/- 0.529354%
        (Student's t, pooled s = 0.0075655)
    %  20          0.83          0.86          0.84        0.8435  0.0074515982
    Difference at 95.0% confidence
        -0.0245 +/- 0.00546953
        -2.82258% +/- 0.619167%
        (Student's t, pooled s = 0.00854554)

    [оставить комментарий]