![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
schedule
文章平均质量分 92
liglei
这个作者很懒,什么都没留下…
展开
-
WALT kernel4.14
一、关键数据结构 task event enum task_event { PUT_PREV_TASK = 0, PICK_NEXT_TASK = 1, TASK_WAKE = 2, TASK_MIGRATE = 3, TASK_UPDATE = 4, IRQ_UPDATE = 5,}; ravg /* ravg represents frequency sca...原创 2021-04-30 15:39:44 · 827 阅读 · 0 评论 -
[ltp][eas]测试用例解析
eas_one_small_task setup阶段:configure and enable tracing(/sys/kernel/tracing): 分析解析后的trace 加载trace,并按定义的结构体struct trace_record{}格式进行解析 echo 0 > tracing_on //disable tracing 创建一个while(1) task eas_one_small_t,每sleep 1ms起来...原创 2020-12-04 16:47:26 · 1286 阅读 · 0 评论 -
schedtune
sugov_get_util\--> boosted_cpu_util \--> schedtune_cpu_margin(util, cpu) \-->schedtune_cpu_boost schedtune_margin(util, boost) trace_sched_boost_cpu(cpu, util, margin)select_idle_sibling_cs...原创 2020-12-02 09:29:33 · 601 阅读 · 0 评论 -
[ltp][eas]eas_big_to_small.c
测试用例图示测试用例源码1 /* 2 * Copyright (c) 2018 Google, Inc. 3 * 4 * SPDX-License-Identifier: GPL-2.0-or-later 5 * 6 * Task starts out as a CPU hog and then becomes small. 7 * Task placement and downmigration latency are verified. 8 *...原创 2020-10-27 15:41:17 · 329 阅读 · 0 评论 -
CPU-PnP工具(一): cpu_loading
(一)简介:测试前取/sys/devices/system/cpu/cpufreq/policy4/stats/time_in_state(个cpu频点及运行时间: Documentation/cpu-freq/cpufreq-stats.txt)和/proc/stat(各cpu不同state的时间)数据,测试开始,测试程序sleep指定的测试时间,测试结束,再次获取测试结束时的节点数据,进行...原创 2019-11-21 17:02:04 · 1211 阅读 · 1 评论 -
cpu_scale and freq_scale
(init/main.c)kernel_init --> kernel_init_freeable -->( arm64/kernel/smp.c)--> smp_prepare_cpus -->init_cpu_topology-->( arm64/kernel/topology.c)-->parse_dt_topology -->p...原创 2019-03-22 10:58:06 · 1648 阅读 · 0 评论 -
util变频
在sugov初始化时注册回调函数,到update_util_data中 797 static int sugov_start(struct cpufreq_policy *policy) {823 for_each_cpu(cpu, policy->cpus) {824 struct sugov_cpu *sg_cpu = &per_cpu(su...原创 2019-03-18 16:43:48 · 1005 阅读 · 0 评论 -
调度器 schedule pelt 介绍
进程类型 交互是进程:人机交互进程,如鼠标键盘,触摸屏,系统响应越快越好 批处理进程:占用较多系统资源,如编译代码 实时进程:对延时有严格要求 调度策略与调度器 用户进程的调度策略 调度器 SCHED_NORMAL cfs SCHED_BATCH cfs SCHED_FIFO realtime SCHED_RR realtime SCHED_...原创 2018-09-29 14:14:00 · 3831 阅读 · 0 评论