druid icon indicating copy to clipboard operation
druid copied to clipboard

[Documentation] About Direct Memory

Open QiuMM opened this issue 8 years ago • 2 comments

In current doc, it says the amount of direct memory needed by Druid is at least

druid.processing.buffer.sizeBytes * (druid.processing.numMergeBuffers + druid.processing.numThreads + 1).

But for realtime and historical nodes they need direct memory for mmap, so the java MaxDirectMemorySize should set to more larger than this value. Am I right? Or the memory needed for mmap is already covered by this value?

QiuMM avatar Aug 20 '18 16:08 QiuMM

mmaped files are not considered direct memory AFAICT but yes, realtime nodes, peons and historicals all need memory in reserve for the Linux page cache which is responsible for paging files the have been mmaped in and out of memory.

josephglanville avatar Aug 22 '18 09:08 josephglanville

I have figured it out. Thanks.

QiuMM avatar Aug 22 '18 15:08 QiuMM