[PATCH] ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE

Martin Schwenke martin at meltin.net
Fri May 3 01:19:40 UTC 2019


Hi Louis,

On Thu, 2 May 2019 14:47:05 +0200, "L. van Belle via samba-technical"
<samba-technical at lists.samba.org> wrote:

> > Monitoring of swap is based on the idea that swap
> > space stacks on top of main memory, so that when a system starts
> > filling swap space then this is supposed to be a good sign that
> > the system is running out of memory.   
> 
> Not completely right in my option. 
> Swap can be full while your ram is not.

Right.  That means my commit message is no good because that is why
we're going to remove this configuration variable and no longer
separately monitor swap.  :-)

New patch attached with updated commit message.

> Maybe its good to check swappiness also, most distro's have default
> swappiness set to 60.
> The parameter value set to 60 means that "your kernel will swap when RAM
> reaches 40% capacity."
> 40% ! All other is used for caching and/or services.
> 
> [...]

This was something I was planning to look into and you've given me an
excellent explanation.  Thanks!

peace & happiness,
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ctdb-scripts-Drop-script-configuration-variable-CTDB.patch
Type: text/x-patch
Size: 15010 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20190503/983a3120/0001-ctdb-scripts-Drop-script-configuration-variable-CTDB.bin>


More information about the samba-technical mailing list