Bulk loader uses too much memory #3017
Labels
area/bulk-loader
Issues related to bulk loading.
area/performance
Performance related issues.
investigate
Requires further investigation
kind/enhancement
Something could be better.
status/accepted
We accept to investigate/work on it.
status/needs-attention
This issue needs more eyes on it, more investigation might be required before accepting/rejecting it
The bulk loader's memory usage can grow beyond the size of physical RAM and cause swap space to be used. As the image below shows, memory usage grows monotonically during the map phase, is flat during the reduce phase, and is all finally released at exit.
The system does not appear to thrash, though, which suggests the memory is just being held by the process without it actively being accessed. Still, a big enough load may cause it to grow greater than RAM + swap and cause system instability or crashes.
Note the system was idle other than for dgraph. I did not test what would happen if concurrent processes had significant memory demands as well.
The text was updated successfully, but these errors were encountered: