- 1、本文档共221页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Understanding the Linux operating system汇
Linux Performance and Tuning Understanding the Linuxoperating system Process Memory IO Network Schematic interaction of different performance components Linux process management timeslice: 30ms 10ms cell, page frame 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 链表 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 typical example of a TASK_UNINTERRUPTIBLE process is a process waiting for disk I/O operation TASK_STOPPED Process execution has been stopped; the process enters this
您可能关注的文档
- SDM安全开发管理系统环境使用人员培训手册汇.doc
- SEO流程框架汇.ppt
- sentrigo数据库安全产品汇.ppt
- seo基础知识培训手册汇.pptx
- SDH原理与技术详细介绍汇.ppt
- SAKI检测标准说明书汇.ppt
- Sepam微机保护装置在变电站中的应用汇.ppt
- shopping+online购物系统汇.ppt
- SEPM配置页面说明汇.doc
- Sebamed产品功能及特性汇.ppt
- 难点详解鲁教版(五四制)6年级数学下册期末测试卷带答案详解(考试直接用).docx
- 难点详解鲁教版(五四制)6年级数学下册期末试题【培优】附答案详解.docx
- 难点解析鲁教版(五四制)7年级数学下册期末试题及完整答案详解(全国通用).docx
- 难点解析鲁教版(五四制)7年级数学下册期末试题含完整答案详解(名师系列).docx
- 难点解析鲁教版(五四制)7年级数学下册期末试题含完整答案详解【全国通用】.docx
- 难点解析鲁教版(五四制)7年级数学下册期末试卷(突破训练)附答案详解.docx
- 难点解析鲁教版(五四制)7年级数学下册期末试卷(能力提升)附答案详解.docx
- 难点详解京改版数学9年级上册期中试卷附参考答案详解【突破训练】.docx
- 难点解析鲁教版(五四制)7年级数学下册期末试题含完整答案详解(有一套).docx
- 难点解析鲁教版(五四制)7年级数学下册期末试卷带答案详解(夺分金卷).docx
文档评论(0)