Re: [Mauiusers] view resource availability by properties
You could probably just pipe 'qstat -f1' through awk to get what you want. Here is one I use to list any nodes with procs available: pbsnodes |egrep "^compute|jobs ="|awk '/jobs =/{flag=0;next} flag{print host} /^compute/ {flag=1;host=$0;next}' Our node names are compute-x-y, so that line is grepping for the names or jobs if any are running. You could adapt that to also check that a node has the 'infini' property. Brian Andrus ITACS/Research Computing Naval Postgraduate School Monterey, California voice: 831-656-6238 From: mauiusers-boun...@supercluster.org [mailto:mauiusers-boun...@supercluster.org] On Behalf Of Edsall, William (WJ) Sent: Wednesday, March 05, 2014 7:53 AM To: mauiusers@supercluster.org Subject: [Mauiusers] view resource availability by properties Hello list, Is it possible to query maui for Current Active/Total Procs filtered by node properties? For example we have a subset of nodes which have infiniband and these nodes have the infini property. We would like to be able to determine the amount of free (available and or preemptable) CPUs at any given time with this property. William ___ mauiusers mailing list mauiusers@supercluster.org http://www.supercluster.org/mailman/listinfo/mauiusers
Re: [Mauiusers] view resource availability by properties
Hi Renato, I suppose since our preemption design is simple and we only have one preemptee queue (called overflow) I could ignore those cases and count only the non preemptee cores. I'll give that a try thanks for the suggestion. Showbf was a promising solution and it does take QOS and Class as an argument but doesn't seem to actually consider preemptees in the output text. Can anyone confirm that showbf should or should not consider preemption? I'm providing class, qos, user, and group as arguments and although there are plenty of preemptable jobs it's telling me 'no procs available'. -Original Message- From: mauiusers-boun...@supercluster.org [mailto:mauiusers-boun...@supercluster.org] On Behalf Of renato.callado.bor...@gmail.com Sent: Thursday, March 06, 2014 10:55 AM To: mauiusers@supercluster.org Subject: Re: [Mauiusers] view resource availability by properties Hi William! On Wed, Mar 05, 2014 at 03:52:40PM +, Edsall, William (WJ) wrote: > > Is it possible to query maui for Current Active/Total Procs filtered >by node properties? > > >For example we have a subset of nodes which have infiniband and these >nodes have the infini property. We would like to be able to determine >the amount of free (available and or preemptable) CPUs at any given >time with this property. > Perhaps you can get this information using "diagnose -n | grep infini"? The 3rd column would be your "available : total" slots, unless I'm mistaken. Cheers, Renato. ___ mauiusers mailing list mauiusers@supercluster.org http://www.supercluster.org/mailman/listinfo/mauiusers ___ mauiusers mailing list mauiusers@supercluster.org http://www.supercluster.org/mailman/listinfo/mauiusers
Re: [Mauiusers] view resource availability by properties
Hi William! On Wed, Mar 05, 2014 at 03:52:40PM +, Edsall, William (WJ) wrote: > > Is it possible to query maui for Current Active/Total Procs filtered >by node properties? > > >For example we have a subset of nodes which have infiniband and these >nodes have the infini property. We would like to be able to determine >the amount of free (available and or preemptable) CPUs at any given >time with this property. > Perhaps you can get this information using "diagnose -n | grep infini"? The 3rd column would be your "available : total" slots, unless I'm mistaken. Cheers, Renato. ___ mauiusers mailing list mauiusers@supercluster.org http://www.supercluster.org/mailman/listinfo/mauiusers