sched_aps_partition_stats

Структура, содержащая статистику использования ресурсов CPU партицией адаптивного планировщика

Прототип:

#include <sys/sched_aps.h>
#include <sys/neutrino.h>
typedef struct {
/* in parm */
_Int16t id;
/* out parms */
_Uint64t run_time_cycles;
_Uint64t critical_time_cycles;
_Uint64t run_time_cycles_w2;
_Uint64t critical_time_cycles_w2;
_Uint64t run_time_cycles_w3;
_Uint64t critical_time_cycles_w3;
_Uint32t stats_flags;
} sched_aps_partition_stats;

Описание:

Структура используется в функции SchedCtl() в сочетании с командой SCHED_APS_PARTITION_STATS для получения статистики использования ресурсов CPU партицией адаптивного планировщика.

Структура включает следующие поля:

id
This is both an input and output field. As input, it's the ID number of the first partition you want data for. If you've passed an array of sched_aps_partition_stats structures, the command fills in the ID number for each partition that it fills in statistics for.
run_time_cycles
The CPU execution time during the last scheduling window.
critical_time_cycles
The time spent running critical threads during the last scheduling window.
run_time_cycles_w2
The CPU time spent during the last windowsize2_cycles. Window 2 is typically 10 times the length of the averaging window.
critical_time_cycles_w2
The time spent running critical threads during the last windowsize2_cycles.
run_time_cycles_w3
The CPU time spent during the last windowsize3_cycles. Window 3 is typically 100 times the length of the averaging window.
critical_time_cycles_w3
The time spent running critical threads during the last windowsize3_cycles.
stats_flags
A set of the following flags:
SCHED_APS_PSTATS_IS_BANKRUPT_NOW
the critical time used is greater than the critical budget at the time you used the SCHED_APS_PARTITION_STATS command.
SCHED_APS_PSTATS_WAS_BANKRUPT
the partition was declared bankrupt sometime since the last restart.

Классификация:

ЗОСРВ «Нейтрино»

Тематические ссылки:

SchedCtl()




Предыдущий раздел: Описание API системной библиотеки