TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: JAN PANTELTJE
from: DRUCK
date: 2020-01-27 16:23:00
subject: Re: Question about ever g

On 24/01/2020 12:59, Jan Panteltje wrote:
> I did the following as test / solution perhaps: Added # clear cache
> every 15 minutes to prevent swap space usage and swap partition
> overflow due to too little free memory left

Don't do this, it is pointless interfering with the cache system, which
will reduce system performance and wont affect swap usage in any way.
The kernel will always reduce the cache as far as possible and give the
memory to applications, before it is forced to do any swapping.

> closing both firefox and chrome does NOT release the new swap space,
> it staysat 20.2 free, so it seems other apps were forced to use swap,
> 2 GB not enough ??? LOL

Any pages of other applications which were forced in to swap will stay
there until those pages are needed again, and which point they will be
loaded back in to RAM and the swap space freed. They kernel wont flush
out the swap unless you turn if off, as there is no benefit.

> But IMO this is a basic problem in Linux. An ever growing swap space
> usage is a killer in the long run, be it in a file or on a disk. ?

Over time unused parts of long running applications will end up in swap,
and stay there. It's not a problem unless the system is under intense
memory demand, and it has used both all the memory, and completely
filled the swap file.

As you keep talking about how much cache is present, the system is
obviously not under much memory demand, and you can safely ignore some
minor usage of the swap file.

---druck

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.