Files
scylladb/utils
Avi Kivity cbbb15af5c logalloc: increase capacity of _regions vector outside reclaim lock
Reclaim consults the _regions vector, so we don't want it moving around while
allocating more capacity. For that we take the reclaim lock. However, that
can cause a false-positive OOM during startup:

1. all memory is allocated to LSA as part of priming (2baa16b371)
2. the _regions vector is resized from 64k to 128k, requiring a segment
   to be freed (plenty are free)
3. but reclaiming_lock is taken, so we cannot reclaim anything.

To fix, resize the _regions vector outside the lock.

Fixes #6003.
Message-Id: <20200311091217.1112081-1-avi@scylladb.com>

(cherry picked from commit c020b4e5e2)
2020-03-12 11:25:20 +02:00
..
2018-11-21 00:01:44 +02:00
2018-12-03 14:36:08 +01:00
2018-12-03 14:36:08 +01:00
2019-12-09 09:45:59 -05:00
2018-11-21 00:01:44 +02:00
2018-11-21 00:01:44 +02:00
2019-06-12 13:14:53 +03:00
2018-11-21 00:01:44 +02:00
2019-06-28 16:43:25 +03:00
2019-06-28 16:43:25 +03:00
2018-12-05 21:51:01 +02:00
2018-12-05 21:51:01 +02:00
2019-02-20 08:03:46 -08:00
2018-11-21 00:01:44 +02:00
2018-11-21 00:01:44 +02:00