Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nfs: calculate desired memory fraction for correct memory allocation
Motivation: Grizzly memory management uses heap memory size fraction even if direct memory is used. eclipse-ee4j/grizzly#2201 Moreover, for each memory slice (a memory segment per thread) allocates at least x16 chunks, which ends up at 16MB per slice (with 1MB chunk) Modification: as dCache needs `2 * #Cores * maxIObuf` memory, pre-calculate the required amount of direct memory and the corresponding fraction in relation to heap. Initialise the memory pool with 1/16 of the desired slice size to compensate memory allocator internal x16 increase. Result: dCache starts with 256m of direct memory (we still have xroot mover) Fixes: dCache#7522 Acked-by: Svenja Meyer Acked-by: Lea Morschel Target: master, 9.2 Require-book: no Require-notes: yes (cherry picked from commit 8f3b984) Signed-off-by: Tigran Mkrtchyan <[email protected]>
- Loading branch information