You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: the procedure for checking if a job is running with memory containment (e.g. if the system was configured properly for it) is something like:
Run a job
Convert one of job's hostnames to rank with flux overlay lookup <hostname>
List flux transient units on that rank with sudo flux exec -r <rank> systemctl --user list-units --type=service
Show the unit status with e.g. sudo flux exec -r <rank> systemctl --user status imp-shell-1-fpUt87KFAo.service
look for the Memory line in the output, e.g.
● imp-shell-1-fpUt87KFAo.service - User workload
Loaded: loaded (/run/user/500/systemd/transient/imp-shell-1-fpUt87KFAo.service; transient)
Transient: yes
Active: active (running) since Mon 2024-05-13 12:02:44 PDT; 2min 20s ago
Main PID: 733 (flux-imp)
Tasks: 3 (limit: 1599)
Memory: 5.9M (max: 1.4G)
CPU: 203ms
CGroup: /user.slice/user-500.slice/user@500.service/app.slice/imp-shell-1-fpUt87KFAo.service
├─733
├─737
└─739
If everything is set up, the Memory line should show the current usage and limit.
Two other notes:
These commands must run as the flux user in order to authenticate to the flux user's systemd instance. flux-exec(1) always runs processes as the instance owner but if running the commands locally, you would need to explicitly run them as the flux user.
In addition, the DBUS_SESSION_BUS_ADDRESS environment variable has to be set up e.g.
Problem: the procedure for checking if a job is running with memory containment (e.g. if the system was configured properly for it) is something like:
flux overlay lookup <hostname>
sudo flux exec -r <rank> systemctl --user list-units --type=service
sudo flux exec -r <rank> systemctl --user status imp-shell-1-fpUt87KFAo.service
Memory
line in the output, e.g.If everything is set up, the Memory line should show the current usage and limit.
Two other notes:
flux-exec(1)
always runs processes as the instance owner but if running the commands locally, you would need to explicitly run them as the flux user.In 0.62.0 onward,
flux-exec(1)
sets that for you.The text was updated successfully, but these errors were encountered: