Dmitry Ilvokhin
46690c9ec0
Fix test_retained on boxes with a lot of CPUs
...
We are trying to create `ncpus * 2` threads for this test and place them
into `VARIABLE_ARRAY`, but `VARIABLE_ARRAY` can not be more than
`VARIABLE_ARRAY_SIZE_MAX` bytes. When there are a lot of threads on the
box test always fails.
```
$ nproc
176
$ make -j`nproc` tests_unit && ./test/unit/retained
<jemalloc>: ../test/unit/retained.c:123: Failed assertion:
"sizeof(thd_t) * (nthreads) <= VARIABLE_ARRAY_SIZE_MAX"
Aborted (core dumped)
```
There is no need for high concurrency for this test as we are only
checking stats there and it's behaviour is quite stable regarding number
of allocating threads.
Limited number of threads to 16 to save compute resources (on CI for
example) and reduce tests running time.
Before the change (`nproc` is 80 on this box).
```
$ make -j`nproc` tests_unit && time ./test/unit/retained
<...>
real 0m0.372s
user 0m14.236s
sys 0m12.338s
```
After the change (same box).
```
$ make -j`nproc` tests_unit && time ./test/unit/retained
<...>
real 0m0.018s
user 0m0.108s
sys 0m0.068s
```
2024-12-02 14:12:26 -08:00
..
2020-02-19 16:03:16 -08:00
2024-08-29 10:50:33 -07:00
2020-10-24 20:43:44 -07:00
2017-02-23 08:57:02 -08:00
2017-02-23 08:57:02 -08:00
2021-12-23 10:55:08 -08:00
2021-12-23 10:55:08 -08:00
2023-02-16 14:42:21 -08:00
2020-02-19 16:03:16 -08:00
2023-10-11 11:56:01 -07: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-09-12 11:36:17 -07:00
2024-05-22 10:30:31 -07:00
2020-04-10 13:12:47 -07:00
2018-12-03 17:17:03 -08:00
2023-05-08 15:00:02 -07:00
2020-07-30 15:25:23 -07:00
2020-04-01 09:41:20 -07:00
2023-10-25 10:27:31 -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
2023-07-06 12:00:02 -07:00
2020-10-15 10:03:16 -07:00
2021-09-24 13:43:18 -07:00
2024-07-29 13:58:31 -07:00
2021-02-11 11:32:01 -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
2024-08-06 13:16:09 -07:00
2023-07-06 12:00:02 -07:00
2024-06-07 10:52:41 -07:00
2024-11-20 18:59:07 -08:00
2024-11-20 10:52:52 -08:00
2021-07-12 17:59:18 -07:00
2023-03-13 10:50:10 -07:00
2020-03-12 11:58:09 -07:00
2021-12-22 20:10:28 -08:00
2017-02-23 08:57:02 -08:00
2017-02-23 08:57:02 -08:00
2017-02-23 08:57:02 -08:00
2017-02-23 08:57:02 -08:00
2023-07-06 12:00:02 -07:00
2017-02-23 08:57:02 -08:00
2021-06-24 07:40:28 -07:00
2024-11-21 09:23:32 -08:00
2024-02-29 12:12:44 -08:00
2020-03-31 06:25:08 -07:00
2020-08-13 10:03:15 -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-10-18 14:11:46 -07:00
2024-11-08 10:37:28 -08:00
2023-06-27 11:57:41 -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-06-11 13:54:22 -07:00
2021-08-02 15:02:49 -07:00
2020-10-05 19:55:57 -07:00
2020-06-29 14:27:50 -07:00
2017-02-23 08:57:02 -08:00
2020-06-29 14:27:50 -07:00
2021-12-22 20:10:28 -08:00
2020-10-23 11:14:34 -07:00
2024-04-09 12:57:01 -07:00
2024-07-30 10:29:30 -07:00
2022-09-12 13:56:22 -07:00
2021-12-23 10:55:08 -08:00
2017-04-21 10:06:12 -07:00
2023-07-06 12:00:02 -07:00
2021-12-22 20:10:28 -08:00
2024-04-09 12:57:01 -07:00
2020-06-29 14:27:50 -07:00
2023-07-06 12:00:02 -07:00
2023-05-11 09:10:57 -07:00
2021-12-23 10:55:08 -08:00
2019-12-30 15:58:57 -08:00
2023-07-03 16:19:06 -07:00
2023-07-03 16:19:06 -07:00
2021-10-01 14:32:40 -07:00
2021-12-22 20:10:28 -08:00
2023-04-05 10:03:12 -07:00
2021-12-22 20:10:28 -08:00
2023-07-24 14:40:42 -07:00
2021-12-22 20:10:28 -08:00
2023-04-05 10:03:12 -07:00
2017-02-23 08:57:02 -08:00
2024-11-21 09:23:32 -08: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
2024-12-02 14:12:26 -08:00
2021-09-27 16:05:13 -07:00
2022-01-27 10:29:54 -08:00
2021-12-22 20:10:28 -08:00
2021-12-15 10:39:17 -08:00
2021-12-15 10:39:17 -08:00
2021-12-15 10:39:17 -08:00
2020-02-19 16:03:16 -08:00
2024-01-18 14:51:04 -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
2021-12-22 20:10:28 -08:00
2023-09-05 14:33:55 -07:00
2021-02-04 14:10:43 -08:00
2020-02-19 16:03:16 -08:00
2017-05-31 13:08:45 -07:00
2020-02-19 16:03:16 -08:00
2023-10-11 11:56:01 -07:00
2022-04-25 11:29:00 -07:00
2023-10-25 10:27:31 -07:00
2024-06-25 12:59:45 -07:00
2023-07-06 12:00:02 -07:00
2020-03-12 13:55:00 -07:00
2019-11-04 11:15:50 -08:00
2023-04-05 10:16:37 -07:00
2022-10-25 09:54:38 -07:00
2022-01-04 11:03:51 -08:00
2020-02-19 16:03:16 -08:00
2023-07-06 12:00:02 -07:00
2019-10-29 17:48:44 -07:00
2023-07-06 12:00:02 -07:00
2022-04-20 10:27:25 -07:00
2023-07-06 12:00:02 -07:00
2019-10-29 17:48:44 -07:00
2023-07-06 12:00:02 -07:00
2019-10-29 17:48:44 -07:00
2020-02-19 16:03:16 -08:00
2017-02-23 08:57:02 -08:00