[lkml]   [2008]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectPlease, put 64-bit counter per task and each ctxt switch.

    We will need 64 bit counters of the slow context switches,
    one counter for each new created task (e.g. u64 ctxt_switch_counts;)

    We will only need them during the lifetime of the tasks.

    To increment by +1 the task's 64 bit counter (it's fast)
    each one slow context switch.

    void context_switch(...) { ... } # incr. +1 here.
    void wake_up_new_task(...) { ... } # ->ctxt_switch_counts = 0ULL;

    struct task_struct { ... } # add 64-bit (u64 ctxt_switch_counts;) here.

    Please, do it and we can do it better than CFS fair scheduler.

    I will explain your later why of it.


     \ /
      Last update: 2008-02-24 04:11    [W:0.018 / U:31.580 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site