cyrusandy

2024年1月6日

【WALT】频率计算(未更新完)

摘要: 【WALT】频率计算 代码版本:Linux4.9 android-msm-crosshatch-4.9-android12 @目录【WALT】频率计算一、sugov(schedutil governor)二、计算时机1. 直接调用 cpufreq_update_util() 执行2. 通过 cpuf 阅读全文

posted @ 2024-01-06 18:06 Cyrusandy 阅读(145) 评论(0) 推荐(0) 编辑

【WALT】调度与负载计算(未更新完)

摘要: 【WALT】调度与负载计算 代码版本:Linux4.9 android-msm-crosshatch-4.9-android12 注:a56爆大奖在线娱乐中的任务主要指进程。 @目录【WALT】调度与负载计算一、WALT 负载0. top task load1. 任务负载a. demand 路径b. busytim 阅读全文

posted @ 2024-01-06 18:05 Cyrusandy 阅读(234) 评论(0) 推荐(0) 编辑

【WALT】top task 相关代码详解

摘要: 【WALT】top task 相关代码详解 代码版本:Linux4.9 android-msm-crosshatch-4.9-android12 @目录【WALT】top task 相关代码详解结构体初始化 & 清理函数更新 top task窗口翻滚时更新 top task两个运行队列 top ta 阅读全文

posted @ 2024-01-06 18:04 Cyrusandy 阅读(46) 评论(0) 推荐(0) 编辑

【WALT】update_cpu_busy_time() 代码详解 & busytime 路径负载计算

摘要: @目录【WALT】update_cpu_busy_time() 代码详解代码展示代码逻辑⑴ 更新标志位⑵ 滚动窗口⑶ 不累加运行时间的条件判断⑶ 任务处于 grp(相关线程组 related_thread_group)中⑷ 仍在旧窗口中⑸ 进入新窗口⑹ 更新 top taskfixup_busy_t 阅读全文

posted @ 2024-01-06 18:04 Cyrusandy 阅读(42) 评论(0) 推荐(0) 编辑

【WALT】predict_and_update_buckets() 与 update_task_pred_demand() 代码详解

摘要: @目录【WALT】predict_and_update_buckets() 与 update_task_pred_demand() 代码详解代码展示代码逻辑⑴ 根据 runtime 给出桶的下标⑵ 根据桶的下标预测 pred_demand1. 如果任务刚被创建,直接结束2. 根据下标 bidx 和数 阅读全文

posted @ 2024-01-06 18:03 Cyrusandy 阅读(22) 评论(0) 推荐(0) 编辑

【WALT】update_history() 代码详解

摘要: @目录【WALT】update_history() 代码详解代码展示代码逻辑⑴ 判断是否更新任务信息⑵ 更新历史窗口数据sum_history[RAVG_HIST_SIZE_MAX]⑶ 计算 demand⑷ 计算 pred_demand⑸ 将 demand 与 pred_demand 更新到 CPU 阅读全文

posted @ 2024-01-06 18:02 Cyrusandy 阅读(43) 评论(0) 推荐(0) 编辑

导航