sphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget)/translations/zh_CN/scheduler/sched-statsmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/zh_TW/scheduler/sched-statsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/it_IT/scheduler/sched-statsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ja_JP/scheduler/sched-statsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/ko_KR/scheduler/sched-statsmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget)/translations/sp_SP/scheduler/sched-statsmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhsection)}(hhh](htitle)}(hScheduler Statisticsh]hScheduler Statistics}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhhhC/var/lib/git/docbuild/linux/Documentation/scheduler/sched-stats.rsthKubh paragraph)}(hX<Version 17 of schedstats removed 'lb_imbalance' field as it has no significance anymore and instead added more relevant fields namely 'lb_imbalance_load', 'lb_imbalance_util', 'lb_imbalance_task' and 'lb_imbalance_misfit'. The domain field prints the name of the corresponding sched domain from this version onwards.h]hXPVersion 17 of schedstats removed ‘lb_imbalance’ field as it has no significance anymore and instead added more relevant fields namely ‘lb_imbalance_load’, ‘lb_imbalance_util’, ‘lb_imbalance_task’ and ‘lb_imbalance_misfit’. The domain field prints the name of the corresponding sched domain from this version onwards.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXVersion 16 of schedstats changed the order of definitions within 'enum cpu_idle_type', which changed the order of [CPU_MAX_IDLE_TYPES] columns in show_schedstat(). In particular the position of CPU_IDLE and __CPU_NOT_IDLE changed places. The size of the array is unchanged.h]hXVersion 16 of schedstats changed the order of definitions within ‘enum cpu_idle_type’, which changed the order of [CPU_MAX_IDLE_TYPES] columns in show_schedstat(). In particular the position of CPU_IDLE and __CPU_NOT_IDLE changed places. The size of the array is unchanged.}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK hhhhubh)}(hVersion 15 of schedstats dropped counters for some sched_yield: yld_exp_empty, yld_act_empty and yld_both_empty. Otherwise, it is identical to version 14. Details are available ath]hVersion 15 of schedstats dropped counters for some sched_yield: yld_exp_empty, yld_act_empty and yld_both_empty. Otherwise, it is identical to version 14. Details are available at}(hhhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh block_quote)}(hhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/scheduler/sched-stats.txt?id=1e1dbb259c79b h]h)}(hhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/scheduler/sched-stats.txt?id=1e1dbb259c79bh]h reference)}(hhh]hhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/scheduler/sched-stats.txt?id=1e1dbb259c79b}(hhhhhNhNubah}(h]h ]h"]h$]h&]refurihuh1hhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXVersion 14 of schedstats includes support for sched_domains, which hit the mainline kernel in 2.6.20 although it is identical to the stats from version 12 which was in the kernel from 2.6.13-2.6.19 (version 13 never saw a kernel release). Some counters make more sense to be per-runqueue; other to be per-domain. Note that domains (and their associated information) will only be pertinent and available on machines utilizing CONFIG_SMP.h]hXVersion 14 of schedstats includes support for sched_domains, which hit the mainline kernel in 2.6.20 although it is identical to the stats from version 12 which was in the kernel from 2.6.13-2.6.19 (version 13 never saw a kernel release). Some counters make more sense to be per-runqueue; other to be per-domain. Note that domains (and their associated information) will only be pertinent and available on machines utilizing CONFIG_SMP.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hXZIn version 14 of schedstat, there is at least one level of domain statistics for each cpu listed, and there may well be more than one domain. Domains have no particular names in this implementation, but the highest numbered one typically arbitrates balancing across all the cpus on the machine, while domain0 is the most tightly focused domain, sometimes balancing only between pairs of cpus. At this time, there are no architectures which need more than three domain levels. The first field in the domain stats is a bit map indicating which cpus are affected by that domain. Details are available ath]hXZIn version 14 of schedstat, there is at least one level of domain statistics for each cpu listed, and there may well be more than one domain. Domains have no particular names in this implementation, but the highest numbered one typically arbitrates balancing across all the cpus on the machine, while domain0 is the most tightly focused domain, sometimes balancing only between pairs of cpus. At this time, there are no architectures which need more than three domain levels. The first field in the domain stats is a bit map indicating which cpus are affected by that domain. Details are available at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhhhubh)}(hwhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=b762f3ffb797c h]h)}(hvhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=b762f3ffb797ch]h)}(hj+h]hvhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=b762f3ffb797c}(hj-hhhNhNubah}(h]h ]h"]h$]h&]refurij+uh1hhj)ubah}(h]h ]h"]h$]h&]uh1hhhhK'hj%ubah}(h]h ]h"]h$]h&]uh1hhhhK'hhhhubh)}(hThe schedstat documentation is maintained version 10 onwards and is not updated for version 11 and 12. The details for version 10 are available ath]hThe schedstat documentation is maintained version 10 onwards and is not updated for version 11 and 12. The details for version 10 are available at}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK)hhhhubh)}(hvhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=1da177e4c3f4 h]h)}(huhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=1da177e4c3f4h]h)}(hj[h]huhttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/sched-stats.txt?id=1da177e4c3f4}(hj]hhhNhNubah}(h]h ]h"]h$]h&]refurij[uh1hhjYubah}(h]h ]h"]h$]h&]uh1hhhhK,hjUubah}(h]h ]h"]h$]h&]uh1hhhhK,hhhhubh)}(hXThese fields are counters, and only increment. Programs which make use of these will need to start with a baseline observation and then calculate the change in the counters at each subsequent observation. A perl script which does this for many of the fields is available ath]hXThese fields are counters, and only increment. Programs which make use of these will need to start with a baseline observation and then calculate the change in the counters at each subsequent observation. A perl script which does this for many of the fields is available at}(hjwhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK.hhhhubh)}(h1http://eaglet.pdxhosts.com/rick/linux/schedstat/ h]h)}(h0http://eaglet.pdxhosts.com/rick/linux/schedstat/h]h)}(hjh]h0http://eaglet.pdxhosts.com/rick/linux/schedstat/}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhK3hjubah}(h]h ]h"]h$]h&]uh1hhhhK3hhhhubh)}(hNote that any such script will necessarily be version-specific, as the main reason to change versions is changes in the output format. For those wishing to write their own scripts, the fields are described here.h]hNote that any such script will necessarily be version-specific, as the main reason to change versions is changes in the output format. For those wishing to write their own scripts, the fields are described here.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK5hhhhubh)}(hhh](h)}(hCPU statisticsh]hCPU statistics}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjhhhhhK:ubh)}(hcpu 1 2 3 4 5 6 7 8 9h]hcpu 1 2 3 4 5 6 7 8 9}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK;hjhhubh)}(h)First field is a sched_yield() statistic:h]h)First field is a sched_yield() statistic:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK=hjhhubh)}(h'1) # of times sched_yield() was called h]henumerated_list)}(hhh]h list_item)}(h$# of times sched_yield() was called h]h)}(h## of times sched_yield() was calledh]h## of times sched_yield() was called}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK?hjubah}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]enumtypearabicprefixhsuffix)uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhK?hjhhubh)}(h%Next three are schedule() statistics:h]h%Next three are schedule() statistics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKAhjhhubh)}(h2) This field is a legacy array expiration count field used in the O(1) scheduler. We kept it for ABI compatibility, but it is always set to zero. 3) # of times schedule() was called 4) # of times schedule() left the processor idle h]j)}(hhh](j)}(hThis field is a legacy array expiration count field used in the O(1) scheduler. We kept it for ABI compatibility, but it is always set to zero.h]h)}(hThis field is a legacy array expiration count field used in the O(1) scheduler. We kept it for ABI compatibility, but it is always set to zero.h]hThis field is a legacy array expiration count field used in the O(1) scheduler. We kept it for ABI compatibility, but it is always set to zero.}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKChj+ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h # of times schedule() was calledh]h)}(hjEh]h # of times schedule() was called}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKEhjCubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(h.# of times schedule() left the processor idle h]h)}(h-# of times schedule() left the processor idleh]h-# of times schedule() left the processor idle}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKFhjZubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]j j j hjjstartKuh1jhj$ubah}(h]h ]h"]h$]h&]uh1hhhhKChjhhubh)}(h)Next two are try_to_wake_up() statistics:h]h)Next two are try_to_wake_up() statistics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKHhjhhubh)}(hm5) # of times try_to_wake_up() was called 6) # of times try_to_wake_up() was called to wake up the local cpu h]j)}(hhh](j)}(h&# of times try_to_wake_up() was calledh]h)}(hjh]h&# of times try_to_wake_up() was called}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKJhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@# of times try_to_wake_up() was called to wake up the local cpu h]h)}(h?# of times try_to_wake_up() was called to wake up the local cpuh]h?# of times try_to_wake_up() was called to wake up the local cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjjxKuh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKJhjhhubh)}(h8Next three are statistics describing scheduling latency:h]h8Next three are statistics describing scheduling latency:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKMhjhhubh)}(h7) sum of all time spent running by tasks on this processor (in nanoseconds) 8) sum of all time spent waiting to run by tasks on this processor (in nanoseconds) 9) # of timeslices run on this cpu h]j)}(hhh](j)}(hIsum of all time spent running by tasks on this processor (in nanoseconds)h]h)}(hjh]hIsum of all time spent running by tasks on this processor (in nanoseconds)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKOhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hPsum of all time spent waiting to run by tasks on this processor (in nanoseconds)h]h)}(hPsum of all time spent waiting to run by tasks on this processor (in nanoseconds)h]hPsum of all time spent waiting to run by tasks on this processor (in nanoseconds)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKPhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h!# of timeslices run on this cpu h]h)}(h# of timeslices run on this cpuh]h# of timeslices run on this cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKRhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjjxKuh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKOhjhhubeh}(h]cpu-statisticsah ]h"]cpu statisticsah$]h&]uh1hhhhhhhhK:ubh)}(hhh](h)}(hDomain statisticsh]hDomain statistics}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1hhj?hhhhhKVubh)}(hXAOne of these is produced per domain for each cpu described. (Note that if CONFIG_SMP is not defined, *no* domains are utilized and these lines will not appear in the output. is an extension to the domain field that prints the name of the corresponding sched domain. It can appear in schedstat version 17 and above.h](heOne of these is produced per domain for each cpu described. (Note that if CONFIG_SMP is not defined, }(hjPhhhNhNubhemphasis)}(h*no*h]hno}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1jXhjPubh domains are utilized and these lines will not appear in the output. is an extension to the domain field that prints the name of the corresponding sched domain. It can appear in schedstat version 17 and above.}(hjPhhhNhNubeh}(h]h ]h"]h$]h&]uh1hhhhKWhj?hhubh)}(hdomain 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45h]hdomain 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45}(hjrhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK]hj?hhubh)}(hMThe first field is a bit mask indicating what cpus this domain operates over.h]hMThe first field is a bit mask indicating what cpus this domain operates over.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK_hj?hhubh)}(hyThe next 33 are a variety of sched_balance_rq() statistics in grouped into types of idleness (busy, idle and newly idle):h]hyThe next 33 are a variety of sched_balance_rq() statistics in grouped into types of idleness (busy, idle and newly idle):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKahj?hhubh)}(hX| 1) # of times in this domain sched_balance_rq() was called when the cpu was busy 2) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when busy 3) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was busy 4) Total imbalance in load when the cpu was busy 5) Total imbalance in utilization when the cpu was busy 6) Total imbalance in number of tasks when the cpu was busy 7) Total imbalance due to misfit tasks when the cpu was busy 8) # of times in this domain pull_task() was called when busy 9) # of times in this domain pull_task() was called even though the target task was cache-hot when busy 10) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was busy 11) # of times in this domain a busier queue was found while the cpu was busy but no busier group was found 12) # of times in this domain sched_balance_rq() was called when the cpu was idle 13) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was idle 14) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was idle 15) Total imbalance in load when the cpu was idle 16) Total imbalance in utilization when the cpu was idle 17) Total imbalance in number of tasks when the cpu was idle 18) Total imbalance due to misfit tasks when the cpu was idle 19) # of times in this domain pull_task() was called when the cpu was idle 20) # of times in this domain pull_task() was called even though the target task was cache-hot when idle 21) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was idle 22) # of times in this domain a busier queue was found while the cpu was idle but no busier group was found 23) # of times in this domain sched_balance_rq() was called when the was just becoming idle 24) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was just becoming idle 25) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was just becoming idle 26) Total imbalance in load when the cpu was just becoming idle 27) Total imbalance in utilization when the cpu was just becoming idle 28) Total imbalance in number of tasks when the cpu was just becoming idle 29) Total imbalance due to misfit tasks when the cpu was just becoming idle 30) # of times in this domain pull_task() was called when newly idle 31) # of times in this domain pull_task() was called even though the target task was cache-hot when just becoming idle 32) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was just becoming idle 33) # of times in this domain a busier queue was found while the cpu was just becoming idle but no busier group was found Next three are active_load_balance() statistics: 34) # of times active_load_balance() was called 35) # of times active_load_balance() tried to move a task and failed 36) # of times active_load_balance() successfully moved a task Next three are sched_balance_exec() statistics: 37) sbe_cnt is not used 38) sbe_balanced is not used 39) sbe_pushed is not used Next three are sched_balance_fork() statistics: 40) sbf_cnt is not used 41) sbf_balanced is not used 42) sbf_pushed is not used Next three are try_to_wake_up() statistics: 43) # of times in this domain try_to_wake_up() awoke a task that last ran on a different cpu in this domain 44) # of times in this domain try_to_wake_up() moved a task to the waking cpu because it was cache-cold on its own cpu anyway 45) # of times in this domain try_to_wake_up() started passive balancing h](h)}(hX 1) # of times in this domain sched_balance_rq() was called when the cpu was busy 2) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when busy 3) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was busy 4) Total imbalance in load when the cpu was busy 5) Total imbalance in utilization when the cpu was busy 6) Total imbalance in number of tasks when the cpu was busy 7) Total imbalance due to misfit tasks when the cpu was busy 8) # of times in this domain pull_task() was called when busy 9) # of times in this domain pull_task() was called even though the target task was cache-hot when busy 10) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was busy 11) # of times in this domain a busier queue was found while the cpu was busy but no busier group was found 12) # of times in this domain sched_balance_rq() was called when the cpu was idle 13) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was idle 14) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was idle 15) Total imbalance in load when the cpu was idle 16) Total imbalance in utilization when the cpu was idle 17) Total imbalance in number of tasks when the cpu was idle 18) Total imbalance due to misfit tasks when the cpu was idle 19) # of times in this domain pull_task() was called when the cpu was idle 20) # of times in this domain pull_task() was called even though the target task was cache-hot when idle 21) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was idle 22) # of times in this domain a busier queue was found while the cpu was idle but no busier group was found 23) # of times in this domain sched_balance_rq() was called when the was just becoming idle 24) # of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was just becoming idle 25) # of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was just becoming idle 26) Total imbalance in load when the cpu was just becoming idle 27) Total imbalance in utilization when the cpu was just becoming idle 28) Total imbalance in number of tasks when the cpu was just becoming idle 29) Total imbalance due to misfit tasks when the cpu was just becoming idle 30) # of times in this domain pull_task() was called when newly idle 31) # of times in this domain pull_task() was called even though the target task was cache-hot when just becoming idle 32) # of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was just becoming idle 33) # of times in this domain a busier queue was found while the cpu was just becoming idle but no busier group was found h]j)}(hhh](j)}(hM# of times in this domain sched_balance_rq() was called when the cpu was busyh]h)}(hM# of times in this domain sched_balance_rq() was called when the cpu was busyh]hM# of times in this domain sched_balance_rq() was called when the cpu was busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKdhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hk# of times in this domain sched_balance_rq() checked but found the load did not require balancing when busyh]h)}(hk# of times in this domain sched_balance_rq() checked but found the load did not require balancing when busyh]hk# of times in this domain sched_balance_rq() checked but found the load did not require balancing when busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKfhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was busyh]h)}(hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was busyh]hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h-Total imbalance in load when the cpu was busyh]h)}(hjh]h-Total imbalance in load when the cpu was busy}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKjhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h4Total imbalance in utilization when the cpu was busyh]h)}(hjh]h4Total imbalance in utilization when the cpu was busy}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKkhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h8Total imbalance in number of tasks when the cpu was busyh]h)}(hjh]h8Total imbalance in number of tasks when the cpu was busy}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKlhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h9Total imbalance due to misfit tasks when the cpu was busyh]h)}(hj6h]h9Total imbalance due to misfit tasks when the cpu was busy}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKmhj4ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h:# of times in this domain pull_task() was called when busyh]h)}(hjMh]h:# of times in this domain pull_task() was called when busy}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKnhjKubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hd# of times in this domain pull_task() was called even though the target task was cache-hot when busyh]h)}(hd# of times in this domain pull_task() was called even though the target task was cache-hot when busyh]hd# of times in this domain pull_task() was called even though the target task was cache-hot when busy}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKohjbubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was busyh]h)}(hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was busyh]hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was busy}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKqhjzubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hh# of times in this domain a busier queue was found while the cpu was busy but no busier group was found h]h)}(hg# of times in this domain a busier queue was found while the cpu was busy but no busier group was foundh]hg# of times in this domain a busier queue was found while the cpu was busy but no busier group was found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKshjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hM# of times in this domain sched_balance_rq() was called when the cpu was idleh]h)}(hM# of times in this domain sched_balance_rq() was called when the cpu was idleh]hM# of times in this domain sched_balance_rq() was called when the cpu was idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKvhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hw# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was idleh]h)}(hw# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was idleh]hw# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKxhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was idleh]h)}(hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was idleh]hn# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKzhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h-Total imbalance in load when the cpu was idleh]h)}(hjh]h-Total imbalance in load when the cpu was idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK|hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h4Total imbalance in utilization when the cpu was idleh]h)}(hj h]h4Total imbalance in utilization when the cpu was idle}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK}hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h8Total imbalance in number of tasks when the cpu was idleh]h)}(hj"h]h8Total imbalance in number of tasks when the cpu was idle}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhK~hj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h9Total imbalance due to misfit tasks when the cpu was idleh]h)}(hj9h]h9Total imbalance due to misfit tasks when the cpu was idle}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hF# of times in this domain pull_task() was called when the cpu was idleh]h)}(hF# of times in this domain pull_task() was called when the cpu was idleh]hF# of times in this domain pull_task() was called when the cpu was idle}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjNubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hd# of times in this domain pull_task() was called even though the target task was cache-hot when idleh]h)}(hd# of times in this domain pull_task() was called even though the target task was cache-hot when idleh]hd# of times in this domain pull_task() was called even though the target task was cache-hot when idle}(hjjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjfubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was idleh]h)}(hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was idleh]hn# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj~ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hh# of times in this domain a busier queue was found while the cpu was idle but no busier group was found h]h)}(hg# of times in this domain a busier queue was found while the cpu was idle but no busier group was foundh]hg# of times in this domain a busier queue was found while the cpu was idle but no busier group was found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hW# of times in this domain sched_balance_rq() was called when the was just becoming idleh]h)}(hW# of times in this domain sched_balance_rq() was called when the was just becoming idleh]hW# of times in this domain sched_balance_rq() was called when the was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was just becoming idleh]h)}(h# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was just becoming idleh]h# of times in this domain sched_balance_rq() checked but found the load did not require balancing when the cpu was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h|# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was just becoming idleh]h)}(h|# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was just becoming idleh]h|# of times in this domain sched_balance_rq() tried to move one or more tasks and failed, when the cpu was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h;Total imbalance in load when the cpu was just becoming idleh]h)}(hjh]h;Total imbalance in load when the cpu was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hBTotal imbalance in utilization when the cpu was just becoming idleh]h)}(hjh]hBTotal imbalance in utilization when the cpu was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hFTotal imbalance in number of tasks when the cpu was just becoming idleh]h)}(hj&h]hFTotal imbalance in number of tasks when the cpu was just becoming idle}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj$ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hGTotal imbalance due to misfit tasks when the cpu was just becoming idleh]h)}(hj=h]hGTotal imbalance due to misfit tasks when the cpu was just becoming idle}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj;ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@# of times in this domain pull_task() was called when newly idleh]h)}(hjTh]h@# of times in this domain pull_task() was called when newly idle}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjRubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hr# of times in this domain pull_task() was called even though the target task was cache-hot when just becoming idleh]h)}(hr# of times in this domain pull_task() was called even though the target task was cache-hot when just becoming idleh]hr# of times in this domain pull_task() was called even though the target task was cache-hot when just becoming idle}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjiubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h|# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was just becoming idleh]h)}(h|# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was just becoming idleh]h|# of times in this domain sched_balance_rq() was called but did not find a busier queue while the cpu was just becoming idle}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hv# of times in this domain a busier queue was found while the cpu was just becoming idle but no busier group was found h]h)}(hu# of times in this domain a busier queue was found while the cpu was just becoming idle but no busier group was foundh]hu# of times in this domain a busier queue was found while the cpu was just becoming idle but no busier group was found}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjuh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKdhjubh)}(h0Next three are active_load_balance() statistics:h]h0Next three are active_load_balance() statistics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h34) # of times active_load_balance() was called 35) # of times active_load_balance() tried to move a task and failed 36) # of times active_load_balance() successfully moved a task h]j)}(hhh](j)}(h+# of times active_load_balance() was calledh]h)}(hjh]h+# of times active_load_balance() was called}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h@# of times active_load_balance() tried to move a task and failedh]h)}(hjh]h@# of times active_load_balance() tried to move a task and failed}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h;# of times active_load_balance() successfully moved a task h]h)}(h:# of times active_load_balance() successfully moved a taskh]h:# of times active_load_balance() successfully moved a task}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjjxK"uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h/Next three are sched_balance_exec() statistics:h]h/Next three are sched_balance_exec() statistics:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hP37) sbe_cnt is not used 38) sbe_balanced is not used 39) sbe_pushed is not used h]j)}(hhh](j)}(hsbe_cnt is not usedh]h)}(hj;h]hsbe_cnt is not used}(hj=hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj9ubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hsbe_balanced is not usedh]h)}(hjRh]hsbe_balanced is not used}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjPubah}(h]h ]h"]h$]h&]uh1jhj6ubj)}(hsbe_pushed is not used h]h)}(hsbe_pushed is not usedh]hsbe_pushed is not used}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjgubah}(h]h ]h"]h$]h&]uh1jhj6ubeh}(h]h ]h"]h$]h&]j j j hjjjxK%uh1jhj2ubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h/Next three are sched_balance_fork() statistics:h]h/Next three are sched_balance_fork() statistics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hP40) sbf_cnt is not used 41) sbf_balanced is not used 42) sbf_pushed is not used h]j)}(hhh](j)}(hsbf_cnt is not usedh]h)}(hjh]hsbf_cnt is not used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hsbf_balanced is not usedh]h)}(hjh]hsbf_balanced is not used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hsbf_pushed is not used h]h)}(hsbf_pushed is not usedh]hsbf_pushed is not used}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjjxK(uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(h+Next three are try_to_wake_up() statistics:h]h+Next three are try_to_wake_up() statistics:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubh)}(hX;43) # of times in this domain try_to_wake_up() awoke a task that last ran on a different cpu in this domain 44) # of times in this domain try_to_wake_up() moved a task to the waking cpu because it was cache-cold on its own cpu anyway 45) # of times in this domain try_to_wake_up() started passive balancing h]j)}(hhh](j)}(hg# of times in this domain try_to_wake_up() awoke a task that last ran on a different cpu in this domainh]h)}(hg# of times in this domain try_to_wake_up() awoke a task that last ran on a different cpu in this domainh]hg# of times in this domain try_to_wake_up() awoke a task that last ran on a different cpu in this domain}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hy# of times in this domain try_to_wake_up() moved a task to the waking cpu because it was cache-cold on its own cpu anywayh]h)}(hy# of times in this domain try_to_wake_up() moved a task to the waking cpu because it was cache-cold on its own cpu anywayh]hy# of times in this domain try_to_wake_up() moved a task to the waking cpu because it was cache-cold on its own cpu anyway}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hE# of times in this domain try_to_wake_up() started passive balancing h]h)}(hD# of times in this domain try_to_wake_up() started passive balancingh]hD# of times in this domain try_to_wake_up() started passive balancing}(hj;hhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhj7ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjjxK+uh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubeh}(h]h ]h"]h$]h&]uh1hhhhKdhj?hhubeh}(h]domain-statisticsah ]h"]domain statisticsah$]h&]uh1hhhhhhhhKVubh)}(hhh](h)}(h/proc//schedstath]h/proc//schedstat}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1hhjihhhhhKubh)}(hschedstats also adds a new /proc//schedstat file to include some of the same information on a per-process level. There are three fields in this file correlating for that process to:h]hschedstats also adds a new /proc//schedstat file to include some of the same information on a per-process level. There are three fields in this file correlating for that process to:}(hjzhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjihhubh)}(h1) time spent on the cpu (in nanoseconds) 2) time spent waiting on a runqueue (in nanoseconds) 3) # of timeslices run on this cpu h]j)}(hhh](j)}(h&time spent on the cpu (in nanoseconds)h]h)}(hjh]h&time spent on the cpu (in nanoseconds)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h1time spent waiting on a runqueue (in nanoseconds)h]h)}(hjh]h1time spent waiting on a runqueue (in nanoseconds)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h # of timeslices run on this cpu h]h)}(h# of timeslices run on this cpuh]h# of timeslices run on this cpu}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]j j j hjjuh1jhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjihhubh)}(hA program could be easily written to make use of these extra fields to report on how well a particular process or set of processes is faring under the scheduler's policies. A simple version of such a program is available ath]hA program could be easily written to make use of these extra fields to report on how well a particular process or set of processes is faring under the scheduler’s policies. A simple version of such a program is available at}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1hhhhKhjihhubh)}(h=http://eaglet.pdxhosts.com/rick/linux/schedstat/v12/latency.ch]h)}(hjh]h)}(hjh]h=http://eaglet.pdxhosts.com/rick/linux/schedstat/v12/latency.c}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurijuh1hhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjubah}(h]h ]h"]h$]h&]uh1hhhhKhjihhubeh}(h]proc-pid-schedstatah ]h"]/proc//schedstatah$]h&]uh1hhhhhhhhKubeh}(h]scheduler-statisticsah ]h"]scheduler statisticsah$]h&]uh1hhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(hN generatorN datestampN source_linkN source_urlN toc_backlinksentryfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerjC error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}substitution_names}refnames}refids}nameids}(j j j<j9jfjcj j u nametypes}(j j<jfj uh}(j hj9jjcj?j jiu footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages](hsystem_message)}(hhh]h)}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypeINFOsourcehlineKuh1j hj$ubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "5" (ordinal 5)h]h>Enumerated list start value not ordinal-1: “5” (ordinal 5)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjubj )}(hhh]h)}(h:Enumerated list start value not ordinal-1: "7" (ordinal 7)h]h>Enumerated list start value not ordinal-1: “7” (ordinal 7)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1hhj ubah}(h]h ]h"]h$]h&]levelKtypej sourcehlineKuh1j hjubj )}(hhh]h)}(h