LXD VM becoming slow with no free RAM

Hi All,

I have created a lxd-vm with 2TB harddisk, 64GB ram and 16 cores CPU to create offline mirror of canonical deb packages, snaps, charms and so on.

After running scripts to download oci-images via docker, vm is becoming slow as free memory is few mb and 95% memory is ending up in buffer/cache. As a result any execution of new scripts is quite slow. I am using docker to dowload oci-images for offline access in the lxd-vm and suspecting it is using up all the memory.

top - 06:05:14 up 49 min,  1 user,  load average: 1.90, 1.65, 1.58
Tasks: 214 total,   2 running, 212 sleeping,   0 stopped,   0 zombie
%Cpu(s):  1.3 us,  1.4 sy,  0.0 ni, 86.3 id, 11.1 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :  59879.9 total,    372.3 free,    942.7 used,  58564.9 buff/cache
MiB Swap:      0.0 total,      0.0 free,      0.0 used.  58353.8 avail Mem 

I understand buffer/cache will get freed accordingly but as shown in above logs system becomes slow and running any new applications or scripts in the system is quite slow. Is this an issue or expected behavior? I dont think bumping memory to 128g should not help me down here as it would take some more time to end up in buffer/cache.

Any suggestions would be of great help ?