Changeset d1cd4c4 for libcfa/src


Ignore:
Timestamp:
Oct 4, 2022, 2:49:05 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
5f6b2c2
Parents:
31c967b
Message:

Changed moving average weights as an attempt to compensate for logscale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel/cluster.hfa

    r31c967b rd1cd4c4  
    9090        const unsigned long long new_val = currtsc > intsc ? currtsc - intsc : 0;
    9191        const __readyQ_avg_t total_weight = 16;
    92         const __readyQ_avg_t new_weight   = 4;
     92        const __readyQ_avg_t new_weight   = 12;
    9393        const __readyQ_avg_t old_weight = total_weight - new_weight;
    9494        const __readyQ_avg_t ret = ((new_weight * __to_readyQ_avg(new_val)) + (old_weight * old_avg)) / total_weight;
Note: See TracChangeset for help on using the changeset viewer.