8.3. 用户空间工具
以下工具为 openMosix 集群提供简易的管理功能。
migrate -send a migrate request to a process
syntax:
migrate [PID] [openMosix_ID] |
mon -is a ncurses-based terminal monitor
several informations about the current status are displayed in bar-charts |
mosctl -is the openMosix main configuration utility
syntax:
mosctl [stay|nostay]
[lstay|nolstay]
[block|noblock]
[quiet|noquiet]
[nomfs|mfs]
[expel|bring]
[gettune|getyard|getdecay]
mosctl whois [openMosix_ID|IP-address|hostname]
mosctl [getload|getspeed|status|isup|getmem|getfree|getutil] [openMosix_ID]
mosctl setyard [Processor-Type|openMosix_ID||this]
mosctl setspeed interger-value
mosctl setdecay interval [slow fast] |
表 8-6。更详细的信息
stay | 无自动进程迁移 |
nostay | 自动进程迁移(默认) |
lstay | 本地进程应保持 |
nolstay | 本地进程可以迁移 |
block | 阻止 guest 进程到达 |
noblock | 允许 guest 进程到达 |
quiet | 禁用负载均衡信息收集 |
noquiet | 启用负载均衡信息收集 |
nomfs | 禁用 MFS |
mfs | 启用 MFS |
expel | 发送 guest 进程离开 |
bring | 将所有迁移的进程带回本地 |
gettune | 显示当前开销参数 |
getyard | 显示当前使用的 Yardstick 值 |
getdecay | 显示当前衰减参数 |
whois | 解析集群的 openMosix-ID、IP 地址和主机名 |
getload | 显示(openMosix)负载 |
getspeed | 显示(openMosix)速度 |
status | 显示当前状态和配置 |
isup | 节点是否启动 (openMosix 类型的 ping) |
getmem | 显示逻辑空闲内存 |
getfree | 显示物理空闲内存 |
getutil | 显示利用率 |
setyard | 设置新的 Yardstick 值 |
setspeed | 设置新的(openMosix)速度值 |
setdecay | 设置新的衰减间隔 |
mosrun -run a special configured command on a chosen node
syntax:
mosrun [-h|openMosix_ID| list_of_openMosix_IDs] command [arguments] |
mosrun 命令可以使用更多命令行选项执行。为了简化操作,有一些预配置的运行脚本,用于以特殊的 (openMosix) 配置执行作业。
表 8-7。mosrun 的额外选项
nomig | 运行一个命令,其进程不会迁移 |
runhome | 执行一个锁定在其本地节点的命令 |
runon | 运行一个命令,该命令将被直接迁移并锁定到一个节点 |
cpujob | 告诉 openMosix 集群这是一个 CPU 密集型进程 |
iojob | 告诉 openMosix 集群这是一个 IO 密集型进程 |
nodecay | 执行一个命令,并告诉集群不要刷新负载均衡统计信息 |
slowdecay | 执行一个命令,并使用慢衰减间隔来收集负载均衡统计信息 |
fastdecay | 执行一个命令,并使用快衰减间隔来收集负载均衡统计信息 |
setpe -manual node configuration utility
syntax:
setpe -w -f [hpc_map]
setpe -r [-f [hpc_map]]
setpe -off
-w reads the openMosix configuration from a file (typically /etc/hpc.map)
-r writes the current openMosix configuration to a file (typically /etc/hpc.map)
-off turns the current openMosix configuration off |
tune openMosix calibration and optimizations utility.
(for further informations review the tune-man page)
|
除了 /proc 接口和命令行 openMosix 实用程序(它们使用 /proc 接口)之外,还有一个修补过的 "ps" 和 "top" 可用(它们被称为 "mps" 和 "mtop"),它们还在列中显示 openMosix 节点 ID。这对于找出特定进程当前在何处计算非常有用。
这实际上总结了命令行工具,但请查看 openMosixview,它是一个用于最常见管理任务的 GUI,将在以后的章节中讨论。