Changeset 74227c6


Ignore:
Timestamp:
Dec 8, 2022, 11:27:05 AM (16 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
70cd431
Parents:
e1d66c84
Message:

Added more stats

Location:
libcfa/src/concurrency
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/stats.cfa

    re1d66c84 r74227c6  
    4848                        stats->io.submit.eagr       = 0;
    4949                        stats->io.submit.nblk       = 0;
     50                        stats->io.submit.extr       = 0;
    5051                        stats->io.flush.external    = 0;
     52                        stats->io.flush.signal      = 0;
    5153                        stats->io.flush.dirty       = 0;
    5254                        stats->io.flush.full        = 0;
     
    120122                        tally_one( &cltr->io.submit.eagr      , &proc->io.submit.eagr       );
    121123                        tally_one( &cltr->io.submit.nblk      , &proc->io.submit.nblk       );
     124                        tally_one( &cltr->io.submit.extr      , &proc->io.submit.extr       );
    122125                        tally_one( &cltr->io.flush.external   , &proc->io.flush.external    );
     126                        tally_one( &cltr->io.flush.signal     , &proc->io.flush.signal      );
    123127                        tally_one( &cltr->io.flush.dirty      , &proc->io.flush.dirty       );
    124128                        tally_one( &cltr->io.flush.full       , &proc->io.flush.full        );
     
    199203                                if(io.alloc.slow) {
    200204                                        double avgfasts = (100.0 * (double)io.submit.fast) / total_submits;
    201                                         sstr | "fast," | eng3(io.submit.slow) | "slow (" | ws(3, 3, avgfasts) | "%)" | nonl;
     205                                        sstr | "fast," | eng3(io.submit.slow) | "slow (" | ws(3, 3, avgfasts) | "%)," | eng3(io.submit.extr) | "external" | nonl;
    202206                                }
    203207                                sstr | " - eager" | eng3(io.submit.eagr) | nonl;
     
    217221                                     | " - cmp " | eng3(io.calls.locked) | "locked, " | eng3(io.calls.helped) | "helped"
    218222                                     | " - " | eng3(io.calls.errors.busy) | " EBUSY";
    219                                 sstr | " - sub: " | eng3(io.flush.full) | "full, " | eng3(io.flush.dirty) | "drty, " | eng3(io.flush.idle) | "idle, " | eng3(io.flush.eager) | "eagr, " | eng3(io.flush.external) | "ext";
     223                                sstr | " - sub: " | eng3(io.flush.full) | "full, " | eng3(io.flush.dirty) | "drty, " | eng3(io.flush.idle) | "idle, " | eng3(io.flush.eager) | "eagr, " | eng3(io.flush.external) | '/' | eng3(io.flush.signal) | "ext";
    220224                                sstr | "- ops blk: "
    221225                                     |   " sk rd: " | eng3(io.ops.sockread)  | "epll: " | eng3(io.ops.epllread)
  • libcfa/src/concurrency/stats.hfa

    re1d66c84 r74227c6  
    9494                                volatile uint64_t eagr;
    9595                                volatile uint64_t nblk;
     96                                volatile uint64_t extr;
    9697                        } submit;
    9798                        struct {
    9899                                volatile uint64_t external;
     100                                volatile uint64_t signal;
    99101                                volatile uint64_t dirty;
    100102                                volatile uint64_t full;
Note: See TracChangeset for help on using the changeset viewer.