• wangyong's avatar
    delayacct: track delays from memory compact · 5bf18281
    wangyong authored
    Delay accounting does not track the delay of memory compact.  When there
    is not enough free memory, tasks can spend a amount of their time
    waiting for compact.
    
    To get the impact of tasks in direct memory compact, measure the delay
    when allocating memory through memory compact.
    
    Also update tools/accounting/getdelays.c:
    
        / # ./getdelays_next  -di -p 304
        print delayacct stats ON
        printing IO accounting
        PID     304
    
        CPU             count     real total  virtual total    delay total  delay average
                          277      780000000      849039485       18877296          0.068ms
        IO              count    delay total  delay average
                            0              0              0ms
        SWAP            count    delay total  delay average
                            0              0              0ms
        RECLAIM         count    delay total  delay average
                            5    11088812685           2217ms
        THRASHING       count  ...
    5bf18281
delayacct.c 5.89 KB