* tests/test-vasnprintf-big.c (main): Require 10, not 12, GiB of RAM.
* tests/unistdio/test-u8-asnprintf-big.c (main): Require 15 GiB of RAM.
* tests/unistdio/test-ulc-asnprintf-big.c (main): Likewise.
+2024-06-19 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf, u*-asnprintf tests: Adjust memory need.
+ * tests/test-vasnprintf-big.c (main): Require 10, not 12, GiB of RAM.
+ * tests/unistdio/test-u8-asnprintf-big.c (main): Require 15 GiB of RAM.
+ * tests/unistdio/test-ulc-asnprintf-big.c (main): Likewise.
+
2024-06-19 Bruno Haible <bruno@clisp.org>
u8-asnprintf tests: Fix mistake.
rl.rlim_cur = rl.rlim_max = 0;
setrlimit (RLIMIT_CORE, &rl);
# endif
- /* The test below needs about 12 GiB of memory:
- 3 GiB for the inputs and up to 9 GiB for temporary output buffers. */
- double needed = 12.0 * 1024 * 1024 * 1024;
+ /* The test below needs about 10 GiB of memory:
+ $ time /usr/bin/time -f "Max RSS: %M KiB" ./test-vasnprintf-big
+ Max RSS: 10487464 KiB
+ real 0m34,417s
+ user 0m26,175s
+ sys 0m8,240s
+ 5 GiB for the inputs and up to 5 GiB for temporary output buffers. */
+ double needed = 10.0 * 1024 * 1024 * 1024;
double avail = physmem_claimable (1.0);
printf ("memory needed = %g MiB, available = %g MiB\n",
needed / 1024 / 1024, avail / 1024 / 1024);
rl.rlim_cur = rl.rlim_max = 0;
setrlimit (RLIMIT_CORE, &rl);
# endif
- /* The test below needs about 12 GiB of memory:
- 3 GiB for the inputs and up to 9 GiB for temporary output buffers. */
- double needed = 12.0 * 1024 * 1024 * 1024;
+ /* The test below needs about 15 GiB of memory:
+ $ time /usr/bin/time -f "Max RSS: %M KiB" ./test-u8-asnprintf-big
+ Max RSS: 15730356 KiB
+ real 0m58,011s
+ user 0m46,403s
+ sys 0m11,604s
+ 5 GiB for the inputs and up to 10 GiB for temporary output buffers. */
+ double needed = 15.0 * 1024 * 1024 * 1024;
double avail = physmem_claimable (1.0);
printf ("memory needed = %g MiB, available = %g MiB\n",
needed / 1024 / 1024, avail / 1024 / 1024);
rl.rlim_cur = rl.rlim_max = 0;
setrlimit (RLIMIT_CORE, &rl);
# endif
- /* The test below needs about 12 GiB of memory:
- 3 GiB for the inputs and up to 9 GiB for temporary output buffers. */
- double needed = 12.0 * 1024 * 1024 * 1024;
+ /* The test below needs about 15 GiB of memory:
+ $ time /usr/bin/time -f "Max RSS: %M KiB" ./test-ulc-asnprintf-big
+ Max RSS: 15730376 KiB
+ real 1m13,702s
+ user 1m0,184s
+ sys 0m13,512s
+ 5 GiB for the inputs and up to 10 GiB for temporary output buffers. */
+ double needed = 15.0 * 1024 * 1024 * 1024;
double avail = physmem_claimable (1.0);
printf ("memory needed = %g MiB, available = %g MiB\n",
needed / 1024 / 1024, avail / 1024 / 1024);