stefanocasazza / ULib

C++ application development framework, to help developers create and deploy applications quickly and simply
GNU Lesser General Public License v3.0
947 stars 107 forks source link

What do the values passed to the UMEMPOOL environment variable mean #81

Closed talawahtech closed 4 years ago

talawahtech commented 4 years ago

I noticed that the techempower dockerfiles set an environment variable named UMEMPOOL. e.g.

ENV UMEMPOOL="58,0,0,41,273,-15,-14,-20,36"

I wasn't able to decipher what the different values mean and wasn't able to find any documentation, can you provide some insight?

victorstewart commented 4 years ago

So if you take a look at the series of U_STACK_TYPE_n macros beginning at this line, the comma delimited series of inputs, which you construct to seed the memory pool, correspond index for index to these architecture dependent byte sizes

And you can examine how that input string is processed in this function implementation

talawahtech commented 4 years ago

@victorstewart thanks