Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
SWIFTsim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
SWIFT
SWIFTsim
Commits
2a3a3467
Commit
2a3a3467
authored
2 years ago
by
Peter W. Draper
Browse files
Options
Downloads
Plain Diff
Merge branch 'random-ost-offset' into 'master'
Make initial offset into OSTs random Closes
#790
See merge request
!1706
parents
b3f2c98b
9a827473
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!1715
Update planetary strength after planetary plus's master rebase
,
!1706
Make initial offset into OSTs random
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/distributed_io.c
+8
-1
8 additions, 1 deletion
src/distributed_io.c
with
8 additions
and
1 deletion
src/distributed_io.c
+
8
−
1
View file @
2a3a3467
...
...
@@ -964,9 +964,16 @@ void write_output_distributed(struct engine* e,
/* Use a single Lustre stripe with a rank-based OST offset? */
if
(
e
->
snapshot_lustre_OST_count
!=
0
)
{
/* Use a random offset to avoid placing things in the same OSTs. We do
* this to keep the use of OSTs balanced, much like using -1 for the
* stripe. */
int
offset
=
rand
()
%
e
->
snapshot_lustre_OST_count
;
MPI_Bcast
(
&
offset
,
1
,
MPI_INT
,
0
,
MPI_COMM_WORLD
);
char
string
[
1200
];
sprintf
(
string
,
"lfs setstripe -c 1 -i %d %s"
,
(
e
->
nodeID
%
e
->
snapshot_lustre_OST_count
),
fileName
);
(
(
e
->
nodeID
+
offset
)
%
e
->
snapshot_lustre_OST_count
),
fileName
);
const
int
result
=
system
(
string
);
if
(
result
!=
0
)
{
message
(
"lfs setstripe command returned error code %d"
,
result
);
...
...
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