Stack Allocation vs Heap Allocation

Stack Allocation happens on contiguous blocks of memory. We call it a stack memory allocation because the allocation happens in the function call stack. The size of memory to be allocated is known to the compiler and whenever a function is called, its variables get memory allocated on the stack. Heap Allocation is allocated during the execution of instructions written by programmers. Note that the name heap has nothing to do with the heap data structure. It is called heap because it is a pile of memory space available to programmers to allocate and de-allocate.

Posted September 9, 2022 by Rohith and Anusha ‐ 1 min read

quick-references blog stack heap differences

Spark Memory Management

The main feature of apache spark is its ability to run computations in memory. Hence, it is obvious that memory management plays a very important role in the whole system. In this article we will dive into spark memory management.

Posted August 9, 2022 by Rohith ‐ 11 min read

apache spark bigdata architecture memory jvm yarn heap off-heap distributed-system gc

Subscribe For More Content