! GB and 2 GB Pi 4b benefit from no graphical desktop

Rob Robinett

While studying the performance of WD on the sites to which I have remote access, I have noticed that WD Pi4 site, especially those which only 1 GB or 2 GB of RAM, seem to use swap space which is generally a sign of the system starved of memory, for example:

top - 10:52:42 up 16 days, 18:07,  5 users,  load average: 2.24, 1.99, 1.99
Tasks: 229 total,   1 running, 228 sleeping,   0 stopped,   0 zombie
%Cpu(s):  6.7 us,  7.6 sy,  0.0 ni, 85.1 id,  0.0 wa,  0.0 hi,  0.5 si,  0.0 st
MiB Mem :   1866.5 total,    283.6 free,    328.2 used,   1254.7 buff/cache
MiB Swap:    100.0 total,    
 13.9 free,     86.1 used.
   1256.8 avail Mem

If 'top' shows such a condition on your Pi (or other memory-constrained PC) and it is configured to bring up a graphical desktop which you aren't using, then it is easy on a Pi to free a lot of memory by changing the Pi to boot up with a terminal mode desktop.  To do that from a terminal window on the Pi, run 'sudo raspi-config' and select 'Boot options' .

Some WD installation have run for weeks or months without rebooting, so I'm not aware of any memory leaks within WD.  But please let me know if you see any!