??? Solaris ????? CPU ????? FSS(Fair Share Scheduler) ???????????? ??????????????????????????????? ???? FSS ????????????????

?????????????????????? FSS ??????????????? ???????? CPU ???? pool.scheduler ?????????????????? ??????????

???????RT(Real Time Scheduler)????????? ????????????????zonecfg ? scheduling-class ?????? ??????????????????????????

????CPU ????????????????????????????? ???? dedicated-cpu ?????????????????

?????????? real-zone ??2 CPU ?? CPU ????????? scheduling-class ? RT ??????????

# zonecfg -z real-zone real-zone: ?????????????????? 'create' ????????????????????????? zonecfg:real-zone> create zonecfg:real-zone> set zonepath=/export/zone/real-zone zonecfg:real-zone> add dedicated-cpu zonecfg:real-zone:dedicated-cpu> set ncpus=2 zonecfg:real-zone:dedicated-cpu> end zonecfg:real-zone> set scheduling-class=RT zonecfg:real-zone> verify zonecfg:real-zone> commit zonecfg:real-zone> exit # zoneadm -z real-zone install Preparing to install zone . Creating list of files to copy from the global zone. ... The file contains a log of the zone installation. # zoneadm -z real-zone boot
??????????????????? RT ?????????????????
???????????????? FSS ????? zone01 ??RT ????? real-zone ??????????
# zoneadm list -cv ID NAME STATUS PATH BRAND IP 0 global running / native shared 1 zone01 running /export/zone/zone01 native shared 2 real-zone running /export/zone/real-zone native shared
poolstat ???????????? (real-zone ??????????????) ? ??????
# poolstat pset id pool size used load 1 SUNWtmp_real-zone 2 0.00 0.00 0 pool_default 2 0.00 0.00
????????? priocntl -d ??????????????????????? ???????
zone01# priocntl -d TIME SHARING PROCESSES: PID TSUPRILIM TSUPRI 6487 0 0 real-zone# priocntl -d REAL TIME PROCESSES: PID RTPRI TQNTM TQSIG 6484 0 1000 0
????????????????????????? ?????????????????????
???zone01 ? real-zone ????? CPU ???? ??? nspin ????????????????
zone01 ???PID 6522 ? 6523?real-zone ???PID 6524 ? 6525 ? ?????????

# ps -efl -o pid,zone,comm | grep nspinx ??? 6523 zone01 ./nspinx 6522 zone01 ./nspinx 6524 real-zone ./nspinx 6525 real-zone ./nspinx
prstat -z ??????PRI ???????real-zone ???????????? PRI ? 60 ????????RT ???????????????????????

prstat -z ???
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP 6525 root 1344K 540K cpu0 100 - 0:01:53 25% nspinx/1 6524 root 1344K 672K cpu1 100 - 0:01:53 25% nspinx/1 6522 root 1344K 672K cpu3 20 0 0:01:57 25% nspinx/1 6523 root 1344K 540K run 20 0 0:01:57 25% nspinx/1 .... .... ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE 2 14 17M 20M 0.2% 0:03:59 50% real-zone 1 14 22M 25M 0.3% 0:03:58 50% zone01 0 52 173M 256M 3.2% 0:01:13 0.0% global Total: 80 processes, 312 lwps, load averages: 4.92, 5.53, 2.86
??????????????????????? PRI ?????????? ???????

# priocntl -l CONFIGURED CLASSES ================== SYS (System Class) TS (Time Sharing) Configured TS User Priority Range: -60 through 60 FX (Fixed priority) Configured FX User Priority Range: 0 through 60 IA (Interactive) Configured IA User Priority Range: -60 through 60 FSS (Fair Share) Configured FSS User Priority Range: -60 through 60 RT (Real Time) Maximum Configured RT Priority: 59

(????)
???Real Time ???????????????????????Real Time ??????? ??????????FSS ?????????????( cpu-share ? capped-cpu ) ??? ???????????????????

(????)
???????????????
http://docs.sun.com/app/docs/doc/819-0385/gepst?l=ja&a=view


(????)
??? ????? Sun ?????blog ??????????????? http://wikis.sun.com/display/yappri/Home


Read More about [Real Time ??????????? Zone ?????...