📄 iojob.1
字号:
.\" All changes since Feb 12, 2002 copyright 2002 by Moshe Bar.\" All rights reserved..\".\" openMosix $Id: iojob.1,v 1.1 2003/05/05 13:04:03 mosixview Exp $.\".\" Permission to use, copy and distribute this software is hereby granted.\" under the terms of version 2 or any later version of the GNU General.\" Public License, as published by the Free Software Foundation..\".\".Dd May 3, 1999.Dt MOSRUN 1.ds vT openMosix Reference Manual.Os openMosix.Sh NAME.Nm \&mosrun.Nd run a command with particular node-allocation preferences.Sh SYNOPSIS.Nm \&mosrun.Pa [ -{h|.Pa openMosix_ID|.Pa jID1-ID2 [ ,ID3-ID4 ] ....Pa }.Op Fl F ].Op Fl {l|L|k}.Pa [ -{c|i|n|s|f| [ -t tt ].Pa [ -d dec ] }.Pa [ -{e|E} ].Pa [ -{r|R} ] ].Op Fl z.br.Pa command[.Pa arg ...].sp.Nm \&nomig.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&runhome.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&runon.Pa openMosix_ID.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&cpujob .Op Fl {h|openMosix_id}.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&iojob .Op Fl {h|openMosix_id}.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&nodecay .Op Fl {h|openMosix_id}.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&slowdecay .Op Fl {h|openMosix_id}.Op Fl z.Pa command[.Pa arg ...].sp.Nm \&fastdecay .Op Fl {h|openMosix_id}.Op Fl z.Pa command[.Pa arg ...].Sh DESCRIPTION.Nm \&mosrunruns a.Pa commandwhile advising openMosix about the placement, node-lock status and the bestmethod of decaying its openMosix per-process statistics to suit the program'sbehaviour..PpThe.Pa -hoption (h for "home") requests that the.Pa commandbe run on the home node. Similarly, a numeric option.Pa ( -openMosix_ID )requests that the process be run on a particular openMosix node..Pa mosrunwill fail should that node be unavailable, unless the.Pa -Foption is specified, in which case, the program could run anywhere.The.Pa -jID-LISToption selects a random node from among the supplied list of nodes.the list should be comma-separated and may contain any combination ofeither single openMosix node numbers, or dash-separated range of openMosix nodes.Again,.Pa mosrunwill fail should the selected random node be unavailable (unless the.Pa -Foption is specified)..PpThe node-lock, preventing automatic process-migrations (except inemergencies, such as when a node is being shut-down, in which casethe processes will migrate to their home-node), can be controlledvia one of the.Pa -l(unlock),.Pa -L(lock) or.Pa -k(keep) flags..brThe default is to lock whenever either.Pa -h ,.Pa -openMosix_IDor.Pa -jare specified or when no decay options are specified and to otherwise keepthe status as per the calling shell/program..PpThe.Pa -coption advises openMosix that the program is heavy user-mode computational andshould therefore ignore the statistics of any I/O or other system-calls..PpThe.Pa -ioption advises openMosix that the program uses heavy I/O or other system callsand should therefore ignore the statistics of any user-mode CPU usage..PpThe.Pa -noption advises openMosix that the program runs an irregular pattern of mixedCPU and I/O (or other system-calls), thus decaying should not be applied..PpThe.Pa -soption advises openMosix to apply slow decaying over the program's statistics(this is also openMosix's default)..PpThe.Pa -foption advises openMosix to apply fast decaying over the program's statistics,indicating a program that alternates between large-granularity chunks of CPUand I/O (or other system-calls)..PpThe.Pa -doption and/or the.Pa -toption specifies explicitly how often to decay the statistics for the programand what portion of the statistics should remain after decaying:.Pa ttspecifies the interval between decays in seconds and.Pa decspecifies the (integer) portion to keep out of 1000 units.If only one of.Pa -dor.Pa -tis specified, the other is obtained from.brthe current decaying policy (or if the current policy is either.Pa -cor.Pa -i ,.brfrom the current default settings, eg. of a slow decay)..PpThe.Pa -eargument specifies that the new decaying preferences will cease to apply forany of the generated processes that performs a successful.Pa exec(3)system call..Pa -E(the default) specifies that the decaying preferences be kept even across an.Pa exec(3) ..PpThe.Pa -rargument specifies that the new decaying preferences will not be inherited tothe program's child processes (and further descendants), while.Pa -R(the default) specifies that the decaying preferences be inherited..PpThe.Fl zargument specifies that the argument-list begins with argument number zero(which is normally identical to the\fBcommand\fR),rather than the usual argument number one..PpWithout any options,.Pa 'mosrun command arg ...'is equivalent to.br.Pa 'mosrun -L command arg ...' ..PpOn a plain, non-openMosix Linux operating system,.Pa mosrunwill simply spawn the.Pa commandwith no side-effects..PpThe following scripts operate as simple front-ends to.Pa mosrun :.Pp.Pa Nomigruns a.Pa commandwith a node-lock..Pp.Pa Runhomeruns a.Pa commandlocked at the home node..Pp.Pa runonruns a.Pa commandlocked on a particular openMosix node..Pp.Pa cpujobruns a.Pa command ,advising openMosix that it is a computation intensive program..Pp.Pa iojobruns a.Pa command ,advising openMosix that it is an I/O intensive program..sp.Pp.Pa nodecayruns a.Pa command ,advising openMosix to not decay the program's statistics..Pp.Pa slowdecayruns a.Pa command ,advising openMosix to apply slow statistics-decaying..Pp.Pa fastdecayruns a.Pa commandadvising openMosix to apply fast statistics-decaying..Sh EXAMPLES.sp.sp.Pa mosrun -7 -F -c program.spruns a computation-intensive.Pa programon openMosix node #7, if available..sp.Pa mosrun -j2-5,7,10-16 program arg.spruns a program on a random node among node numbers 2-5, 7 or 10-16..sp.Pp.Pa mosrun -h -l -i -r job_manager file-name.spruns a program (job_manager) initially on the home-node,but allowing it to subsequently migrate. openMosix is informed that the mainprocess, a manager is heavily I/O bound, but that its children are not sonecessarily..Pp.Pa mosrun -t 1 -d 700 two_phases.spruns a program that alternates between a relatively long I/O phase and acomputational phase. openMosix is advised to decay the statistics very quickly -leaving only 70% every second, so that the program is migrated away quicklybetween the home node and a most available/fast node whenever it switchesbetween stages..Sh SEE ALSOopenmosix(1),cpujob(1),fastdecay(1),iojob(1),joingroup(1),migrate(1),migrategroup(1),mon(1),mosctl(1),mosrun(1),mps(1),mtop(1),nodecay(1),nomig(1),omdiscd(1),resetgroup(1),runhome(1),runon(1),setpe(1),showgroup(1),slowdecay(1).br.Sh HISTORY.Pa mosrunis an openMosix utility.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -