After the system has been up for a while, freemem is only a couple of MB.

This is normal. When the system operates, it will gather more and
more cached data. E.g., every file ever read will be cached until
the memory is needed for some other purpose.

Free memory is wasted memory.

[an error occurred while processing this directive]