TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: KETTLEWELL
from: JAN PANTELTJE
date: 2020-01-25 07:21:00
subject: Re: Question about ever g

On a sunny day (Fri, 24 Jan 2020 14:54:44 +0000) it happened Richard
Kettlewell  wrote in
:

>Jan Panteltje  writes:
>> On a sunny day (Fri, 24 Jan 2020 09:23:25 +0000 (UTC)) it happened obruT
>>  wrote in :
>>
>>>On 2020-01-24, Jan Panteltje  wrote:
>>>[...]
>>>> What is the point of using all memory for caching?
>>>> Makes no sense to me.
>>>
>>>It makes perfect sense :) Other guys alredy answered why is that
>>>no problem so I will not repeat...
>>>
>>>> Is Linux DEAD?
>>>
>>>Depends :)
>>>
>>>If using of swap for "inactive" processes bothers you, you
>>>can always change swapiness setting.
>>>
>>>Change it with "sysctl vm.swappiness=VALUE where VALUE is
>>>some value lower than default (60).
>>>
>>>If you want to have it persistent across reboots, put it
>>>in sysctl.conf.
>>>
>>>Search for swappiness keyword to find detailed explanation
>>>about what is it and what you can expect with changing of
>>>that value.
>>
>>
>> OK, found this link
>>  https://www.howtoforge.com/tutorial/linux-swappiness/
>>
>> Yes, cool,
>> On my system it is set to 60, but WHY THEN is it filling almost the
>> whole memory
>> with cache?
>
>Because otherwise the memory would be wasted. You paid for the silicon,
>you’re paying for the electricity that powers it, using it store idle
>pages is not a good use of those resources. You are attacking a
>non-problem.

I disagree, I did see the swap space increasing day after day
and that set of an alarm with me (normally I do a quick view on 'xosview').
Also the same stuff running on a normal PC did not cause lots of unrelated
things to get swapped.
One of the links I gave shows there was a recent modification in the way the
kernel
handles caching.
From:

https://unix.stackexchange.com/questions/253816/restrict-size-of-buffer-cache-i
n-linux
all the way at the bottom of the page:
"Since Linux 2.6, [the bdflush] system call is deprecated and does nothing. It
is likely to disappear altogether in a future kernel release. Nowadays, the
task performed by bdflush() is handled by the kernel pdflush thread."
man7.org/linux/man-pages/man2/
bdflush.2.html \u2013 sourcejedi Feb 22 '19 at 1:05

Would not be the first kernel bug I encountered....
;-)

Will see ...

--- 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™.