-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rollover to blob_stream_writer in b4.4
this will help reduce incomplete file writes as well.
- Loading branch information
Showing
6 changed files
with
495 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
export plugname=dstat | ||
export dsname=$(ldms_dstat_schema_name mmalloc=1 io=1 fd=1 auto-schema=1) | ||
export dstat_schema=$dsname | ||
portbase=61060 | ||
# memcheck | ||
VGARGS="--trace-children=yes --track-origins=yes --leak-check=full --show-leak-kinds=all" | ||
# drd | ||
#VGARGS="--trace-children=yes --tool=drd --trace-mutex=yes" | ||
# track everything notifier config: | ||
${BUILDDIR}/sbin/ldms-netlink-notifier --port=61061 --auth=none --reconnect=1 -D 60 -r -j $LOGDIR/json.log --exclude-dir-path= --exclude-short-path= --exclude-programs -v 1 & | ||
LDMSD 1 | ||
#vgon | ||
LDMSD 2 | ||
#vgoff | ||
MESSAGE ldms_ls on host 1: | ||
LDMS_LS 1 -l | ||
MESSAGE ldms_ls on host 2: | ||
LDMS_LS 2 -l | ||
for kt2 in $(seq 5); do | ||
#MESSAGE "trying rollover via reconfig: $(date +%s)" | ||
#echo "config name=blob_stream_writer path=${STOREDIR} container=blobs stream=slurm timing=1 types=1 spool=1" | \ | ||
#ldmsctl -p 61062 -a none -x sock -h localhost | ||
for kt in $(seq 4); do | ||
SLEEP 2 | ||
done | ||
done | ||
SLEEP 1 | ||
SLEEP 2 | ||
SLEEP 2 | ||
SLEEP 2 | ||
SLEEP 1 | ||
KILL_LDMSD 1 2 | ||
file_created $STOREDIR/blobs/spool/slurm.TIMING.1* | ||
file_created $STOREDIR/blobs/spool/slurm.DAT.1* | ||
file_created $STOREDIR/blobs/spool/slurm.OFFSET.1* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#load name=dstat | ||
#config name=dstat producer=localhost${i} instance=localhost${i}/${dstat_schema} component_id=${i} mmalloc=1 io=1 fd=1 auto-schema=1) | ||
#start name=dstat interval=1000000 offset=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
load name=blob_stream_writer plugin=blob_stream_writer | ||
config name=blob_stream_writer path=${STOREDIR} container=blobs stream=slurm timing=1 types=1 spool=1 rolltype=3 rollover=10 | ||
|
||
prdcr_add name=localhost1 host=${HOST} type=active xprt=${XPRT} port=${port1} interval=2000000 | ||
prdcr_subscribe regex=.* stream=slurm | ||
prdcr_start name=localhost1 | ||
|
||
updtr_add name=allhosts interval=1000000 offset=100000 | ||
updtr_prdcr_add name=allhosts regex=.* | ||
updtr_start name=allhosts | ||
|
||
# load name=store_csv | ||
# config name=store_csv path=${STOREDIR} altheader=0 | ||
|
||
# strgp_add name=store_${testname} plugin=store_csv schema=${dstat_schema} container=node | ||
# strgp_prdcr_add name=store_${testname} regex=.* | ||
# strgp_start name=store_${testname} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.