Version 2024b and ServiceHost

60 views (last 30 days)
Christopher Rutledge
Christopher Rutledge on 29 May 2024
Edited: Walter Roberson on 28 Jun 2024
Hello,
From the following question/response here ( https://www.mathworks.com/matlabcentral/answers/2111226-what-is-the-mathworks-service-host-and-why-is-it-running ), it would appear that this and related services cannot currently be disabled.
Is there a setting we can use to write this data and run these services from a different directory other than ~/.MathWorks?
The issue we are facing in our HPC environment is users can run matlab from any number of compute nodes and each run is creating a node specific directory. Our user home directories are limted with quotas and we're starting to receive complaints.
-Chris

Answers (1)

Damian Pietrus
Damian Pietrus on 29 May 2024
Edited: Damian Pietrus on 29 May 2024
Hello Christopher,
As of now, there is no way to change the location of the MATLAB Service Host. This is feedback that we've heard from other HPC centers, so for now I'll ask you to create a service request with the issues you've seen so that it can be tracked and attached in our internal systems.
Please also feel free to reach out to me directly, as I work with Parallel Server integration in HPC.
  5 Comments
Damian Pietrus
Damian Pietrus on 28 Jun 2024
Right now I don't have any additional information. I'd recommend reaching out to our support teams directly with both feedback and questions, as they should have the most up-to-date information and can formally track and pass along feedback as well.
Christopher Rutledge
Christopher Rutledge on 28 Jun 2024
The first case I opened, I was told a fix was in the works and slated for June 12-14 release date (case 07055994). When I installed 2024a update 4, it did appear things had changed and it might have worked but fell just short. It looks like a change was made to use symlinks to a shared directory, however, it only did that for the first node where matlab was run. All others do not attempt to use the shared symlink directory: ~/.MathWorks/ServiceHost/-mw_shared_installs/v2024.6.0.6
I opened another case (07100832) and was simply told twice that this is the way it works now. Even after explaining I was told there would be a fix and showing a change in behavour that fell just short.
Jörg, I wish you luck with your case! If you happen to try update 4 and have behavour different than the following, please post here.
Second case I opened after update 4:
----------------------------------------------------------------
It appears an attempt was made to solve the disk usage in shared environments with Update 4 and the ServiceHosts process. However, the problem persists.
If we are starting with a fresh ~/.MathWorks directory and start matlab on a host, it does appear that things will be setup for better disk usage:
$ pwd
/nas/cluster/home/yada/.MathWorks/ServiceHost
$ ls -l
total 0
drwxrwxr-x 2 yada users 4096 Jun 19 13:50 cluster-login4
drwxrwxr-x 2 yada users 4096 Jun 19 13:18 cluster-login6
drwxrwxr-x 2 yada users 4096 Jun 19 13:18 -mw_shared_installs
$ ls -l cluster-login6
total 3
-rw-rw-r-- 1 yada users 239 Jun 19 13:18 installDdux.info
-rw-rw-r-- 1 yada users 266 Jun 19 13:18 LatestInstall.info
drwxrwxr-x 2 yada users 4096 Jun 19 13:18 logs
drwxrwxr-x 2 yada users 4096 Jun 19 13:18 services
-rw-rw-r-- 1 yada users 1489 Jun 19 13:18 thisMSH.pem
lrwxrwxrwx 1 yada users 80 Jun 19 13:18 v2024.6.0.6 -> /nas/cluster/home/yada/.MathWorks/ServiceHost/-mw_shared_installs/v2024.6.0.6
Now, when we launch matlab from another host it's not making use of the symlink location:
$ ls -l cluster-login4
total 2
-rw-rw-r-- 1 yada users 258 Jun 19 13:44 LatestInstall.info
drwxrwxr-x 2 yada users 4096 Jun 19 13:45 logs
drwxrwxr-x 2 yada users 4096 Jun 19 13:44 services
-rw-rw-r-- 1 yada users 1489 Jun 19 13:45 thisMSH.pem
drwxrwxr-x 2 yada users 4096 Jun 19 13:44 v2024.6.0.6
I also cleared the ~/.MathWorks directory and ran the test in the opposite order and the results were the same -- only the first host gets the symlink.

Sign in to comment.

Categories

Find more on Agriculture in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!