- 论坛徽章:
- 0
|
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 |
|