4Gb is more than enough with Firefox on Linux with more than 30 tabs assuming you use uBlock Origin and uMatrix :)
Source: did just that on a daily basis on my recently replaced 10 year old laptop. I probably would have even been able to handle 2Gb assuming Firefox was the only application running.