According to my experience, it is possible to do GradientMergeMosaic with small number of frames (2-3) even on machine with 2GB of physical memory, as long as you do it in 64bit system (Linux in my case). Same attempt on the same machine with 32bit system failed miserably.
regards, Zbynek