[Steve Bentley] ” Can you “show your work” on the math for the single frame of 4K? I’m not getting the number you get. Also, doesn’t the memory for AE include an assumed alpha in the video buffer? so that would be one more channel (and more mb) to take into account.”
Sure. Perhaps our numbers disagree because there are so many different definitions of 4K; I’m using UHD:
3840 pixels per line * 2160 lines = 8,294,400 pixels
8,294,400 pixels * 4 channels per pixel (RGBA) * 8 bits per channel = 265,420,800 bits
265,420,800 bits / 8 bits per byte = 33,177,600 bytes
33,177,600 bytes / 1024 bytes per KB = 32,400 KB
32,400 KB / 1024 KB per MB = 31.64063 MB
Ae also shows the RAM size of a frame in the comp settings window:

[Steve Bentley] “And finally, while all the propaganda for AE says that it can use all the ram you give it since CS5, I’ve not found that to be the case in the real world. Sure it’s gotten better, but we work on some pretty heavy files here and with 128gb available i’ve never seen AE top out beyond 13gb, and its still not caching everything it could be if it could access more ram. Am I missing something here too? where I could be filling up the ram and being more efficient? And is this different between Mac and PC? Or are the system tools lying to me about how and where the ram is filling. It would explain the long wait times when you purge the cache.”
RAM usage depends on a lot of factors, but I regularly see Ae going up to its allocation limit specified in preferences on our higher-RAM (64GB and up) systems.
Under Preferences > Memory, there’s an option for “RAM reserved for other applications.” Ae will use up to your total RAM minus RAM reserved for other apps. Note that this is shared memory among several Adobe apps — Ae, Pr, Pl, AME, Ps, Sg, and Au — so running multiple Adobe apps simultaneously will limit the actual subtotal that the Adobe memory manager will allocate to Ae. I generally leave a quarter of system RAM available to other applications.
How are you measuring memory use? It’s possible that you’re only seeing what’s used in the foreground process, and missing background processes and caches [link].
There’s some good background information on memory and storage in the docs:
https://helpx.adobe.com/after-effects/using/memory-storage1.html
Walter Soyka
Designer & Mad Scientist at Keen Live [link]
Motion Graphics, Widescreen Events, Presentation Design, and Consulting
@keenlive | RenderBreak [blog] | Profile [LinkedIn]