On 2023-08-02 13:40, Masaru Nomiya wrote:
Hello,
In the Message;
Subject : Re: Let's use ZRAM! Message-ID : <d3793c31-34ee-cb5d-e39f-6744c9d1b335@telefonica.net> Date & Time: Wed, 2 Aug 2023 10:51:44 +0200
[CER] == "Carlos E. R." <robin.listas@telefonica.net> has written:
[...] BR> > But here it is in any case: BR> > BR> > root@orion> free -tmh BR> > total used free shared buff/cache available BR> > Mem: 6.7Gi 2.9Gi 247Mi 140Mi 4.0Gi 3.8Gi BR> > Swap: 5.0Gi 0.0Ki 5.0Gi BR> > Total: 11Gi 2.9Gi 5.2Gi BR> > root@orion>
CER> Swap is available (5 gigs) but not used;
How can you say this?
What he showed was that there is 5GB of swap space, but it is not being used when the free command is used.
You can't tell if the swap space is being used or not without looking at the swap I/O. The only way to do that is to use the sar command.
If swap is used, there is always a few megabytes in it, unless there has been a manual command to disable swap. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)