Mike Stump <[email protected]> writes:
> On Jun 15, 2026, at 4:43 AM, Rainer Orth <[email protected]>
> wrote:
>> As discussed in PR testsuite/125584, the gfortran.dg/coarray tests with
>> -lcaf_shmem require excessive amounts of backing store for their shared
>> memory images: for 64-bit tests, each test uses 4 GB images.
>>
>> On Solaris, the mapped files reside in /tmp/.LIBRT/SHM, which is tmpfs.
>> During parallel testing, several such tests can run in parallel, leading
>> to excessive VM use, in particular on targets like Solaris that don't
>> use lazy allocation. This is unacceptable since the testsuite defaults
>> need to be safe for all targets.
>>
>> The tests PASS just fine when limiting GFORTRAN_SHARED_MEMORY_SIZE to 2M
>> instead. To allow for testing with either the default or a different
>> size, setting GCC_TEST_RUN_EXPENSIVE to a non-empty string allows to
>> override this.
>>
>> Tested on amd64-pc-solaris2.11 and x86_64-pc-linux-gnu.
>>
>> Ok for trunk?
>
> Can I ask what the minimum size is needed to not fail the testing? I would
> rather have the limit be 2x this, to encourage folks to make smaller more
> directed tests instead of massive tests that don’t actually need to be
> massive.
>
> If very small, + a small delta s to not harass folks with something too small.
I can't tell: 2 MB was originally suggested in the PR, just works and
doesn't seem excessive.
Besides, Jerry already ok'ed the patch in the PR.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University