A joking comment on my post about Emacs being pretty small these days said something like “130MB just to show a PNG”… which made me wonder what the userland on this Raspberry Pi Zero was like, anyway.
Above you see a list sorted by the resident size of the processes.
The biggest thing, at 29MB, is systemd-journal — which isn’t really necessary on a device like this, but nice to have.
Next up is exim4 at 17MB, which is totally unnecessary — this system is not going to be receiving mail (or even sending it).
NetworkManager (at 10MB) sounds necessary, but isn’t — one can just plop some stuff down in /etc/network/interfaces instead.
Then we have three instances of sshd (at 10MB and down), which is because I’m ssh‘d in — there’s normally just two otherwise? But necessary.
Then there’s stuff that sounds necessary, but ModemManager (!) at 4MB certainly isn’t, and I don’t think polkitd is either (4MB).
bluetoothd (3MB) is not necessary, and neither is avahid (two processes, 4MB altogether).
And then the rest (like d are the processes that update the screen and stuff) look necessary.
But that’s (+ 29 17 10 4 4 3 4) => 71MB of stuff that does not need to be running, I guess.
Which is more than the size of the Emacs process, anyway.
(There are obviously super duper optimised Linux images that run on actually constrained devices, but I was just curious as to how much a normal Debian image could be shaved down.)
Not that I’m going to be pruning processes — there’s plenty of space to go around, but it just shows how far off my initial supposition that the device was too limited to run Emacs locally was.










