How can I prevent MATLAB 2024a from creating large hidden sge(number) folders with unnecessary logs and outputs when running jobs via SSH?

60 vues (au cours des 30 derniers jours)
I work with SSH in MATLAB for two versions: 2020a and 2024a. When running the same code on both versions, I noticed that MATLAB 2024a creates hidden folders named sge(number). Inside these folders, there are additional subfolders for logs and outputs that I don't need. These folders can quickly grow to over 50GB, which is problematic. I believe this behavior is due to the version difference, but I'm unsure how to prevent it. Can you help me resolve this issue
  2 commentaires
Rik
Rik le 20 Nov 2024 à 5:45
Where exactly are those folders created?
roi
roi le 21 Nov 2024 à 10:17
They created in folders named ServiceHost that in hidden foldes named .mathWorks

Connectez-vous pour commenter.

Réponses (2)

Hitesh
Hitesh le 21 Nov 2024 à 12:04
Modifié(e) : Hitesh le 22 Nov 2024 à 6:11
Hi roi,
The logs and output that are generated in large hidden sge(number) folders when running the jobs via SSH. There are some ways to handle them :
  • Adjust Logging Level: It generates verbose logs. You need to adjust the logging level to reduce the amount of log data.
cluster = parcluster();
cluster.LoggingLevel = 'off'; % Options: 'off', 'minimal', 'normal', 'detailed'
  • Cleanup Jobs: After the jobs are executed successfully, ensure that you are cleaning up the job's data.
delete(cluster.Jobs);
  • Check Job Storage Location: MATLAB stores job data in the default job storage location. You can change this location to a directory with more space or a temporary directory that gets cleaned up regularly.
cluster = parcluster();
cluster.JobStorageLocation = '/path/to/your/desired/directory';

Sam Marshalik
Sam Marshalik le 2 Déc 2024 à 20:51
What you are seeing is the result of the MathWorksServiceHost (MSH). I would recommend that you reach out to our Installation and Licensing team. They will be able to provide next steps on how to go about this issue.

Catégories

En savoir plus sur Startup and Shutdown dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by