首页 | 资讯动态 | linux基础 | 系统管理 | 网络管理 | 编程开发 | linux数据库 | 服务器技术 | linux相关 | linux认证 | 嵌入式 | 下载中心 | 专题 | linux招聘 | 镜像站
OKLinux中文技术站
·设为首页
·加入收藏
·联系我们
系统管理: 中文环境 系统管理 桌面应用 内核技术 | Linux基础: 基础入门 安装配置 常用命令 经验技巧 软件应用 | Linux数据库: Mysql Postgre Oracle DB2 Sybase other
网络管理: 网络安全 网络应用 Linux服务器 环境配置 黑客安全 | 编程开发: PHP CC++ Python Perl Shell 嵌入式开发 java jsp | PHP技术: PHP基础 PHP技巧 PHP应用 PHP文摘
Linux资讯 Linux招聘 Linux专题 Apache | Linux相关: 硬件相关 Linux解决方案 Linux认证 企业应用 其它Unix | 相关下载: 资料下载 参考手册 开发工具 服务器类 软路由 其它
 技术搜索:
会员中心 注册会员 高级搜索  
  → 当前位置:首页>系统管理>内核技术>正文

Process priority and control on AIX

http://www.oklinux.cn  2007-04-23  来源:    会员收藏  游客收藏  【 】 

Level: Intermediate

Ken Milberg, Future Tech UNIX Consultant, Technology Writer, and Site Expert, Future Tech

20 Mar 2007

Managing processes is quite straightforward with tools like kill and nice, but what happens when you want to provide even finer management control over your processes? You can assign processes and threads to specific processors in a multi-processor system using AIX®, but how do you chose the right applications and organize a larger system in order to optimize the applications appropriately? In this article, discover the tools available to you for organizing your processes, and take a look at the theory behind organizing and choosing processes and how to prioritize effectively.

Introduction

As an AIX® administrator, you should already know the basics of how to work with processes, including researching, prioritizing, and killing them. You should also know how to tune your processes and optimize them accordingly, using the various tools at your disposal. These tools include some of the more recent tools available to you in AIX 5.3. To provide effective process control on your system, it is imperative that you understand the definition of processes and threads and the difference between them. This article also covers the ps, nice, and schedtune commands, as well as the Process Monitor Console (procmon), AIX Workload Manager (WLM), and other tools available to you. Let's start with definitions of processes and threads:

  • Processes -- A process is an activity within the system that is started with a command, shell script, or another process.
  • Threads -- A thread is an independent flow of control that operates within the same address space as other independent flows of controls within a process. A kernel thread is a single sequential flow of control.

Another way of looking at this is that the process is the entity that the operating system uses to control the use of system resources, while the threads control actual processor-time consumption. Most system management tools still require you to refer to the process rather then the thread. The process itself actually owns the kernel threads and each process can have one or more kernel threads (for example, multi-threaded applications). With threads, you can have multiple threads running on different CPUs on a system, which really takes advantage of computers with more then one processor (Symmetric Multiprocessing or SMP boxes). Applications can be designed to have user-level threads that are scheduled to work by the application or by the pthreads scheduler in libpthreads. Multiple threads of control allow an application to service requests from multiple users at the same time. With the libpthreads implementation, user threads sit on top of virtual processors, which are themselves on top of kernel threads. During this article, delve into more detail on the kernel aspects of a process and tools available to help you more effectively manage your overall system. To help you manage your environment, go through time-tested UNIX® commands and many of the new tools available to you as an AIX administrator.

Threads and SMT

Allowing threads to run on different CPUs also allows for effective utilization of simultaneous multi-threading (SMT). With the system in SMT mode, the processor fetches instructions from more than one thread. Exclusive to the POWER5 architecture, the concept of SMT is that no single process uses all processor execution units at the same time. The POWER5 design implements two-way SMT on each of the chip's cores. The end result is that each physical processor core is represented by two virtual processors. SMT is primarily beneficial in commercial environments where the speed of an individual transaction is not as important as the total number of transactions that are performed. SMT is expected to increase the throughput of workloads with large or frequently changing working sets, such as database servers and Web servers. Workloads that are floating-point intensive are likely to gain little from SMT and are the ones most likely to lose performance. These workloads heavily use either the floating-point units or the memory bandwidth. Workloads with low cycles per instruction (CPI) and low cache miss rates might see some small benefit. Generally, you should expect to see approximately a 30 percent increase in system performance due to SMT. You must determine whether the critical processes running on your system benefit from SMT. Critical processes typically benefit from SMT; however, if you determine otherwise, you need to shut it down -- it comes enabled by default.

共7页: 上一页 1 [2] [3] [4] [5] [6] [7] 下一页

上一篇:SCO负责人呼吁禁止不加限制的自由Wi-Fi网络   下一篇:为你的MySQL数据库加铸23道安全门


收藏于收藏夹】 【评论】 【推荐】 【打印】 【关闭
相关文档
·Linux嵌入式系统开发平台的选型探讨
·Linux内核编译过程详解(kernel2.6.7)
·新手看招 嵌入式开发都需要学习什么
· Linux系统内核:修改TCP/IP调优参数
· 走向Linux高手之路---教你编译内核
· 回顾Linux的内核发展史
· 让LINUX核心模块加载Windows下驱动
· Linux系统内核抢占补丁的原理(代码)
· 对Linux内核版本稳定性测试简单介绍
· Linux内核对I/O端口的管理实现(下)
· Linux内核对I/O端口的管理实现(上)
· 剖析RedHat Linux中三个重要内核文件
· Linux内核空间保护与空间数据传递分析
· 动手构建自己的Linux发行版
· 快速编译Linux内核所需模块新方法
· Linux操作系统的NTFS和内核分析
发表评论
密码: 匿名评论
评论内容:

(不超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规)
 
  最新文档
·学习园地:Linux系统内核中判断大小的
·系统编译:如何给Make命令来传递参数
·Linux 2.6内核中sysfs文件系统简单概述
·Fedora 8 Linux系统的内核配置注意事项
·升级Linux内核的一般步骤方法
·Linux发行版知识普及:三个版本的CPUID
·编译安装Virtualbox驱动模块
· Linux系统的内核解读入门
·新手学堂 Linux系统的内核解读入门
·Linux系统内核中网络参数的意义及其应
·走向Linux系统高手之路 内核编译过程解
·Linux系统中安装内核的方法详细介绍
  阅读排行
·常用Linux Shell技巧集锦
·shell编程实例三:一个简单的目录菜单
· 深入理解LINUX内核中文版下载地址
·基于S3C44B0微处理器的uClinux内核引导
·Kernel command using Linux system ca
·Shell编程基础
·Linux 2.6内核如何武装Fedora Core 2
·Linux操作系统的内核编译内幕详解
·Shell 编程实例集锦
·Shell脚本调试技术
·推荐:Linux用户态与内核态的交互
·通过振动向Linux ThinkPad传输信息
·Bash 实例:探讨 ebuild 系统
·linux shell 编程基础
·Linux快速编辑Shell命令行
网摘收藏: