Linux Performance and Tuning Linux教学课件.ppt

  1. 1、本文档共281页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Linux Performance and Tuning Understanding the Linux operating system register Cpu: 10G 73:74 4k, page, page frame(页框) 60-70% 仿真 Monitor OS ? VM Write back(回写) 计算机的体系 运算器 控制器 存储设备 输入设备 输出设备 Cache line 一级缓存 指令缓存 数据缓存 完全关联 Full associative 部分关联 Set associative 直接映射 Direct mapping Schematic interaction of different performance components Linux process management What is a process? A process is an instance of execution that runs on a processor From the kernels point of view, the purpose of a process is to act as an entity to which system resources (CPU time, memory, etc.) are allocated They include a set of resources such as open files and pending signals, internal kernel data, processor state, a memory address space with one or more memory mappings, one or more threads of execution, and a data section containing global variables Process Descriptor and the Task Structure To manage processes, the kernel must have a clear picture of what each process is doing The kernel stores the list of processes in a circular doubly linked list called the task list All processes running on Linux operating system are managed by the task_struct structure, which is also called a process descriptor The task_struct is a relatively large data structure, at around 1.7 kilobytes on a 32-bit machine The process descriptor and task list List Task_structure The Linux process descriptor Process State TASK_RUNNING The process is either executing on a CPU or waiting to be executed TASK_INTERRUPTIBLE The process is suspended (sleeping) until some condition becomes true. Raising a hardware interrupt, releasing a system resource the process is waiting for, or delivering a signal are examples of conditions that might wake up the process (put its state back to TASK_RUNNING) A typical example of a TASK_INTERRUPTIBLE process is a process waiting for keyboard interrupt TASK_UNINTERRUPTIBLE Like TASK_INTERRUPTIBLE, except that delivering a signal to the sleeping process leaves its state unchanged A typ

文档评论(0)

autohhh + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档