What is supersampling and why does it use so much ram?

When rendering an image, the image is rendered at the specified resolution multiplied by the supersample factor, then reduced for anti-aliasing purposes. The supersampling buffer is also in high dynamic range, so if you are rendering an image of 4000x2000 with a supersampling factor of 4, it will use 384 megabytes of RAM for this buffer.