My understanding defrag is not applicable for memory engine, sorry I didn’t specified that.
I’ve just spotted message in the log
Jun 02 2020 23:41:10 GMT: WARNING (nsup): (nsup.c:667) {test} breached eviction hwm (memory), memory sz:1398820752 (894208 + 0 + 1397926544) hwm:912680550, index-device sz:0 hwm:0, disk sz:0 hwm:0
looks like it takes all available memory despite limit is set. Can it affect deletion procedure?
before load data
free -h
total used free shared buff/cache available
Mem: 2.9Gi 1.1Gi 1.6Gi 108Mi 294Mi 1.7Gi
Swap: 4.0Gi 0B 4.0Gi
after data loaded
free -h
total used free shared buff/cache available
Mem: 2.9Gi 2.8Gi 24Mi 0.0Ki 132Mi 109Mi
Swap: 4.0Gi 1.3Gi 2.7Gi
namespace test {
replication-factor 2
memory-size 1G
nsup-period 10s
high-water-memory-pct 85
storage-engine memory
}
Jun 02 2020 23:41:02 GMT: INFO (truncate): (truncate.c:142) {users} got command to truncate to now (328837262996)
Jun 02 2020 23:41:10 GMT: WARNING (nsup): (nsup.c:667) {test} breached eviction hwm (memory), memory sz:1398820752 (894208 + 0 + 1397926544) hwm:912680550, index-device sz:0 hwm:0, disk sz:0 hwm:0
Jun 02 2020 23:41:10 GMT: WARNING (nsup): (nsup.c:727) {test} no records eligible for eviction
Jun 02 2020 23:41:11 GMT: WARNING (nsup): (nsup.c:875) {test} breached stop-writes limit (memory), memory sz:1398820752 (894208 + 0 + 1397926544) limit:966367641, disk avail-pct:100
Jun 02 2020 23:41:11 GMT: INFO (info): (ticker.c:423) {test} objects: all 13972 master 13972 prole 0 non-replica 0
Jun 02 2020 23:41:11 GMT: INFO (info): (ticker.c:483) {test} migrations: complete
Jun 02 2020 23:41:11 GMT: INFO (info): (ticker.c:501) {test} memory-usage: total-bytes 1398820752 index-bytes 894208 sindex-bytes 0 data-bytes 1397926544 used-pct 130.28
Jun 02 2020 23:41:11 GMT: INFO (info): (ticker.c:632) {test} client: tsvc (0,0) proxy (0,0,0) read (0,0,0,0,0) write (13972,6028,0,0) delete (0,0,0,0,0) udf (0,0,0,0) lang (0,0,0,0)
Jun 02 2020 23:41:11 GMT: INFO (info): (ticker.c:809) {test} scan: basic (1,1,0) aggr (0,0,0) udf-bg (0,0,0) ops-bg (0,0,0)
Jun 02 2020 23:41:11 GMT: INFO (info): (hist.c:240) histogram dump: {test}-write (20000 total) msec
Jun 02 2020 23:41:11 GMT: INFO (info): (hist.c:257) (00: 0000019815) (01: 0000000170) (02: 0000000012) (03: 0000000002)
Jun 02 2020 23:41:11 GMT: INFO (info): (hist.c:266) (04: 0000000001)
Jun 02 2020 23:41:20 GMT: WARNING (nsup): (nsup.c:667) {test} breached eviction hwm (memory), memory sz:1398820752 (894208 + 0 + 1397926544) hwm:912680550, index-device sz:0 hwm:0, disk sz:0 hwm:0
Jun 02 2020 23:41:20 GMT: WARNING (nsup): (nsup.c:727) {test} no records eligible for eviction
Jun 02 2020 23:41:21 GMT: WARNING (nsup): (nsup.c:875) {test} breached stop-writes limit (memory), memory sz:1398820752 (894208 + 0 + 1397926544) limit:966367641, disk avail-pct:100