# Memory errors

**URL:** <https://discuss.aerospike.com/t/memory-errors/4317>\
**Category:** Operations\
**Created:** [June 29, 2017, 7:20pm UTC](https://discuss.aerospike.com/t/memory-errors/4317 "2017-06-29T19:20:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [June 30, 2017, 6:13pm UTC](https://discuss.aerospike.com/t/memory-errors/4317/5 "2017-06-30T18:13:11Z")

</div>

> [@matijav](#):
>
> Jun 29 2017 09:14:37 GMT: INFO (drv\_ssd): (drv\_ssd.c:2118) {realtime} /dev/sdd: used-bytes 145150033408 free-wblocks 157520 write-q 0 write (25288648,0.0) defrag-q 0 defrag-read (24980403,0.0) defrag-write (12250503,0.0) Jun 29 2017 09:14:37 GMT: INFO (drv\_ssd): (drv\_ssd.c:2118) {realtime} /dev/sdc: used-bytes 145125398912 free-wblocks 158002 write-q 0 write (25257368,0.0) defrag-q 0 defrag-read (24949853,0.0) defrag-write (12235755,0.0)

You are running very close to [stop-writes-pct](http://www.aerospike.com/docs/reference/configuration#stop-writes-pct):

```auto
bytes_used / ((free_wblocks * wblock_size * 1kb) + bytes_used) = fraction_used
145150033408 / ((157520 * 128 * 1024) + 145150033408) = ~0.875

```

I suspect that it must have breached during this event.

BTW you are also really close to min-avail-pct as well.

> [@matijav](#):
>
> Jun 29 2017 09:14:37 GMT: INFO (drv\_ssd): (drv\_ssd.c:2118) {realtime} /dev/sdc: used-bytes 145125398912 free-wblocks 158002 write-q 0 write (25257368,0.0) defrag-q 0 defrag-read (24949853,0.0) defrag-write (12235755,0.0)

Defrag isn’t doing anything in this snapshot for a 10 second window, but this isn’t unexpected since the write rate is also 0. If your write rate is generally low then you may want to increase [defrag-lwm-pct](http://www.aerospike.com/docs/reference/configuration#defrag-lwm-pct) to 65 (be aware that this will result in [write amplification](https://discuss.aerospike.com/t/faq-why-is-high-water-disk-pct-set-to-50/3054) which increases non-linearly to value of defrag-lwm-pct).

---

_[View the full topic](https://discuss.aerospike.com/t/memory-errors/4317)._
