[Darshan-users] fputs and internal glibc i/o calls
Chuck Cranor
chuck at ece.cmu.edu
Thu Apr 3 13:36:36 CDT 2014
On Thu, Apr 03, 2014 at 05:56:29PM +0000, Harms, Kevin N. wrote:
> > h0:/tmp/ctime# strace ./a.out |& fgrep localtime
> > open("/etc/localtime", O_RDONLY|O_CLOEXEC) = 4
> > h0:/tmp/ctime#
>
> Darshan filters out anything in /etc. There's a list of filters in:
> https://trac.mcs.anl.gov/projects/darshan/browser/trunk/darshan-runtime/lib/darshan-posix.c#L132
>
> I don't know if you remove /etc that /etc/localtime will show up, but I suggest testing.
hi kevin-
ooops! i made a copy of a non-default zonefile and copied it to
my home directory and used the TZ environment variable to change
the default location from /etc/localtime to /users/chuck/localtime
to avoid the filter in darshan-posix.c.
I repeated the experiment with the same results (you can tell when
the TZ is set because the time is offset by 2 hours, as shown below):
h0:/tmp/ctime# ./a.out
time=Thu Apr 3 12:31:12 2014
h0:/tmp/ctime#
h0:/tmp/ctime# env TZ=/users/chuck/localtime ./a.out
time=Thu Apr 3 14:31:21 2014
h0:/tmp/ctime#
h0:/tmp/ctime# env TZ=/users/chuck/localtime strace ./a.out | & fgrep localtime
open("/users/chuck/localtime", O_RDONLY|O_CLOEXEC) = 4
h0:/tmp/ctime#
h0:/tmp/ctime# env TZ=/users/chuck/localtime LD_PRELOAD=/usr/local/lib/libdarshan.so mpirun.mpich2 ./a.out
time=Thu Apr 3 14:31:41 2014
h0:/tmp/ctime#
h0:/tmp/ctime# darshan-parser /m/pvfs/tmp/2014/4/3/root_a.out_id22948_4-3-52301-2886565163687760448_1.darshan.gz
# darshan log version: 2.02
# size of file statistics: 1328 bytes
# size of job statistics: 120 bytes
# exe: ./a.out
# uid: 0
# jobid: 22948
# start_time: 1396549901
# start_time_asci: Thu Apr 3 12:31:41 2014
# end_time: 1396549901
# end_time_asci: Thu Apr 3 12:31:41 2014
# nprocs: 1
# run time: 1
# metadata: lib_ver = 2.2.8
# metadata: h = romio_no_indep_rw=true;cb_nodes=4
# mounted file systems (device, mount point, and fs type)
# -------------------------------------------------------
# mount entry: 8879946760550363901 /m/pvfs fuse
# mount entry: -6525176383006974612 /l0 ext2
# mount entry: 1378004016996341907 /users/garth nfs
# mount entry: -6395289464566466203 /users/qingzhen nfs
# mount entry: 3967925232003708285 /proj/TableFS nfs
# mount entry: -5933552100018119666 /users/chuck nfs
# mount entry: -9071479661283960111 /share nfs
# mount entry: 361011049498856045 /users/kair nfs
# mount entry: 3179183617035706161 /dev devtmpfs
# mount entry: -648807988769344735 / ext3
# no files opened.
h0:/tmp/ctime#
h0:/tmp/ctime#
chuck
More information about the Darshan-users
mailing list