- 博客(7)
- 资源 (13)
- 收藏
- 关注
转载 linux调度器(十)——调度器/proc信息解读
注下面的时间或时刻都是从rq->clock中获得的,而这个值是由update_rq_clock底层cpu来更新的。并且很多信息是需要内核配置CONFIG_SCHEDSTATS才有。 /proc//sched $cat /proc/28733/sched cpu_test (28733, #threads: 1)se.exec_start : 2781299327.3972
2017-09-30 10:45:10 1971
原创 taskset - retrieve or set a process's CPU affinity
taskset is used to set or retrieve the CPU affinity of a running process given its PID or to launch a new COMMAND with a given CPU affinity. CPU affinity is a scheduler property that "bonds" a process
2017-09-27 15:41:35 732
原创 修复make 时出现 clock skew detected 的warning 方法
find . -type f | xargs touch用上面这个命令即可更想所有文件的时间戳.彻底解决.
2017-09-27 15:27:17 3103 1
原创 实时进程RT的调度策略RR - Time Slice
Time Slice 目前只用于RR策略. 默认的时间片长度是100 毫秒 /* * These are the 'tuning knobs' of the scheduler: * * default timeslice is 100 msecs (used only for SCHED_RR tasks). * Timeslices get refilled after they ex
2017-09-25 20:39:45 1526
原创 进程的周期Sched
进程的调度方式之一就是周期性的Tick 调度, 该调度由Timer周期性的softirq触发./* * This function gets called by the timer code, with HZ frequency. * We call it with interrupts disabled. * * It also gets called by the fork code,
2017-09-25 20:11:48 665
原创 CONFIG_NO_HZ (aka dynamic tick functionality)
CONFIG_NO_HZ ,也就是tickless mode, 这个定义启用了周期时钟的一个新特性,就是动态时钟.主要的改进就是让系统在idle 时可以停止tick,降低系统功耗. 在CPU有workload 时恢复正常的tick,产生周期性的Tick事件./* * Enable / Disable tickless mode */static int __init setup_tick_no
2017-09-25 19:31:59 1662
原创 CFS中的虚拟运行时间vruntime 的理解
CFS调度policy中,vruntime 最小的进程优先调度.先 简单说一下CFS调度算法的思想:理想状态下每个进程都能获得相同的时间片,并且同时运行在CPU上,但实际上一个CPU同一时刻运行的进程只能有一个。 也就是说,当一个进程占用CPU时,其他进程就必须等待。CFS为了实现公平,必须惩罚当前正在运行的进程,以使那些正在等待的进程下次被调度。具体实现时,CFS通过每个进程的虚拟运
2017-09-24 21:35:33 2111
Linux 系統 Z87[z87x]系列主板,intel 千兆網卡驅動.
2013-12-19
第4章 嵌入式USB驱动分析
2011-05-18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人