30.01.2013 Views

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

TotalView Users Guide - CI Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Debugging Cray XT Applications<br />

For information on setting server launch strings, see “Setting Up and Starting<br />

the <strong>TotalView</strong> Server” on page 81.<br />

While debugging, you must also have the FlexLM license server running. <strong>TotalView</strong> uses<br />

this server to verify that you are using licensed software. However, this server is not<br />

related to the servers that <strong>TotalView</strong> launches when you are debugging your program.<br />

Configuring <strong>TotalView</strong><br />

When configuring your Cray XT system for use with the <strong>TotalView</strong>, you must:<br />

� Mount user home directories on all service nodes that you will use while<br />

debugging.<br />

� (Optional) Enable passwordless ssh on all service nodes that you will use<br />

while debugging. In most cases, your system administrator will have enabled<br />

your system so that it uses ssh instead or rsh. If passwordless ssh<br />

is not enabled, you will be asked to enter a password each time a process<br />

is launched on a node.<br />

� (Optional) Automatically set RS_DBG_CLIENTS_PER_SERVER and<br />

–nodes_allowed.<br />

On Cray XT systems setting a –nodes_allowed command-line option to 64<br />

will not work. Instead, you should configure <strong>TotalView</strong> to use<br />

RS_DBG_CLIENTS_PER_SERVER and –nodes_allowed to make best use of the<br />

cluster and <strong>TotalView</strong> licenses.<br />

<strong>TotalView</strong> administrators can set installation preferences by editing (or creating)<br />

the $TVROOT/linux-x86-64/lib/.tvdrc file. Here are two simple scenarios<br />

� If you only have one <strong>TotalView</strong> license and that license is for less than 64<br />

processors then a server launch string like this would be best:<br />

dset -set_as_default TV::server_launch_string \<br />

{%C %R -n "%B/tvdsvr%K -working_directory %D \<br />

-callback %L \<br />

-nodes_allowed maximum_processor_license \<br />

-set_pw %P -verbosity %V %F"}<br />

where maximum_processor_license is the processor count for your <strong>TotalView</strong><br />

license.<br />

� If you will be running <strong>TotalView</strong> on a cluster where the ratio of service<br />

nodes to compute nodes is less than 1:64, you should use a server<br />

launch string. For example:<br />

dset -set_as_default TV::server_launch_string \<br />

{%C %R -n "%B/tvdsvr%K -working_directory %D \<br />

-callback %L \<br />

-nodes_allowed ${RS_DBG_CLIENTS_PER_SERVER-64} \<br />

-set_pw %P -verbosity %V %F"}<br />

You will need to set the RS_DBG_CLIENTS_PER_SERVER environment variable<br />

before submitting all jobs where a service node-to-compute node<br />

ration of 1:64 is not possible. You should also set<br />

RS_DBG_CLIENTS_PER_SERVER to the number of compute nodes served<br />

by each service node. For example, if you have a service-to-node ratio of<br />

1:128, set this variable to 128.<br />

<strong>TotalView</strong> Reference <strong>Guide</strong>: version 8.7 145

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!