0
点赞
收藏
分享

微信扫一扫

Darshan的安装与使用

笙烛 2023-08-05 阅读 68
linux

下载Darshan源码

官网下载地址:https://www.mcs.anl.gov/research/projects/darshan/download/

解压源码压缩包

#解压安装包
tar -xvzf darshan-<version-number>.tar.gz
#生成配置文件
cd darshan-<version-number>
./prepare

Darshan的源文件结构主要分为:

  • darshan-runtime: 检测 MPI 应用程序和生成 I/O 特征日志所必需的 Darshan 运行时框架
  • darshan-util: 用于分析给定 Darshan I/O 特征日志内容的 Darshan 实用程序

安装Darshan-runtime

cd darshan-runtime
./configure --with-log-path=/darshan-logs --with-log-path-by-env=$LOGNAME --with-jobid-env=PBS_JOBID CC=mpicc
make -j 16
make install

Darshan-runtime的使用

#指定生成日志路径和日志名
export DARSHAN_LOGPATH=/opt/testfile
export DARSHAN_LOGFILE=/opt/testfile/log

#非mpi程序
export DARSHAN_ENABLE_NONMPI=1
LD_PRELOAD=/opt/software/darshan-3.4.3/darshan-runtime/lib/.libs/libdarshan.so io-test

#mpi程序
mpiexec -n 4 LD_PRELOAD /home/carns/darshan-install/lib/libdarshan.so mpi-io-test

安装Darshan-util

cd darshan-util
./configure
make -j 16
make install

Darshan-util的使用

#依赖包安装
apt-get install texlive-latex-extra
apt-get install texlive-latex-base
apt-get install texlive-font-utils
apt-get install gnuplot

1.darshan-job-summary.pl

使用图形摘要工具生成作业 I/O 活动的图形摘要,使用参数–output指定输出文件名称。

darshan-job-summary.pl log --output logoutput.pdf

输出样例:

在这里插入图片描述

2. darshan-summary-per-file.sh

该实用程序类似于 darshan-job-summary.pl,不同之处在于它为应用程序访问的每个文件生成单独的 pdf 摘要。

darshan-summary-per-file.sh log logdir

3.darshan-parser

使用darshan-parser命令行实用程序获取日志文件中包含的所有信息的完整、人类可读的文本格式转储。

darshan-parser log > job-characterization.txt

输出样例:
在这里插入图片描述

Darshan文档

Darshan官方文档:https://www.mcs.anl.gov/research/projects/darshan/documentation/

举报

相关推荐

0 条评论