⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node39.htm

📁 空间物理学研究需要有并行的环境
💻 HTM
📖 第 1 页 / 共 3 页
字号:
<HTML>
<HEAD>
<!-- This file was generated by tohtml from mpichntman.tex -->
<!-- with the command
tohtml -default -dosnl -gaudy -basedef mpiman.def mpichntman.tex 
-->
<TITLE>MPD process launcher</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<HR><H2><A NAME="Node39">MPD process launcher</a></H2>
<A HREF="node38.htm#Node38"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node23.htm#Node23"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node39.htm#Node40"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node23.htm#Node23"> Tools</a>
<b>Next: </b><A HREF="node39.htm#Node40"> Quick reference</a>
<b>Previous: </b><A HREF="node38.htm#Node38"> Job manager tool</a>
<P>
MPD is a process manager for clusters of computers running WindowsNT/2000/XP.    
It can run in three different modes:    
<BLOCKQUOTE><DL> 
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
A service that launches processes in the context of multiple connecting users.    
This is the default installation.   
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
A service that launches processes in the context of a single user.    
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
A command line program started manually on all the nodes.  This can be useful   
for evaluation purposes or for users who do not have the ability to install services   
on their machines.  This option acts like single user mode.   
</DL></BLOCKQUOTE> 
<BR> 
<menu> 
</menu> 

<P>
<HR>
<A HREF="node38.htm#Node38"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node23.htm#Node23"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node39.htm#Node40"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node23.htm#Node23"> Tools</a>
<b>Next: </b><A HREF="node39.htm#Node40"> Quick reference</a>
<b>Previous: </b><A HREF="node38.htm#Node38"> Job manager tool</a>
<P>
<HR><H3><A NAME="Node40">Quick reference</a></H3>
<A HREF="node39.htm#Node39"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node39.htm#Node39"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node39.htm#Node41"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node39.htm#Node39"> MPD process launcher</a>
<b>Next: </b><A HREF="node39.htm#Node41"> Command line options</a>
<b>Previous: </b><A HREF="node39.htm#Node39"> MPD process launcher</a>
<P>
  
NOTE: The binary distribution of mpich.nt, <em>mpich.nt.1.2.5.exe</em>, installs mpd for you using the setup   
program.  You can use Add/Remove programs to remove it.  If you want to install mpd by hand,   
use the following information:  
<P> 
 <b> Default Installation - multi-user</b>  
<ol> 
 
1. Copy <em>mpd.exe</em> to all the nodes.   
 
<BR> 
2. Logon to each node with an account that has Administrator privileges.   
 
<BR> 
3. Execute <tt>mpd -install</tt> from a command prompt on each node.   
 
<BR> 
4. From a single node, run <em>mpiconfig.exe</em>  
  <ol> 
   
1. Click Select to find the hosts where you installed mpd.   
   
<BR> 
2. Click Add to add these hosts to the list.  If you can't see all the hosts where   
        you installed mpd, add them manually with the edit box above the list.   
   
<BR> 
3. Click Set to set the global options on each machine.   
  </ol> 
 
<BR> 
5. Compile a sample application like cpi from the <tt> examples<IMG WIDTH=5 HEIGHT=11 SRC="img63.xbm">
nt</tt> directory.   
 
<BR> 
6. Copy <em>cpi.exe</em> to all the nodes or place it in a shared directory.   
 
<BR> 
7. Run '<tt>mpirun -np 4 cpi</tt>'  
</ol> 
 <b> Single user Installation - all jobs run in the security context of a specified user.</b>  
<ol> 
 
1. Copy <em>mpd.exe</em> to all the nodes.   
 
<BR> 
2. Logon to each node with an account that has Administrator privileges.   
 
<BR> 
3. Execute <tt> mpd -install -account </tt><em> domain<IMG WIDTH=5 HEIGHT=11 SRC="img64.xbm">
username</em> -getphrase</tt> on   
each node.  Input the password of the user and a passphrase for the mpds.   
 
<BR> 
4. If this user has administrator privileges, run <em>mpiconfig.exe</em>  
  <ol> 
   
1. Click Select to find the hosts where you ran <tt>mpd -install</tt>   
   
<BR> 
2. Click Add to add these hosts to the list.  If you can't see all the hosts where   
        you installed mpd, add them manually with the edit box above the list.   
   
<BR> 
3. Click Set to set the hosts on each machine.   
  </ol> 
 
<BR> 
5. Compile a sample application like cpi   
 
<BR> 
6. Copy <em>cpi.exe</em> to all the nodes or place it in a shared directory.   
 
<BR> 
7. Run '<tt>mpirun -np 4 cpi</tt>'  
</ol> 
 <b> No rights installation - evaluation, interactive usage</b>  
  
<ol> 
 
1. Copy <em>mpd.exe</em> to all the nodes.   
 
<BR> 
2. Execute <tt>mpd -d</tt> on each node.   
 
<BR> 
3. Compile a sample application like cpi   
 
<BR> 
4. Copy <em>cpi.exe</em> to all the nodes or place it in a shared directory.   
 
<BR> 
5. Create a machine file and fill it with the host names where mpd is running.   
 
<BR> 
6. Run '<tt>mpirun -np 4 -machinefile <em> file</em> cpi</tt>'  
</ol> 
 <b> Uninstall</b>  
<ol> 
 
1. Execute <tt>mpd -remove</tt> from each node or type ``stop'' into the window   
where <tt>mpd -d</tt> is running.   
 
<BR> 
2. Delete all the files.  
</ol> 

<P>
<HR>
<A HREF="node39.htm#Node39"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node39.htm#Node39"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node39.htm#Node41"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node39.htm#Node39"> MPD process launcher</a>
<b>Next: </b><A HREF="node39.htm#Node41"> Command line options</a>
<b>Previous: </b><A HREF="node39.htm#Node39"> MPD process launcher</a>
<P>
<HR><H3><A NAME="Node41">Command line options</a></H3>
<A HREF="node39.htm#Node40"><IMG WIDTH=16 HEIGHT=16 SRC="previous.xbm"></A><A HREF="node39.htm#Node39"><IMG WIDTH=16 HEIGHT=16 SRC="up.xbm"></A><A HREF="node39.htm#Node42"><IMG WIDTH=16 HEIGHT=16 SRC="next.xbm"></A><BR>
<b>Up: </b><A HREF="node39.htm#Node39"> MPD process launcher</a>
<b>Next: </b><A HREF="node39.htm#Node42"> Console commands</a>
<b>Previous: </b><A HREF="node39.htm#Node40"> Quick reference</a>
<P>
Installation  
<dl> 
 
<dt> 
<b> </b><dd> 
mpd -install -regserver -interact -phrase x -getphrase -account x -password x -port x -mpduser  
<BLOCKQUOTE><DL> 
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The options -install and -regserver are synonyms to install the service.    
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The option -interact allows the service to start applications with access to the desktop window.    
Don't use this option unless you have to show windows while your application is running.    
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The option -phrase x allows you to set the passphrase for mpd authentication.  When a remote machine   
connects to the mpd, this phrase is used to encrypt a challenge response string to authenticate the remote   
user.  The option -getphrase causes the mpd to prompt for the passphrase to be entered.  This is useful if   
you don't want to pass the phrase on the command line.  If -phrase x or -getphrase are not specified,   
the default passphrase is used.    
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The -port option allows you to specify a port for the mpd to listen on.  This must be the same on all the nodes.    
If you do not specify this option, the default is used, 8675.    
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The options -account x and -password x allow the user to install the service in single user mode.    
In single user mode, all processes launched are placed in the security context of the specified user no matter   
who connects to the mpd.  The advantage of this mode is that no passwords are needed again after install time.    
The disadvantage is that any user who knows the mpd passphrase can launch processes in the context of the   
installed user.  If -account x is specified but -password is not, the user will be prompted to enter a password.    
Accounts should be specified in the form ``Domain<IMG WIDTH=5 HEIGHT=11 SRC="img65.xbm">
User''.   
 
<DT><IMG WIDTH=14 HEIGHT=14 SRC="purpleball.gif" ALT="*"> 
The option -mpduser in conjunction with -install installs the mpd with the ability to accept anonymous  
launch requests that are launched in the context of a registered mpd user.  The option enables the following  
mpd console commands: setmpduser, clrmpduser, enablempduser and disablempduser.  
</DL></BLOCKQUOTE> 
<BR> 
 
<dt> 
<b> </b><dd> 
mpd -remove -unregister -uninstall  
<P> 
The options -remove, -unregister and -uninstall are all synonyms to un-install the service.  
<P> 
 
<dt> 
<b> </b><dd> 
mpd -d -port x -phrase x -getphrase  
<P> 
The -d option allows a user to run an mpd from the command line.  This is for debugging the mpd or for users   
who need to execute the mpd manually.  The options -port x and -phrase x or -getphrase allow the   
user to specify what port to listen on and what passphrase to use.  The option -getphrase will cause the mpd   
to prompt for a passphrase.  If these options are not specified, mpd will use the default port and passphrase.    
While the mpd is running it will spit out information as messages pass through and commands are issued.    
You can enter ``stop'' to stop the mpd or ``quit'' to forcibly exit the process.  
<P> 
 
<dt> 
<b> </b><dd> 
mpd -update -mpd x -host x -hostfile x -account x -password x -singleuser -port x -phrase x -getphrase  
<P> 
Before you upgrade a set of running mpds, make sure there are not any jobs running.  The upgrade process will   
terminate any running processes managed by the mpds.    
<P> 
The -update option is used to upgrade running mpds after   
a new version has been downloaded.  Specify the location of the new mpd.exe with the -mpd x option where x is   
the full path to the newly downloaded mpd.exe including the executable name (mpd.exe).  If you do not specify   
this option, the mpd will use itself as the upgrade module.  So if you do not specify -mpd, make sure you   
execute the new mpd and not the old mpd.    
<P> 
Specify the host to upgrade with the -host x option or a list of   
hosts to upgrade in a file with the -hostfile x option.    
<P> 
You need to specify a user with enough privileges to   
be able to stop and start services on the specified hosts with the -account x and -password x options.    
If you do not provide a password on the command line, you will be prompted to enter one.    
<P> 
The options -port x   
and -phrase x or -getphrase allow you to specify what port to connect to and what passphrase to use.  If you   
specify the option -getphrase, you will be prompted to enter a passphrase.  If these options are not specified,   
the default port and passphrase will be used.    
<P> 
If you do not specify any options, you will be prompted to   
enter a host, account, and password.   
<P> 
Note: You cannot upgrade mpds running from a command prompt: mpd -d.  If you   
installed the mpds in single user mode, the user must have administrator privileges in order to upgrade this way.    
Use the -singleuser option instead of an account and password in this case because single user mode does not   
require a user logon.    
<P> 
You can always upgrade manually by doing the following on each node:   
<ol> 
 
1. Execute <tt>mpd -stop</tt> to stop the running mpd.   
 
<BR> 
2. Delete the old mpd.exe and place the new version in its place - the exact same place.  The name and path of mpd.exe cannot change.   
 
<BR> 
3. Execute <tt>mpd -start</tt> to start the new mpd.    
</ol> 
If you want to move mpd.exe to a new location you will have to uninstall (mpd -r  
emove) and then re-install (mpd -install ...).  
</dl> 
<BR> 
 Session  
<dl> 
 
<dt> 
<b>{mpd -console -port x -phrase x -getphrase}</b><dd> 
 
<dt> 
<b>{mpd -console host -port x -phrase x -getphrase}</b><dd> 
<BR>  
<P> 
The -console option creates a console session with an mpd on the local host or the host specified.  If the mpd   
is listening on a port other than the default, the option -port x can be used to specify what port to connect to.    
If -phrase x or -getphrase are not specified the mpd searches for the passphrase specified at install time and   
then reverts to the default passphrase if mpd is not installed on the local host.  
</dl> 
<BR> 
 Management  
<dl> 
 
<dt> 
<b>{mpd -start}</b><dd> 
<BR>  
The option -start starts an installed mpd on the local host.  Note: the mpd is started automatically at installation time.  
<P> 
 
<dt> 
<b>{mpd -stop}</b><dd> 
<BR>  
The option -stop stops an installed mpd on the local host.  Note: when the mpd stops, it will kill all   
running processes that it has launched.  
<P> 
 
<dt> 
<b>{mpd -restart}</b><dd> 
<BR>  
The option -restart stops and restarts the mpd on the local host.  
<P> 
 
<dt> 
<b>{mpd -restart host}</b><dd> 
<BR>  
The option -restart host connects to 'host' and restarts the mpd on that host.  
<P> 
 
<dt> 
<b>{mpd -clean}</b><dd> 
<BR>  
The option -clean removes all the settings from the registry.  The next time the mpd is started it   
will revert to the default values.  
</dl> 
<BR> 
 Information  
<dl> 
 
<dt> 
<b>{mpd -v -version}</b><dd> 
<BR>  
The options -v and -version will both print out version information.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -