I just noticed I had quite a lot of RAM in use that I couldn't account for through htop, ramdisks, or ZRAM swap. Htop said FF was taking ~1.6 GB and everything else (ramdisks and such included) should have totalled less than 500 MB, but RAM use was more like 2.9 GB, for a shortfall of ~800 MB. When I shut down FF, RAM use dropped all the way to 400 MB. Apparently FF was responsible for 2.5 GB, not the 1.6 GB it was labelled as resident in. On booting FF back up again, it's behaving more normally, with 900 MB resident / 100 MB shared and system RAM use at 1.25 GB. The system does have a bit over a week of uptime, and FF had been up long enough to accumulate 11 hours of CPU time. What happened here? Alternately, how could I debug this more properly if it happens again?
To be clear, this isn't an actual problem of any sort, I'm just curious.
Edit: I forgot to mention this is Arch Linux.