<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Menlo;
panose-1:2 11 6 9 3 8 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
p.p1, li.p1, div.p1
{mso-style-name:p1;
margin:0cm;
margin-bottom:.0001pt;
font-size:7.5pt;
font-family:Menlo;
color:black;}
p.p2, li.p2, div.p2
{mso-style-name:p2;
margin:0cm;
margin-bottom:.0001pt;
font-size:7.5pt;
font-family:Menlo;
color:#B42419;}
span.s2
{mso-style-name:s2;
color:black;}
span.s3
{mso-style-name:s3;
color:#B42419;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m running Darshan 3.1.6. Is there any way to extract the wallclock time of operations from darshan-parser?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Let’s say I have sample program running on 16 MPI threads: part of it uses serial I/O, and part of it MPI-IO.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">> time mpirun -np 16 -host localhost ./benchio.x<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I then analyse the results with darshan-parser --total and filter out certain lines:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">> /cm/shared/apps/darshan/intel/3.1.6/bin/darshan-parser --total</span><span class="apple-converted-space">
</span><span class="s1">~/dc-cox1_benchio.x_id15025_2-18-43921-17740490755319864674_1.darshan | grep -i "nprocs:\|run time\|POSIX_F_READ_TIME\|POSIX_F_WRITE_TIME\|POSIX_F_META_TIME\|MPIIO_F_READ_TIME\|MPIIO_F_WRITE_TIME\|MPIIO_F_META_TIME"</span><o:p></o:p></p>
<p class="p2"><span class="s2"># </span><span class="s1"><b>nprocs:</b></span><span class="s2"> 16</span><o:p></o:p></p>
<p class="p2"><span class="s2"># </span><span class="s1"><b>run time</b></span><span class="s2">: 83</span><o:p></o:p></p>
<p class="p2"><span class="s2">total_</span><span class="s1"><b>POSIX_F_READ_TIME</b></span><span class="s2">: 0.000000</span><o:p></o:p></p>
<p class="p2"><span class="s2">total_</span><span class="s1"><b>POSIX_F_WRITE_TIME</b></span><span class="s2">: 57.435211</span><o:p></o:p></p>
<p class="p2"><span class="s2">total_</span><span class="s1"><b>POSIX_F_META_TIME</b></span><span class="s2">: 8.595520</span><o:p></o:p></p>
<p class="p2"><span class="s2">total_</span><span class="s1"><b>MPIIO_F_READ_TIME</b></span><span class="s2">: 0.000000</span><o:p></o:p></p>
<p class="p1"><span class="s1">total_</span><span class="s3"><b>MPIIO_F_WRITE_TIME</b></span><span class="s1">: 471.718718</span><o:p></o:p></p>
<p class="p2"><span class="s2">total_</span><span class="s1"><b>MPIIO_F_META_TIME</b></span><span class="s2">: 5.261146</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I also analyse with darshan-parser --base --perf --file-list and filter similarly:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="p1"><span class="s1">> /cm/shared/apps/darshan/intel/3.1.6/bin/darshan-parser --base --perf --file-list</span><span class="apple-converted-space">
</span><span class="s1">~/dc-cox1_benchio.x_id15025_2-18-43921-17740490755319864674_1.darshan | grep -i "nprocs:\|run time\|POSIX_F_READ_TIME\|POSIX_F_WRITE_TIME\|POSIX_F_META_TIME\|MPIIO_F_READ_TIME\|MPIIO_F_WRITE_TIME\|MPIIO_F_META_TIME"</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">#
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">nprocs:</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 16</span><span style="font-size:7.5pt;font-family:Menlo;color:#B42419"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">#
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">run time</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black">: 83</span><span style="font-size:7.5pt;font-family:Menlo;color:#B42419"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX 0 14271214572185876165
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_READ_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 0.000000 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/serial.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX 0 14271214572185876165
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_WRITE_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 39.276790 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/serial.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX 0 14271214572185876165
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_META_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 4.394738 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/serial.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_READ_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 0.000000 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_WRITE_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 18.158421 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">POSIX -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">POSIX_F_META_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 4.200782 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">MPI-IO -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">MPIIO_F_READ_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 0.000000 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">MPI-IO -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">MPIIO_F_WRITE_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 471.718718 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:Menlo;color:black">MPI-IO -1 4647831539574040701
</span><b><span style="font-size:7.5pt;font-family:Menlo;color:#B42419">MPIIO_F_META_TIME</span></b><span style="font-size:7.5pt;font-family:Menlo;color:black"> 5.261146 /lustre/dirac/home/dc-cox1/benchio/shared-file/source/benchio_files/mpiio.dat
/lustre/dirac lustre<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Comparing the two outputs, it’s clear that it’s CPU time being measured. But as a high-level profiling aid I’d like to extract the associated wallclock time instead.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I think this would be 39.276+(18.15/16) and 4.39+(4.2/16) for the POSIX_F_WRITE/META_TIME. I’d rather not have to write a separate script to filter against the rank column from the --base --perf --file-list
output.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks in advance,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Sam<o:p></o:p></span></p>
</div>
</body>
</html>