1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/ctdb/doc
Martin Schwenke b80967f5dc ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE
CTDB's system memory monitoring in 05.system.script monitors both main
memory and swap.  The swap monitoring was originally based on
the (possibly incorrect, see below) 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.  Additionally, performance on a Linux system tends to be
destroyed by the I/O associated with a lot of swapping to spinning
disks.

However, some platforms default to creating only 4GB of swap space
even when there is 128GB of main memory.  With such a small swap to
main memory ratio, memory pressure can force swap to be nearly full
even when a significant amount of main memory is still available and
the system is performing well.  This suggests that checking swap
utilisation might be less than useful in many circumstances.

So, remove the separate swap space checking and change the memory
check to cover the total of main memory and swap space.

Test function set_mem_usage() still takes an argument for each of main
memory and swap space utilisation.  For simplicity, the same number is
now passed twice to make the intended results comprehensible.  This
could be changed later.

A couple of tests are cleaned up to no longer use hard-coded
/proc/meminfo and ps output.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2019-05-07 05:45:34 +00:00
..
examples ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
cluster_mutex_helper.txt ctdb-mutex: Avoid corner case where helper is already reparented to init 2016-08-08 08:17:34 +02:00
ctdb_diagnostics.1.xml ctdb-doc: ctdb_diagnostics(1) tweaks and cross-references 2016-07-28 05:00:15 +02:00
ctdb_mutex_ceph_rados_helper.7.xml ctdb-docs: Add ctdb.conf(5) cross references and documentation tweaks 2018-05-17 04:04:32 +02:00
ctdb-etcd.7.xml ctdb-docs: Add ctdb.conf(5) cross references and documentation tweaks 2018-05-17 04:04:32 +02:00
ctdb-script.options.5.xml ctdb-scripts: Drop script configuration variable CTDB_MONITOR_SWAP_USAGE 2019-05-07 05:45:34 +00:00
ctdb-statistics.7.xml ctdb-doc: Add non-breaking space to lock_buckets documentation 2018-12-18 02:02:03 +01:00
ctdb-tunables.7.xml ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb.1.xml ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb.7.xml ctdb-scripts: Change directory for notifications to events/notification 2018-06-05 17:47:26 +02:00
ctdb.conf.5.xml ctdb-config: Switch tunable DisableIPFailover to a config option 2018-08-24 10:59:21 +02:00
ctdb.sysconfig.5.xml ctdb-docs: Document system options and resource controls 2018-05-12 06:11:17 +02:00
ctdbd_wrapper.1.xml ctdb-doc: Remove PIDFILE option from ctdbd_wrapper man page 2018-09-12 21:50:57 +02:00
ctdbd.1.xml ctdb-daemon: Improve documentation for -i option 2018-11-06 07:16:15 +01:00
ltdbtool.1.xml doc: Major updates to manual pages 2013-10-30 15:37:54 +11:00
onnode.1.xml ctdb-docs: Drop references to CTDB_BASE from the documentation 2018-04-27 06:53:16 +02:00
ping_pong.1.xml doc: Major updates to manual pages 2013-10-30 15:37:54 +11:00
readonlyrecords.txt Spelling correction: exlusive -> exclusive and semantincs -> semantics 2015-07-08 15:54:14 +02:00
recovery-process.txt Correct "occured" typos. 2017-02-22 08:26:21 +01:00