Skip to content

Conversation

NordicBuilder
Copy link
Contributor

Backport 53f2704~11..53f2704 from #2165.

…ction"

This reverts commit 50c2373.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 0f863b6)
This reverts commit fabe33f.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 41c32a8)
This reverts commit 03ff227.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 9d02e17)
…rage system"

This reverts commit 1d98542.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 2fc6a1e)
This reverts commit 2a1ae9f.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit c779bfd)
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

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit d4e246d)
(cherry picked from commit d027f10)
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

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 004d6d6)
(cherry picked from commit fac1b34)
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

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit fb7dae7)
(cherry picked from commit 7584f50)
This adds the documentation for the Zephyr Memory Storage system.

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit 3c4fcaa)
(cherry picked from commit 77095d5)
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 <[email protected]>
(cherry picked from commit 6ccfcdc)
(cherry picked from commit 810873e)
This resolves some addressed comments in this PR
zephyrproject-rtos/zephyr#77930

It adds as well a section in the documentation about some
recommendations to increase ZMS performance.

Upstream PR #: 80407

Signed-off-by: Riadh Ghaddab <[email protected]>
(cherry picked from commit a40ba482bd65ba75540454468cbce4cfcbcc4bf2)
(cherry picked from commit 53f2704)
@miha-nordic
Copy link

safe to merge without rerun

@rlubos rlubos merged commit b8ec345 into v3.7.99-ncs1-branch Oct 29, 2024
19 checks passed
@rlubos rlubos deleted the backport-2165-to-v3.7.99-ncs1-branch branch October 30, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants