Yes, it was an honest mistake.
However, when I successively set the memory-size to 16G, 15G, 14G, 13G, 12G, and 11G, during heavy load from a stress test program, kswapd still kicks in eventually.
Now, with memory-size set to 10G, the DB crashes during startup.
This is from the journal:
Dec 15 2021 22:26:38 GMT: INFO (as): (as.c:379) initializing services...
Dec 15 2021 22:26:38 GMT: INFO (service): (service.c:167) starting 20 service threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:792) updated fabric published address list to {192.168.1.81:3001}
Dec 15 2021 22:26:38 GMT: INFO (partition): (partition_balance.c:201) {test} 4096 partitions: found 0 absent, 4096 stored
Dec 15 2021 22:26:38 GMT: INFO (smd): (smd.c:2319) no file '/opt/aerospike/smd/UDF.smd' - starting empty
Dec 15 2021 22:26:38 GMT: INFO (batch): (batch.c:781) starting 4 batch-index-threads
Dec 15 2021 22:26:38 GMT: INFO (health): (health.c:318) starting health monitor thread
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:417) starting 8 fabric send threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:431) starting 16 fabric rw channel recv threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:431) starting 4 fabric ctrl channel recv threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:431) starting 4 fabric bulk channel recv threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:431) starting 4 fabric meta channel recv threads
Dec 15 2021 22:26:38 GMT: INFO (fabric): (fabric.c:443) starting fabric accept thread
Dec 15 2021 22:26:38 GMT: INFO (hb): (hb.c:7160) initializing multicast heartbeat socket: 239.1.99.222:9918
Dec 15 2021 22:26:38 GMT: INFO (fabric): (socket.c:815) Started fabric endpoint 0.0.0.0:3001
Dec 15 2021 22:26:38 GMT: INFO (socket): (socket.c:1579) Joining multicast group: 239.1.99.222
Dec 15 2021 22:26:38 GMT: INFO (hb): (hb.c:7194) mtu of the network is 1500
Dec 15 2021 22:26:38 GMT: INFO (hb): (socket.c:1615) Started multicast heartbeat endpoint 0.0.0.0:9918
Dec 15 2021 22:26:38 GMT: INFO (nsup): (nsup.c:188) starting namespace supervisor threads
Dec 15 2021 22:26:38 GMT: INFO (service): (service.c:939) starting reaper thread
Dec 15 2021 22:26:38 GMT: INFO (service): (socket.c:815) Started client endpoint 127.0.0.1:3000
Dec 15 2021 22:26:38 GMT: INFO (service): (service.c:199) starting accept thread
Dec 15 2021 22:26:38 GMT: INFO (info-port): (thr_info_port.c:298) starting info port thread
Dec 15 2021 22:26:38 GMT: INFO (info-port): (socket.c:815) Started info endpoint 0.0.0.0:3003
Dec 15 2021 22:26:38 GMT: INFO (as): (as.c:421) service ready: soon there will be cake!
Dec 15 2021 22:26:39 GMT: INFO (nsup): (nsup.c:933) {test} collecting ttl & object size info ...
Dec 15 2021 22:26:40 GMT: INFO (clustering): (clustering.c:6354) principal node - forming new cluster with succession list: bb9d88ffec28570
Dec 15 2021 22:26:40 GMT: INFO (clustering): (clustering.c:5794) applied new cluster key 8aa4ba7e6e52
Dec 15 2021 22:26:40 GMT: INFO (clustering): (clustering.c:5796) applied new succession list bb9d88ffec28570
Dec 15 2021 22:26:40 GMT: INFO (clustering): (clustering.c:5798) applied cluster size 1
Dec 15 2021 22:26:40 GMT: INFO (exchange): (exchange.c:2318) data exchange started with cluster key 8aa4ba7e6e52
Dec 15 2021 22:26:40 GMT: INFO (exchange): (exchange.c:2668) exchange-compatibility-id: self 10 cluster-min 0 -> 10 cluster-max 0 -> 10
Dec 15 2021 22:26:40 GMT: INFO (exchange): (exchange.c:3218) received commit command from principal node bb9d88ffec28570
Dec 15 2021 22:26:40 GMT: INFO (exchange): (exchange.c:3181) data exchange completed with cluster key 8aa4ba7e6e52
Dec 15 2021 22:26:40 GMT: INFO (partition): (partition_balance.c:1005) {test} replication factor is 1
Dec 15 2021 22:26:40 GMT: INFO (partition): (partition_balance.c:976) {test} rebalanced: expected-migrations (0,0,0) fresh-partitions 0
Dec 15 2021 22:26:48 GMT: WARNING (nsup): (nsup.c:875) {test} breached stop-writes limit (memory), memory sz:13144177875 (8002539776 + 0 + 5141638099 + 0) limit:9663676416, disk avail-pct:97
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:166) NODE-ID bb9d88ffec28570 CLUSTER-SIZE 1
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:247) cluster-clock: skew-ms 0
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:268) system: total-cpu-pct 60 user-cpu-pct 40 kernel-cpu-pct 20 free-mem-kbytes 526056 free-mem-pct 3 thp-mem-kbytes 0
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:290) process: cpu-pct 42 threads (8,62,62,62) heap-kbytes (15161864,15162372,15413760) heap-efficiency-pct 98.4
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:300) in-progress: info-q 0 rw-hash 0 proxy-hash 0 tree-gc-q 0
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:323) fds: proto (0,0,0) heartbeat (0,0,0) fabric (0,0,0)
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:332) heartbeat-received: self 67 foreign 0
Dec 15 2021 22:26:48 GMT: INFO (info): (ticker.c:358) fabric-bytes-per-second: bulk (0,0) ctrl (0,0) meta (0,0) rw (0,0)
Dec 15 2021 22:26:49 GMT: INFO (info): (ticker.c:417) {test} objects: all 125039684 master 125039684 prole 0 non-replica 0
Dec 15 2021 22:26:49 GMT: INFO (info): (ticker.c:481) {test} migrations: complete
Dec 15 2021 22:26:49 GMT: INFO (info): (ticker.c:502) {test} memory-usage: total-bytes 13144177875 index-bytes 8002539776 set-index-bytes 0 sindex-bytes 5141638099 used-pct 122.41
Dec 15 2021 22:26:49 GMT: INFO (info): (ticker.c:571) {test} device-usage: used-bytes 10003174720 avail-pct 97 cache-read-pct 0.00
Dec 15 2021 22:26:58 GMT: INFO (drv_ssd): (drv_ssd.c:1837) {test} /dev/nvme0n1: used-bytes 10003174720 free-wblocks 3586500 write-q 0 write (0,0.0) defrag-q 0 defrag-read (1,0.1) defrag-write (0,0.0)
Dec 15 2021 22:26:58 GMT: WARNING (nsup): (nsup.c:875) {test} breached stop-writes limit (memory), memory sz:13144177875 (8002539776 + 0 + 5141638099 + 0) limit:9663676416, disk avail-pct:97
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:166) NODE-ID bb9d88ffec28570 CLUSTER-SIZE 1
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:247) cluster-clock: skew-ms 0
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:268) system: total-cpu-pct 120 user-cpu-pct 101 kernel-cpu-pct 19 free-mem-kbytes 515348 free-mem-pct 3 thp-mem-kbytes 0
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:290) process: cpu-pct 96 threads (8,62,62,62) heap-kbytes (15161864,15162372,15413760) heap-efficiency-pct 98.4
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:300) in-progress: info-q 0 rw-hash 0 proxy-hash 0 tree-gc-q 0
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:323) fds: proto (0,0,0) heartbeat (0,0,0) fabric (0,0,0)
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:332) heartbeat-received: self 139 foreign 0
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:358) fabric-bytes-per-second: bulk (0,0) ctrl (0,0) meta (0,0) rw (0,0)
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:417) {test} objects: all 125039684 master 125039684 prole 0 non-replica 0
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:481) {test} migrations: complete
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:502) {test} memory-usage: total-bytes 13144177875 index-bytes 8002539776 set-index-bytes 0 sindex-bytes 5141638099 used-pct 122.41
Dec 15 2021 22:26:59 GMT: INFO (info): (ticker.c:571) {test} device-usage: used-bytes 10003174720 avail-pct 97 cache-read-pct 0.00
aerospike.service: Main process exited, code=killed, status=9/KILL
aerospike.service: Failed with result 'signal'.