Maybe a heavier lift than you had in mind, but check
out xdmod, open.xdmod.org.

  It was developed by the NSF as part of the now-shuttered
XSEDE program, and is useful for both system and user monitoring.

                  -- A.

On Fri, Aug 09, 2024 at 12:12:08PM -0400, Paul Edmon via slurm-users wrote:
> Yeah, I was contemplating doing that so I didn't have a dependency on the
> scheduler being up or down or busy.
> 
> What I was more curious about is if any one had an prebaked scripts for
> that.
> 
> -Paul Edmon-
> 
> On 8/9/2024 12:04 PM, Jeffrey T Frey wrote:
> > You'd have to do this within e.g. the system's bashrc infrastructure.  The 
> > simplest idea would be to add to e.g. /etc/profile.d/zzz-slurmstats.sh and 
> > have some canned commands/scripts running.  That does introduce load to the 
> > system and Slurm on every login, though, and slows the startup of login 
> > shells based on how responsive slurmctld/slurmdbd are at that moment.
> > 
> > Another option would be to run the commands/scripts for all users on some 
> > timed schedule — e.g. produce per-user stats every 30 minutes.  So long as 
> > the stats are publicly-visible anyway, put those summaries in a shared file 
> > system with open read access.  Name the files by uid number.  Now your 
> > /etc/profile.d script just cat's ${STATS_DIR}/$(id -u).
> > 
> > 
> > 
> > 
> > > On Aug 9, 2024, at 11:11, Paul Edmon via slurm-users 
> > > <slurm-users@lists.schedmd.com> wrote:
> > > 
> > > We are working to make our users more aware of their usage. One of the 
> > > ideas we came up with was to having some basic usage stats printed at 
> > > login (usage over past day, fairshare, job efficiency, etc). Does anyone 
> > > have any scripts or methods that they use to do this? Before baking my 
> > > own I was curious what other sites do and if they would be willing to 
> > > share their scripts and methodology.
> > > 
> > > -Paul Edmon-
> > > 
> > > 
> > > -- 
> > > slurm-users mailing list -- slurm-users@lists.schedmd.com
> > > To unsubscribe send an email to slurm-users-le...@lists.schedmd.com
> 
> -- 
> slurm-users mailing list -- slurm-users@lists.schedmd.com
> To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

-- 
Dr. Andrew C. E. Reid
Physical Scientist, Computer Operations Administrator
Center for Theoretical and Computational Materials Science
National Institute of Standards and Technology, Mail Stop 8555
Gaithersburg MD 20899 USA
andrew.r...@nist.gov

-- 
slurm-users mailing list -- slurm-users@lists.schedmd.com
To unsubscribe send an email to slurm-users-le...@lists.schedmd.com

Reply via email to