免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2085 | 回复: 0

SMC中系统配置下面的Project是做什么用的? [复制链接]

论坛徽章:
0
发表于 2006-05-16 14:15 |显示全部楼层

SMC中系统配置下面的Project是做什么用的?  
A: 1.显示系统资源类型:  
# dispadmin -l  
CONFIGURED CLASSES  
==================  
SYS (System Class)  
TS (Time Sharing)  
FX (Fixed Priority)  
IA (Interactive)  
RT (Real Time)  
2. 激活FSS类型,重启:  
# dispadmin -d FSS  
# dispadmin -l  
CONFIGURED CLASSES  
==================  
SYS (System Class)  
TS (Time Sharing)  
FX (Fixed Priority)  
IA (Interactive)  
RT (Real Time)  
FSS (Fair Share)  
# reboot  
3. 激活SRM,建立处理器组:  
# pooladm -e  
# poolcfg -dc 'create pset pset ( uint pset.min=0; uint pset.max=2)'  
# poolcfg -dc info  
...  
pset pset  
int pset.sys_id 1  
boolean pset.default false  
uint pset.min 0  
uint pset.max 2  
string pset.units population  
uint pset.load 0  
uint pset.size 0  
string pset.comment  
...  
4. 建立资源池:  
# poolcfg -dc 'create pool pool'  
# poolcfg -dc info  
...  
pool pool  
int pool.sys_id 1  
boolean pool.active true  
boolean pool.default false  
int pool.importance 1  
string pool.comment  
pset pset_default  
...  
5.关联处理器组和资源池:  
# poolcfg -dc 'associate pool pool (pset pset)'  
# poolcfg -dc info  
...  
pool pool  
int pool.sys_id 1  
boolean pool.active true  
boolean pool.default false  
int pool.importance 1  
string pool.comment  
pset pset  
...  
6.迁移CPU到处理器组:  
# poolcfg -dc 'transfer to pset pset (cpu 0)'  
# poolcfg -dc info  
...  
pset pset  
int pset.sys_id 1  
boolean pset.default false  
uint pset.min 0  
uint pset.max 2  
string pset.units population  
uint pset.load 0  
uint pset.size 1  
string pset.comment  
cpu  
int cpu.sys_id 0  
string cpu.comment  
string cpu.status on-line  
...  
7. 建立project, 及project所用内存限额:  
# vi /etc/project  
...  
project:10000:test project:name::rcap.max-rss=10000  
# rcapadm -E  
# rcapstat  
id project nproc vm rss cap at avgat pg avgpg  
10000 sunbj-project 0 0K 0K 10K 0K 0K 0K 0K  
10000 sunbj-project 0 0K 0K 10K 0K 0K 0K 0K  
10000 sunbj-project 0 0K 0K 10K 0K 0K 0K 0K  
8. 每个project可设置多个task, 如ufsdump, netscape, ftp, ...


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/8646/showart_113404.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP