Skip to content
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

Enable IME native backend with mdtest #133

Merged
merged 2 commits into from
Mar 11, 2019
Merged

Conversation

jyvet
Copy link
Contributor

@jyvet jyvet commented Feb 11, 2019

No description provided.

This patch adds the support of statfs in the IME backend.
It uses ime_native_statvfs call to fill the ior_aiori_statfs_t
structure.
src/mdtest.c Outdated
if (strcasecmp(backend_name, "POSIX") != 0 && strcasecmp(backend_name, "DUMMY") != 0) {
if ((strcasecmp(backend_name, "POSIX") != 0) &&
(strcasecmp(backend_name, "IME") != 0) &&
(strcasecmp(backend_name, "DUMMY") != 0)) {
FAIL("-a only supported interface is POSIX (and DUMMY) right now!");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the error message to include IME?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I'll resubmit a version. Thanks for the review!

@glennklockwood
Copy link
Contributor

Thanks for contributing this! The changes seem very well encapsulated. I don't know if we have a way to test this independently, but it looks like it won't really affect non-IME functionality at all.

The error message should perhaps be updated, or maybe only updated if compiled with IME enabled. Happy to hear opinions from others on this.

@jyvet
Copy link
Contributor Author

jyvet commented Feb 12, 2019

Yes we have a way to test this independently. We made a mock interface which fakes a IME client and does POSIX calls. I'll do another PR to incude this in the Travis tests.
Thanks

This patch makes mdtest allow IME native interface.
It also defines a generic way to enable mdtest with each
backend.
@jyvet
Copy link
Contributor Author

jyvet commented Mar 11, 2019

Hi, could you tell me if you see other stuff I could improve for those 2 patches?
Thanks!

} ior_aiori_t;

enum bench_type {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this solution a bit crude. AIORI at some point might become a library and useful to other benchmarks. But well, Ok for now.

@JulianKunkel JulianKunkel merged commit b22a398 into hpc:master Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants