Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
523d777b
Commit
523d777b
authored
5 years ago
by
Julien Leduc
Browse files
Options
Downloads
Patches
Plain Diff
Switching bs with count to improve performance of the dds
parent
b0b56dcf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
continuousintegration/orchestration/tests/client_ar.sh
+1
-1
1 addition, 1 deletion
continuousintegration/orchestration/tests/client_ar.sh
with
1 addition
and
1 deletion
continuousintegration/orchestration/tests/client_ar.sh
+
1
−
1
View file @
523d777b
...
...
@@ -194,7 +194,7 @@ for ((subdir=0; subdir < ${NB_DIRS}; subdir++)); do
# xargs must iterate on the individual file number no subshell can be spawned even for a simple addition in xargs
for
((
i
=
0
;
i<
${
NB_FILES
}
;
i++
))
;
do
echo
$(
printf
%.6d
$i
)
done
| xargs
--max-procs
=
${
NB_PROCS
}
-iTEST_FILE_NUM
bash
-c
"dd if=/tmp/testfile bs=1k 2>/dev/null | (dd bs=
1 count=
$((${
subdir
}
*
${
NB_FILES
}))
of=/dev/null 2>/dev/null; dd bs=
1 count=
TEST_FILE_NUM of=/dev/null 2>/dev/null; dd bs=1k count=
${
FILE_KB_SIZE
}
2>/dev/null) | XRD_LOGLEVEL=Dump xrdcp - root://
${
EOSINSTANCE
}
/
${
EOS_DIR
}
/
${
subdir
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM 2>
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM && rm
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM || echo ERROR with xrootd transfer for file
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM, full logs in
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM"
done
| xargs
--max-procs
=
${
NB_PROCS
}
-iTEST_FILE_NUM
bash
-c
"dd if=/tmp/testfile bs=1k 2>/dev/null | (dd bs=
$((${
subdir
}
*
${
NB_FILES
}))
count=1
of=/dev/null 2>/dev/null; dd bs=TEST_FILE_NUM
count=1
of=/dev/null 2>/dev/null; dd bs=1k count=
${
FILE_KB_SIZE
}
2>/dev/null) | XRD_LOGLEVEL=Dump xrdcp - root://
${
EOSINSTANCE
}
/
${
EOS_DIR
}
/
${
subdir
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM 2>
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM && rm
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM || echo ERROR with xrootd transfer for file
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM, full logs in
${
ERROR_DIR
}
/
${
TEST_FILE_NAME_SUBDIR
}
TEST_FILE_NUM"
#done | xargs --max-procs=${NB_PROCS} -iTEST_FILE_NAME xrdcp --silent /tmp/testfile root://${EOSINSTANCE}/${EOS_DIR}/${subdir}/TEST_FILE_NAME
# done | xargs -n ${BATCH_SIZE} --max-procs=${NB_BATCH_PROCS} ./batch_xrdcp /tmp/testfile root://${EOSINSTANCE}/${EOS_DIR}/${subdir}
echo
Done.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment