当前位置:首页>Linux>Linux调度器核心数据结构

Linux调度器核心数据结构

  • 2026-08-19 20:14:59
Linux调度器核心数据结构

基于 Linux Kernel v6.6 LTS 源码分析

主要源文件:include/linux/sched.h, kernel/sched/sched.h

阅读调度代码,首先要知道对应的抽象是如何定义的,即核心数据结构定义。

task_struct 进程描述符

linux内核把进程称为任务,task_struct是进程描述符(process descriptor),该结构定义在文件中,进程描述符中包含一个具体进程的所有信息。

// include/linux/sched.h (约 780 行起)struct task_struct { // ── 基本标识 ── volatile long state; // 进程状态: TASK_RUNNING / TASK_INTERRUPTIBLE / ... pid_t pid; struct mm_struct *mm; // 进程地址空间 // ── 调度核心字段 ── int on_rq; // 是否在运行队列上 (0=不在, 1=在普通rq, 2=在isolate) int prio; // 动态优先级 (0-139, 0-99=RT, 100-139=CFS) int static_prio; // 静态优先级 (nice值映射: 120+nice) int normal_prio; // 归一化优先级 unsigned int rt_priority; // RT 优先级 (0-99) // ── 调度类指针 ── const struct sched_class *sched_class; // 指向所属调度类 // ── CFS 调度实体 ── struct sched_entity se; // 嵌入 CFS 调度实体 // ── RT 调度实体 ── struct sched_rt_entity rt; // 嵌入 RT 调度实体 // ── DL 调度实体 ── struct sched_dl_entity dl; // 嵌入 Deadline 调度实体 // ── CPU 亲和性 ── cpumask_t cpus_allowed; // 允许运行的 CPU 集合 // ── 调度策略 ── unsigned int policy; // SCHED_NORMAL/SCHED_FIFO/SCHED_RR/SCHED_DEADLINE // ── 运行统计 ── u64 utime, stime; // 用户态/内核态运行时间 struct sched_info sched_info; // 调度统计信息 // ── 上下文切换 ── struct thread_struct thread; // CPU 上下文(寄存器等) struct fs_struct *fs; struct files_struct *files; struct task_group *sched_task_group; // ... 总计约 800+ 字段};

关键点:task_struct 中嵌入了三种调度实体(se、rt、dl),通过 sched_class 指针决定使用哪种调度策略。一个进程同一时刻只归属一个调度类。

sched_class 调度器类

调度器类提供了通用调度器和各个调度方法之间的关联。调度器类由特性数据结构中汇集的几个函数指针表示。其结构如下所示:

// kernel/sched/sched.h (约 2190 行)struct sched_class { // 调度类链表:按优先级排序,next 指向下一个较低优先级的调度类 const struct sched_class *next; // ── 入队/出队 ── void (*enqueue_task)(struct rq *rq, struct task_struct *p, int flags); void (*dequeue_task)(struct rq *rq, struct task_struct *p, int flags); // ── 核心选择函数 ── struct task_struct *(*pick_next_task)(struct rq *rq); // ── 进程抢占/让出 ── void (*put_prev_task)(struct rq *rq, struct task_struct *p); void (*set_next_task)(struct rq *rq, struct task_struct *p, bool first); // ── 时钟中断回调 ── void (*task_tick)(struct rq *rq, struct task_struct *p, int queued); // ── 进程切换回调 ── void (*switched_from)(struct rq *this_rq, struct task_struct *task); void (*switched_to)(struct rq *this_rq, struct task_struct *task); void (*reweight_task)(struct rq *rq, struct task_struct *p, ...); // ── 优先级变更 ── void (*prio_changed)(struct rq *this_rq, struct task_struct *task, int oldprio); // ── 负载均衡 ── int (*balance)(struct rq *rq, struct task_struct *prev, struct rq_flags *rf); int (*select_cpu)(struct task_struct *p, int task_cpu, int flags); void (*migrate_task_rq)(struct task_struct *p, int new_cpu); void (*task_woken)(struct rq *this_rq, struct task_struct *task); void (*set_cpus_allowed)(struct task_struct *p, struct affinity_context *ctx); // ── 调度域/组 ── unsigned int task_group; // 所属 task_group (cgroup 调度) // ...};

关键点:sched_class 是调度器的核心抽象。每个调度类实现这组函数指针,调度器核心通过这些接口操作不同策略的进程。

rq CPU 运行队列

// kernel/sched/sched.h (约 100 行)struct rq { raw_spinlock_t __lock; // 保护 rq 的自旋锁 unsigned int cpu; // 此 rq 所属的 CPU 编号 unsigned int online; // ── 当前运行进程 ── struct task_struct *curr; // 当前正在运行的进程 struct task_struct *idle; // 此 CPU 的 idle 进程 struct task_struct *stop; // 此 CPU 的 stop 进程 // ── 各调度类子运行队列 ── struct cfs_rq cfs; // CFS 运行队列 struct rt_rq rt; // RT 运行队列 struct dl_rq dl; // Deadline 运行队列 // ── 调度类指针(快速访问)── const struct sched_class *idle_sched_class; // ── 调度统计 ── u64 nr_switches; // 上下文切换次数 u64 nr_running; // 总运行进程数 u64 clock; // rq 时钟 u64 clock_task; // 不含 IRQ 时间的时钟 // ── 负载均衡 ── struct sched_domain *sd; // 调度域链表 unsigned long cpu_capacity; // CPU 算力 unsigned long cpu_capacity_orig; // ── next_balance ── u64 next_balance; // 下次负载均衡时间 struct callback_head *balance_callback; // 负载均衡回调链表 // ── cgroup 调度 ── struct list_head cfs_tasks; // CFS 任务链表 // ...};// 每个 CPU 一个 rq,全局数组DEFINE_PER_CPU(struct rq, runqueues);

关键点:rq 是每个 CPU 的运行队列,它是所有调度类的容器。curr 字段始终指向当前运行的进程。通过 this_rq() 获取当前 CPU 的 rq。

cfs_rq CFS 运行队列

// kernel/sched/sched.h (约 580 行)struct cfs_rq { struct load_weight load; // 队列总负载权重 unsigned int nr_running; // 运行中的进程数 unsigned int h_nr_running; // 层级运行数(含子组) // ── 红黑树根节点 ── struct rb_root_cached tasks_timeline; // 按 vruntime 排序的红黑树 /* * rb_root_cached 包含: * - rb_root rb_root: 红黑树根 * - rb_node *rb_leftmost: 最左节点(vruntime 最小,即下一个要运行的) */ // ── 当前运行实体 ── struct sched_entity *curr; // 当前运行的调度实体 struct sched_entity *next; // 下一个待运行(preemption 用) struct sched_entity *last; // 上一个运行的 struct sched_entity *skip; // 跳过的实体(skip buddy) // ── vruntime 基准 ── u64 min_vruntime; // 队列最小 vruntime(新进程继承此值) u64 clock_task; // 不含 IRQ 的时钟 // ── 负载跟踪 (PELT) ── unsigned long runnable_avg; // 可运行平均负载 unsigned long util_avg; // 利用率平均值 unsigned long util_est; // 利用率预估 // ── 带宽控制 ── struct rq *rq; // 指向所属的 rq struct task_group *tg; // 所属 task_group (cgroup) int throttled; // 是否被限流 u64 throttled_clock; // 限流开始时间 struct cfs_bandwidth *cfs_b; // 带宽控制结构 // ...};

sched_entity CFS 调度实体

调度器实体结构作为一个名为se的成员变量,嵌入在进程描述符struct task_struct内。

// include/linux/sched.h (约 520 行)struct sched_entity { // ── 负载权重 ── struct load_weight load; // 权重(nice 值映射,决定 CPU 时间比例) /* * nice -20 → weight 88761 (约 10% CPU) * nice 0 → weight 1024 (基准) * nice +19 → weight 15 (约 0.15% CPU) * 映射表: kernel/sched/sched.h 中的 prio_to_weight[] */ // ── 红黑树节点 ── struct rb_node run_node; // 嵌入 cfs_rq 红黑树的节点 // ── vruntime(CFS 核心)── u64 vruntime; // 虚拟运行时间(决定红黑树排序) /* * vruntime 增长速率 = delta_exec * NICE_0_LOAD / weight * nice 0 进程: vruntime == 实际运行时间 * 高优先级进程: weight 大, vruntime 增长慢 → 获得更多 CPU 时间 * 低优先级进程: weight 小, vruntime 增长快 → 获得更少 CPU 时间 */ // ── 运行统计 ── u64 exec_start; // 本次开始执行时间 u64 sum_exec_runtime; // 总执行时间 u64 prev_sum_exec_runtime; // 上次切换时的执行时间 u64 sleep_start; // 睡眠开始时间 // ── 负载跟踪 (PELT) ── struct sched_avg avg; // 调度平均负载 // ── cgroup 调度 ── struct cfs_rq *cfs_rq; // 所属的 cfs_rq struct cfs_rq *my_q; // 如果是 task_group,指向子 cfs_rq // ── on_rq 状态 ── unsigned char on_rq; // 是否在 cfs_rq 上 // ── vruntime 调整 ── u64 vlag; // virtual lag (v6.6 新增, 替代旧版 min_vruntime 补偿) s64 slice; // 时间片预算 (v6.6 新增)};

rt_rq RT 运行队列

// kernel/sched/sched.h (约 700 行)struct rt_rq { struct rt_prio_array active; // 优先级位数组 /* * struct rt_prio_array { * DECLARE_BITMAP(bitmap, MAX_RT_PRIO); // 100 位优先级位图 * struct list_head queue[MAX_RT_PRIO]; // 每个优先级一个链表头 * }; * bitmap 第 i 位为 1 → 优先级 i 有进程在等待 * queue[i] → 优先级 i 的进程链表 * 查找最高优先级: sched_find_first_bit(bitmap) → O(1) */ unsigned int rt_nr_running; // RT 运行进程数 unsigned int rt_nr_migratory; // 可迁移进程数 // ── RT 带宽控制 ── struct rt_bandwidth rt_bandwidth; // RT 带宽限制 u64 rt_time; // RT 消耗时间 u64 rt_throttled; // 限流时间戳 int rt_throttled; // 是否被限流 // ── cgroup ── struct rq *rq; // 所属 rq struct task_group *tg; // 所属 task_group // ...};

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-08-21 21:01:12 HTTP/2.0 GET : https://f.mffb.com.cn/a/507368.html
  2. 运行时间 : 0.551026s [ 吞吐率:1.81req/s ] 内存消耗:4,556.44kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=30ec02b2c8917fd89cabfb63c7104aeb
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000988s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.001660s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.018248s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000731s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.001501s ]
  6. SELECT * FROM `set` [ RunTime:0.000591s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.001521s ]
  8. SELECT * FROM `article` WHERE `id` = 507368 LIMIT 1 [ RunTime:0.082851s ]
  9. UPDATE `article` SET `lasttime` = 1787317272 WHERE `id` = 507368 [ RunTime:0.005830s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.009494s ]
  11. SELECT * FROM `article` WHERE `id` < 507368 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.006905s ]
  12. SELECT * FROM `article` WHERE `id` > 507368 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.067765s ]
  13. SELECT * FROM `article` WHERE `id` < 507368 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.112423s ]
  14. SELECT * FROM `article` WHERE `id` < 507368 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.043797s ]
  15. SELECT * FROM `article` WHERE `id` < 507368 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.013862s ]
0.554654s