This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

pstorage block size

What exactly is block size in pstorage?

Desired block size for persistent memory storage, for example, if a module has a table with 10 entries, each entry is size 64 bytes, it can request 10 blocks with block size 64 bytes. On the other hand, the module can also request one block of size 640 based on how it would like to access or alter memory in persistent memory. First option is preferred when single entries that need to be updated often when having no impact on the other entries. While second option is preferred when entries of table are not changed on individually but have common point of loading and storing data.

Does that mean if I set block size to 10, I get blocks of 64 bytes, and if block size is 1 I get 640? This doesn't make much sense. Is block size instead the number of bytes in a single block? Or is it words per block?

Is block size somehow tied to block count? Or is block count the number of blocks I get of size block_size?

Thanks

Parents Reply Children
No Data
Related