Hello, cant attach image cause of file size, i have fresh void linux base install in tty and btop tells me i use 500-600MiB of ram but my top 3 services uses 7-25M and rest are 5>, free -m also tells me 600M but why this much with not much services?

    • nous@programming.dev
      link
      fedilink
      English
      arrow-up
      17
      ·
      edit-2
      22 hours ago

      252 of that 592 used memory is buffers/cache, not application memory. That is used by the kernel for kernel buffers and the filesystem cache - IE files read by something at some point. The kernel keeps them in memory in case they are needed again to speed up file reads. You can effectively ignore these vales as they will always grow to fill your ram and will be evicted when programs require memory and there is not enough free.

      These tools are not lieing to you, just telling you something other then what you are reading into them. Tracking and reporting on what is using memory is a complex topic and here used is just what is physically allocate. It doesn’t mean much over all as it always tends to be full of your system has been running for a decent amount of time. Available is typically the more useful one to look at as it is an estimate about how much the kernel can reclaim now if an application request it without needing to swap things out.