-
Notifications
You must be signed in to change notification settings - Fork 623
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
[nrf fromlist] ZMS a new memory storage system #2045
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NordicBuilder
requested review from
anangl,
gmarull,
jaz1-nordic,
kl-cruz,
magp-nordic,
masz-nordic and
nika-nordic
September 24, 2024 15:27
rghaddab
changed the title
ZMS a new memory storage system
[nrf fromlist] ZMS a new memory storage system
Sep 24, 2024
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
3 times, most recently
from
September 25, 2024 15:06
daaddbc
to
51b6183
Compare
NordicBuilder
requested review from
akredalen,
alxelax,
Andrewpini,
HaavardRei,
jfischer-no,
omkar3141 and
PavelVPV
September 25, 2024 15:07
This was referenced Sep 25, 2024
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
7 times, most recently
from
September 27, 2024 20:11
65890a5
to
2e1916d
Compare
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
from
October 1, 2024 09:02
d7c1422
to
23e9623
Compare
de-nordic
approved these changes
Oct 3, 2024
de-nordic
requested review from
tomi-font and
Damian-Nordic
and removed request for
Andrewpini
October 3, 2024 10:57
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
from
October 3, 2024 19:59
23e9623
to
84144c6
Compare
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
3 times, most recently
from
October 9, 2024 08:54
277991d
to
274a981
Compare
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
7 times, most recently
from
October 16, 2024 00:13
ea9c8c6
to
42df08d
Compare
miha-nordic
approved these changes
Oct 16, 2024
ZMS is the abreviation of Zephyr Memory Storage. It is a storage developed to target especially the non erasable devices. The new memory storage system inherit from the NVS storage multiple features and introduce new ones : * Inherited features : - light key-value based storage - cache for entries - Wear Leveling of flash memory - Resilience to power failures * New features : - cycle counter for non erasable devices (instead of erase emulation) - Keys up to 32-bit - Built-in support of CRC32 for data - Small size data (<= 8 bytes) integrated within entries Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com> (cherry picked from commit 7d9d3fddea0a3ff999934c7aad99e54b2a8a864c)
List of added tests : - zms.test_delete - zms.test_zms_cache_collission - zms.test_zms_cache_gc - zms.test_zms_cache_hash_quality - zms.test_zms_cache_init - zms.test_zms_corrupted_sector_close_operation - zms.test_zms_corrupted_write - zms.test_zms_full_sector - zms.test_zms_gc - zms.test_zms_gc_3sectors - zms.test_zms_gc_corrupt_ate - zms.test_zms_gc_corrupt_close_ate - zms.test_zms_mount - zms.test_zms_write Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com> (cherry picked from commit 3f31a7db7fe70ee92a0fe63c07fb7704abbb52b3)
This adds a user application that shows the usage of ZMS The sample app shows three main functions of ZMS: - read/write/delete key/value pairs - fill all storage and delete it - calculate free remaining space Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com> (cherry picked from commit 9106be03f65f25e5d32920bf1443f05e43a54731)
This adds the documentation for the Zephyr Memory Storage system. Upstream PR: zephyrproject-rtos/zephyr#77930 Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com> (cherry picked from commit 7cc32ad6b45548b7173cbfa7b98d7bdff986f671)
…orage) This adds the initial backend support for the ZMS storage system. Upstream PR: zephyrproject-rtos/zephyr#78632 Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com> (cherry picked from commit b99b214b949d3ae10bf02eb60f4ade4fb42400a1)
Introduce ZMS_LOOKUP_CACHE_FOR_SETTINGS Kconfig option that enables a dedicated hash function for the ZMS lookup cache that takes advantage of the ZMS ID allocation scheme used by the ZMS settings backend. As such, this option should only be used if an application uses ZMS via the settings layer. Signed-off-by: Riadh Ghaddab <rghaddab@baylibre.com>
rghaddab
force-pushed
the
rghaddab/zms-sdk-zephyr
branch
from
October 16, 2024 11:58
42df08d
to
df1b688
Compare
rlubos
approved these changes
Oct 16, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new storage system ZMS and its backend for settings.
It adds as well all the dependencies for this storage fromtree zephyrproject-rtos:main