Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
a7276dd8
Commit
a7276dd8
authored
7 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Task #11059: O_DIRECT requires 4k alignment on Lustre
parent
3681cc1a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
RTCP/Cobalt/OutputProc/src/FastFileStream.h
+3
-1
3 additions, 1 deletion
RTCP/Cobalt/OutputProc/src/FastFileStream.h
with
3 additions
and
1 deletion
RTCP/Cobalt/OutputProc/src/FastFileStream.h
+
3
−
1
View file @
a7276dd8
...
@@ -43,7 +43,9 @@ namespace LOFAR
...
@@ -43,7 +43,9 @@ namespace LOFAR
virtual
size_t
size
();
virtual
size_t
size
();
// formally, the required alignment for O_DIRECT is determined by the file system
// formally, the required alignment for O_DIRECT is determined by the file system
static
const
size_t
alignment
=
512
;
// for local disks, 512 is a typical default.
// for Lustre, 4096 is required.
static
const
size_t
alignment
=
4096
;
private:
private:
// writes the remainder, padded with zeros if needed. Returns the number of zero-pad bytes written.
// writes the remainder, padded with zeros if needed. Returns the number of zero-pad bytes written.
size_t
writeRemainder
();
size_t
writeRemainder
();
...
...
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