Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Implement "direct NVDIMM" mode bypassing LVM #26

Closed
okartau opened this issue Oct 19, 2018 · 4 comments
Closed

Implement "direct NVDIMM" mode bypassing LVM #26

okartau opened this issue Oct 19, 2018 · 4 comments

Comments

@okartau
Copy link
Contributor

okartau commented Oct 19, 2018

Driver could be made capable to operate in 2 modes:

  1. LVM-enabled mode (current main mode being developed)
  2. Direct-NVDIMM mode (was one of prototype models before LVM mode was added)
    Direct-NVDIMM code stubs have been kept in code just in case if we decide to keep that path.
    In that mode, driver will create NVDIMM namespaces and provision block devices based on those, directly.

Cons of direct mode:

  • leaves fragmentation risk wide open

Pros of direct mode:

We could say in doc: select LVM mode if you are concerned about fragmentation (dynamic create/delete of different volume sizes expected), but you can select direct-nvdimm mode if you only allocate once i.e. fragmented states are not expected.

@okartau okartau changed the title Should driver implement another "direct NVDIMM" mode bypassing LVM We can implement another "direct NVDIMM" mode bypassing LVM Oct 30, 2018
@okartau
Copy link
Contributor Author

okartau commented Oct 30, 2018

direct-NVDIMM mode implementation path became a much more cleaner with recent architecture change by #46

@okartau okartau changed the title We can implement another "direct NVDIMM" mode bypassing LVM Implement "direct NVDIMM" mode bypassing LVM Dec 11, 2018
@okartau
Copy link
Contributor Author

okartau commented Jan 7, 2019

Progress report: After few minor recent fixes/enhancements (like #114), simple unified-mode lifecycle (as in util/lifecycle-unified.sh) can be run both on emulated NVDIMM and in HW-based pmem, when driver runs in "ndctl" driver mode (i.e. bypassing LVM2)

@okartau
Copy link
Contributor Author

okartau commented Jan 7, 2019

Progress report: util/sanity-unified.sh fails on both emulated-pmem and on HW-pmem same way, so we cant blame qemu this time. I will create separate issue to keep things isolated

@okartau
Copy link
Contributor Author

okartau commented Feb 1, 2019

resolved via merge of direct-nvdimm mode in #133

@okartau okartau closed this as completed Feb 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant