原创 eas k5.4 (五):v4.20 - Runtime scheduler domain flag detection

AOSP Kernel4.14已經有這個feature,kernel4.20參考AOSP kernel也支持這個feature: e1799a8 sched/topology, arch/arm: Rebuild sched_domain

原创 eas k5.4 (三):v5.3 - Tracepoints (PELT and over-utilzation)

https://lore.kernel.org/lkml/[email protected]/ a056a5b sched/debug: Export the newly added tra

原创 eas k5.4 (六):v4.20 - Misfit task

757ffdd sched/fair: Set rq->rd->overload when misfit e90c8fe sched/fair: Wrap rq->rd->overload accesses with READ/WRITE

原创 shell 腳本實例(一) - 校正systrace時間戳

#!/bin/bash #$1 is systrace file; #set -x grep -A 80 "entries-in-buffer/entries-written" "$1" echo -n "\033[31m 從上邊tr

原创 eas k5.4 (四):v5.0 - Per-cpu Energy Model and Energy Aware Scheduling

Linux 5.0 new feature:https://kernelnewbies.org/Linux_5.0#Energy-aware_Scheduling_for_Arm_big.LITTLE 732cd75 sched/fa

原创 eas k5.4 (二):v5.4 - Util(ization) clamping

 目錄 簡介 一. 數據結構 1. rq中uclamp的實現 2.  task中uclamp的實現 3. 擴展 CPU's cgroup controller 二. 關鍵函數 1. uclamp的初始化 2. fork task的ucla

原创 eas k5.4 (八):v4.17 - Idle CPU Per-Entity Load-Tracking (PELT) update

https://lkml.org/lkml/2019/1/16/156 10a35e6 sched/pelt: Skip updating util_est when utilization is higher than CPU's ca

原创 shell腳本實例(二) - ltp測試

測試sched_latency_dl 100次 for i in `seq 0 99`;do ./sched_latency_dl > run.log 2>& 1;echo "----->$i";if [ `grep "DL task

原创 eas k5.4 (九):v4.15 - Frequency Invariant Engine (FIE)

https://lkml.org/lkml/2017/7/6/268 431ead0 arm64: wire cpu-invariant accounting support up to the task scheduler 4e63eb

原创 CPU-PnP工具(一): cpu_loading

(一)簡介: 測試前取/sys/devices/system/cpu/cpufreq/policy4/stats/time_in_state(個cpu頻點及運行時間: Documentation/cpu-freq/cpufreq-stat

原创 eas k5.4 (一):v5.4 - Patch-set sched:fair: Reduce complexity of energy calculation

eb92692 sched/fair: Speed-up energy-aware wake-ups find_energy_efficient_cpu() pack small task到一個cpu使其它cpu更容易進入deeper i

原创 eas k5.4 (一):v5.4 - Patch-set 'sched/fair: Reduce complexity of energy calculation'

eb92692 sched/fair: Speed-up energy-aware wake-ups

原创 eas k5.4 (七):v4.17 - Util(ization) Est(imated)

519329 sched/fair: Update util_est only on util_avg updates a07630b sched/cpufreq/schedutil: Use util_est for OPP selec

原创 kernel5.4 schedutil

主要結構體

原创 shell腳本實例

grep & awk 打印匹配行的第二列 0.304443153 281764586 cycles 0.304443153 76724668 instructions 0.304443153 12055101 branch-instr