-
Notifications
You must be signed in to change notification settings - Fork 45
Add AIO and Direct IO support for IOR phases #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remind me, why is the current approach not sufficient? It does check right?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah I think I can deprecate this patch. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ static ini_option_t option[] = { | |
| {"uniqueDir", "Use unique directory per file per process", 0, INI_BOOL, "FALSE", & ior_easy_o.uniqueDir}, | ||
| {"run", "Run this phase", 0, INI_BOOL, "TRUE", & ior_easy_o.run}, | ||
| {"verbosity", "The verbosity level", 0, INI_INT, 0, & ior_easy_o.verbosity}, | ||
| {"direct", "Use direct IO (posix.odirect)", 0, INI_BOOL, "TRUE", & ior_easy_o.direct}, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can make an exception for supporting posix.odirect for AIO module. I think what should have worked was sth like:
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is using POSIX direct IO. What I am trying to do is to enable AIO + direct IO. Something like EDITTED: |
||
| {NULL} }; | ||
|
|
||
| static void validate(void){ | ||
|
|
@@ -42,7 +43,7 @@ static void cleanup(void){ | |
| } | ||
| } | ||
|
|
||
| void ior_easy_add_params(u_argv_t * argv, int addStdFlags){ | ||
| void ior_easy_add_params(u_argv_t * argv, int addStdFlags, int direct){ | ||
| opt_ior_easy d = ior_easy_o; | ||
|
|
||
| u_argv_push(argv, "./ior"); | ||
|
|
@@ -82,6 +83,10 @@ void ior_easy_add_params(u_argv_t * argv, int addStdFlags){ | |
| if(ior_easy_o.filePerProc){ | ||
| u_argv_push(argv, "-F"); /* write a separate file per process */ | ||
| } | ||
|
|
||
| if(direct){ | ||
| u_argv_push(argv, "--posix.odirect"); /* read&write file with direct IO */ | ||
| } | ||
| } | ||
|
|
||
| u_phase_t p_ior_easy = { | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree to this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't accept these changes, anyone can modify it. We will integrate some change to clarify that you are allowed to change it.