It would be nice if Firefox played nicely with cgroup memory limits. Right now, Firefox will freeze, crash or freeze while swapping heavily when it starts allocating near or at the limit. Same thing with Firejail.
I was able to reduce RAM usage by reducing the number of content processes, so that might be helpful to you also.
Yeah, I dropped dom.ipc.processCount by half a while ago, but I think Fission[1] overrides that setting.