Autoscaled shared memory file size

in #witness-category7 years ago (edited)

shm.png

Yesterday I created Pull Request to adjust the size of the shared memory file (shared-file-size) to 20 GB in all default steemd configuration files as the shared file size already crossed 16 GB.

Unfortunately my Pull Request has been closed and not merged due to some discrepancies between master and develop branches but finally the change itself was implemented by the Dev Team and the new value is 24 GB.

But there is something more...

 
Few hours later, developer Michael Vandeberg proposed new change "Automatically Scale Shared Memory File", where the goal is to implement auto resizing for the shared memory file based on two parameters,

  • shared-file-fill-threshold: A uint16_t percentage (0-10000) that defines how full the file can get before scaling it.
  • shared-file-scale-rate: A uint16_t percentage (0-10000) that define how quickly the file can scale up when the fill threshold is met.

This feature looks really cool, isn't it? initial implementation seems to be in progress... ;-)


If you think I can be a good witness, please vote for me.

Thank you!