Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A question / slow performance on M1 mac #162

Closed
mvdebolskiy opened this issue Dec 14, 2022 · 5 comments
Closed

A question / slow performance on M1 mac #162

mvdebolskiy opened this issue Dec 14, 2022 · 5 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested

Comments

@mvdebolskiy
Copy link

Write you question here:

Norman Steinert tried to run the platform with an apple M1 processor and experienced extremely slow performance to the point that docker was giving up on the containers. I am pretty sure that overwrites for .cime in terms of compilers and dependencies are needed to fix this. I'll try to look into that during the holidays.

@mvdebolskiy mvdebolskiy added good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested labels Dec 14, 2022
@evalieungh
Copy link
Collaborator

It's great to have people interested in using this. I wonder if this older issue may be relevant - we have had issues with M1 mac processors before. #104

@evalieungh evalieungh changed the title A question A question / slow performance on M1 mac Jan 4, 2023
@evalieungh
Copy link
Collaborator

Hello,
while the problem with this type of Mac might be beyond us to solve, an alternative for UiB and UiO users could be a virtual machine on NREC. It is a bit cumbersome to set up properly, but we have experience with it and once it's set up the LSP works normal. (Using a virtual machine also has the benefit that running longer simulations will not take up 90% of your RAM for multiple workdays...)

Students etc can get a basic machine and some storage without applying, I think, and it's possible to apply for more resources if necessary.

  1. Creating a VM on NREC is documented both in the NREC user guide, this issue and in Emiliano Gelati's instructions for an older version of the LSP. Use a GOLD Ubuntu 22.04 LTS base image, and dualstack network.
  2. To get enough storage space for more than short test simulations, you need to attach a "Volume" to the virtual machine. See my issue to see how I did it...
  3. Using the virtual machine is outlined in the LSP documentation

If this is too confusing, just ask and I can try to help.

@mvdebolskiy
Copy link
Author

We figure it out. Seems like MacOs older than 15.5 was slowing things down. It also helps to turn on Virtualization Framework in the Settings\Experimental Features in Docker. And last, adjust memory, disk space, and CPU in the Settings\Resources.

@lasseke
Copy link
Collaborator

lasseke commented Jan 23, 2023

Awesome, great work @mvdebolskiy! We should add your solution to the documentation.

@evalieungh
Copy link
Collaborator

Great that you found a solution. I've added a link to this issue in PR draft #167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants