SimQ Version 1.3This page describes how to install SimQ version 1.3 (released 2024-08-04) on your macOS system. SimQ includes two main components:
simd: A daemon process that makes your computer part of MPAL's network of simulation
compute resources. It will be set up to run as a background process on macOS.psq: A user application for submitting, managing, and monitoring simulations.
Key points about simd installation and runtime behavior:
simd user and group will be created (if they don't exist) and the daemon will run as that
user.simd will poll the Plato central
dispatcher daemon every 30 seconds to check for pending simulations.
wget http://216.16.195.147/downloads/simq.1.1-2024-08-04.macos.x86_64.tar.gz
or
curl -O http://216.16.195.147/downloads/simq.1.1-2024-08-04.macos.x86_64.tar.gz
tar xzvf simq.1.1-2024-08-04.macos.x86_64.tar.gz
cd simq
sudo ./macinstall.sh
The installer script will perform the following tasks:
simd and psq binaries to /usr/local/simq/simd in /usr/local/simq/simd/simd user and groupsimd daemon immediatelyUpon completion, the script will ask if you want to start the simd daemon. Press y
(or just hit enter) to start the daemon, or n to start it later manually.
If this is the first installation, a configuration file named simdconfig.json5 will be created
in /usr/local/simq/simd/ with the following structure:
{
"CPUs": 8,
"Memory": "16GB",
"CPUArchitecture": "x86_64",
"MaxSimulations": 1,
"SimdSimulationsDir": "/var/lib/simd",
"DispatcherURL": "http://192.168.5.100:8250/"
}
Configuration values:
CPUs: Number of CPU cores available for simulations (auto-detected)Memory: Amount of system memory available for simulations (auto-detected)CPUArchitecture: CPU architecture of the system (auto-detected)MaxSimulations: Maximum number of simultaneous simulations this instance can runSimdSimulationsDir: Directory where simulation data will be storedDispatcherURL: URL of the central dispatcher (do not change unless instructed)You can manually adjust these settings if needed, but the auto-detected values should work for most cases.
simd DaemonSince `simd` is not managed by `launchctl`, you can control it directly through command line processes:
| Command | Description |
|---|---|
sudo pkill -f simd |
Stops the simd daemon by killing its process |
sudo /usr/local/simq/simd/simd & |
Starts the simd daemon in the background |
ps aux | grep simd |
Checks if the simd daemon is running |
tail -n 30 /usr/local/simq/simd/simd.log |
View the last 30 lines of simd.log |
To ensure the simd daemon starts automatically at boot, you can add it to the root crontab:
sudo crontab -e
simd at boot:
@reboot /usr/local/simq/simd/simd &
psqpsq (Plato Simulation Queue) is used to add, remove, and manage simulation jobs. Jobs added to
the simulation queue will be executed by the first available simd instance in the network.
To use psq:
/usr/local/simq/bin to your PATH:
echo 'export PATH=$PATH:/usr/local/simq/bin' >> ~/.bash_profile
source ~/.bash_profile
For more detailed information on using psq use the 'help' command at the psq
prompt.
simd service is running, you should see "active (running)" in the output:
systemctl status simd
psq is accessible, this should display the version number of psq:
psq -v
tail -n 30 /usr/local/simq/simd/simd.log
sudo launchctl list | grep com.simq.simd
cat /usr/local/simq/simd/simdconfig.json5
log show --predicate 'process == "simd"' --info
/usr/local/simq/bin is in your PATH.
simd logs for any connection issues.
To remove SimQ from your system you can run the macuninstall.sh script:
sudo ./macuninstall.sh -v
This will do the following:
simd user and groupsimd daemon and launchd servicesimd created and maintainedpsq commandIf you encounter any issues not covered in this guide or have questions about SimQ:
1.0 - Initial release
1.1 - Updates
psq. The ss command (simd status) can be used
to ensure that simd is healthy.redo command.1.2 - Updates
1.3 - Updates