Explain it in 60 seconds
Spark executor memory model
Data Engineering · Spark · Intermediate
How is memory organized in a Spark executor?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Executor heap has unified memory shared by execution (joins, sorts) and storage (cache).
- spark.memory.fraction controls how much of the heap is unified memory.
- Execution can evict cached data when it needs space.
- Memory overhead is outside the heap, for Python workers and native memory.
- PySpark Python processes use overhead memory, so increase it for heavy UDFs.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.