Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[PMEM-SHUFFLE-7] enable fsdax mode in pmem-shuffle #6

Merged
merged 3 commits into from
Mar 5, 2021

Conversation

kelvin-qin
Copy link
Contributor

Now Spark pmem-shuffle doesn't work in pmem's FSDAX mode.
This should be optional, and users should have the option to run on FSDAX when they are not using RDMA NIC(RDMA is too complex to use).
Therefore, it is necessary to make appropriate modifications to the code to run in FSDAX mode.

1.Create the poolfile of fsdax and specify the size in Scala (this is different from devdax)
2.When creating a pool, identify whether the device type is fsdax or devdax, and add judgment conditions to NATIVE code.
3.Other potential risks,eg. NUMA binding.

1. delete the fsdax file with POSIX API
2. delete fsdax files independently
3. fix fsdax mode in NUMA binding
enable fsdax mode in native:add param size in create method.
When using devdax, the size is changed to 0 in the upper level code
@github-actions
Copy link

github-actions bot commented Mar 4, 2021

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/oap-project/pmem-shuffle/issues

Then could you also rename commit message and pull request title in the following format?

[PMEM-SHUFFLE-${ISSUES_ID}] ${detailed message}

See also:

Copy link
Contributor

@Eugene-Mark Eugene-Mark left a comment

Choose a reason for hiding this comment

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

Compilation error happens in lib_jni_pmdk.cpp, please pass correct parameter when initialize pmemkv instance in method Java_org_apache_spark_storage_pmof_PersistentMemoryPool_nativeOpenDevice

add size param in native code.
@Eugene-Mark
Copy link
Contributor

It's related to issue #7

@kelvin-qin kelvin-qin changed the title enable fsdax mode in pmem-shuffle [PMEM-SHUFFLE-7] enable fsdax mode in pmem-shuffle Mar 4, 2021
@github-actions
Copy link

github-actions bot commented Mar 4, 2021

#7

@zhixingheyi-tian zhixingheyi-tian merged commit 8bf35eb into oap-project:master Mar 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants