[Mesa-users] Optimizing MESA for HPC server with 128 cores and 128Gb memory

Earl Bellinger earlbellinger at gmail.com
Tue May 16 12:55:25 UTC 2023


Dear Levi,

Just to add a bit on Rob's answer:

Depending on the use case, a good number of threads to use with MESA seems
to be in the ballpark of around ~12. See Figure 47 in the paper Rob linked.

With 128 threads it's possible you could even see a degradation of
performance, because creating and managing threads requires computing
resources. If you create too many threads, the overhead of managing them
can outweigh the performance benefits of parallelism. If you wish, you
could test the performance as a function of the number of threads like in
the MESA instrument paper, and report back to us with the results.

Note that if your ultimate goal is to construct a grid of >=128 tracks,
then it will actually be fastest on your system to run each track with 1
thread. See e.g. Amdahl's law for more info.

Best wishes,
Earl

---
Earl Patrick Bellinger
Postdoctoral Research Fellow
Max Planck Institute for Astrophysics
https://earlbellinger.com


On Tue, May 16, 2023 at 11:36 AM Rob Farmer via Mesa-users <
mesa-users at lists.mesastar.org> wrote:

> Hi Levi,
>
> First off you can't use mesa3335.net in a mesa model. Limitations in how
> mesa handles arrays means the max number of isotopes is ~500 (depending on
> the number of mesh points).
>
> If your machine has 128 cores then you just do:
> export OMP_NUM_THREADS=128
>
> See Section 6 of
> https://ui.adsabs.harvard.edu/abs/2019ApJS..243...10P/abstract for a
> discussion of MESA's scaling with core counts. Short answer is that it is
> not linear, so don't expect MESA to use all available CPUs all the time.
>
> Rob
>
>
> On Tue, 16 May 2023 at 10:41, Levi via Mesa-users <
> mesa-users at lists.mesastar.org> wrote:
>
>> Dear  MESA-users,
>>
>> I have a question about using MESA on high-performance computing systems.
>> I want to use the large reaction network mesa3335.net to evolve a model,
>> but my local computer shows insufficient memory. So we switched to a server
>> with 128 cores and 128Gb of RAM, but it still doesn't work, MESA does not
>> seem to fully utilize the CPU and memory.
>>
>> How do we properly configure MESA to leverage the computing resources of
>> this server? Specifically, how can we set up the parameters to ensure MESA
>> calls on the multiple cores and large memory available?
>>
>> Any guidance you can provide would be greatly appreciated. Thank you in
>> advance for your time and assistance!
>>
>> Best,
>> Levi
>> _______________________________________________
>> mesa-users at lists.mesastar.org
>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>
>> _______________________________________________
> mesa-users at lists.mesastar.org
> https://lists.mesastar.org/mailman/listinfo/mesa-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20230516/9b6f15c5/attachment.htm>


More information about the Mesa-users mailing list