Files
jemalloc/test/unit
Dmitry Ilvokhin 143f458188 Fix hpa_strict_min_purge_interval option logic
We update `shard->last_purge` on each call of `hpa_try_purge` if we
purged something. This means, when `hpa_strict_min_purge_interval`
option is set only one slab will be purged, because on the next
call condition for too frequent purge protection
`since_last_purge_ms < shard->opts.min_purge_interval_ms` will always
be true. This is not an intended behaviour.

Instead, we need to check `min_purge_interval_ms` once and purge as many
pages as needed to satisfy requirements for `hpa_dirty_mult` option.

Make possible to count number of actions performed in unit tests (purge,
hugify, dehugify) instead of binary: called/not called. Extended current
unit tests with cases where we need to purge more than one page for a
purge phase.
2024-08-20 10:02:38 -07:00
..
2020-02-19 16:03:16 -08:00
2021-12-23 10:55:08 -08:00
2021-12-23 10:55:08 -08:00
2020-07-31 09:16:50 -07:00
2020-07-31 09:16:50 -07:00
2023-09-06 10:47:14 -07:00
2020-07-31 09:16:50 -07:00
2024-05-22 10:30:31 -07:00
2024-05-22 10:30:31 -07:00
2024-05-22 10:30:31 -07:00
2018-12-03 17:17:03 -08:00
2023-05-08 15:00:02 -07:00
2020-04-01 09:41:20 -07:00
2020-02-19 16:03:16 -08:00
2020-05-12 08:23:15 -07:00
2021-09-17 16:56:41 -07:00
2020-02-19 16:03:16 -08:00
2021-06-24 07:40:28 -07:00
2024-05-22 10:30:31 -07:00
2021-02-04 20:58:31 -08:00
2021-07-12 17:59:18 -07:00
2021-06-24 07:40:28 -07:00
2020-03-31 06:25:08 -07:00
2020-02-19 16:03:16 -08:00
2021-06-24 14:55:49 -07:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2023-05-08 15:00:02 -07:00
2023-05-08 15:00:02 -07:00
2020-02-19 16:03:16 -08:00
2017-05-18 11:33:45 -07:00
2020-02-19 16:03:16 -08:00
2020-10-05 19:55:57 -07:00
2024-04-09 12:57:01 -07:00
2024-07-30 10:29:30 -07:00
2021-12-23 10:55:08 -08:00
2017-04-21 10:06:12 -07:00
2024-04-09 12:57:01 -07:00
2021-12-23 10:55:08 -08:00
2019-12-30 15:58:57 -08:00
2021-07-12 17:59:18 -07:00
2020-04-06 09:50:27 -07:00
2020-04-06 09:50:27 -07:00
2021-12-23 10:55:08 -08:00
2021-09-27 16:05:13 -07:00
2021-12-15 10:39:17 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00
2023-05-08 15:00:02 -07:00
2022-04-25 11:29:00 -07:00
2020-03-12 13:55:00 -07:00
2023-04-05 10:16:37 -07:00
2022-01-04 11:03:51 -08:00
2020-02-19 16:03:16 -08:00
2020-02-19 16:03:16 -08:00