Softpanorama

May the source be with you, but remember the KISS principle ;-)
Home Switchboard Unix Administration Red Hat TCP/IP Networks Neoliberalism Toxic Managers
(slightly skeptical) Educational society promoting "Back to basics" movement against IT overcomplexity and  bastardization of classic Unix

Monitoring Queues

News Oracle Grid Engine Recommended Links Client Commands Parallel Environment Gridengine diag tool MPI
Job or Queue Reported in Error State E Monitoring and Controlling Jobs Monitoring Queues Creating and modifying SGE Queues ulimit problem with infiniband Job stuck in the queue problem MPI startup
qstat qacct command qsub -- Submitting Jobs To Queue Instances qhost qmod qping SGE cheat sheet
Installation of SCE on a small set of multicore servers Usage of NFS Installation of the Master Host Installation of the Execution Hosts Perl Admin Tools and Scripts Humor Etc

Pending Jobs Not Being Dispatched

Sometimes a pending job is obviously capable of being run, but the job does not get dispatched. To diagnose the reason, the grid engine system offers a pair of utilities and options, qstat -j job-id and qalter -w v job-id.

This command lists the reasons why a job is not dispatchable in principle. For this purpose, a dry scheduling run is performed. All consumable resources, as well as all slots, are considered to be fully available for this job. Similarly, all load values are ignored because these values vary.

Job or Queue Reported in Error State E

Job or queue errors are indicated by an uppercase E in the qstat output.

A job enters the error state when the grid engine system tries to run a job but fails for a reason that is specific to the job.

A queue enters the error state when the grid engine system tries to run a job but fails for a reason that is specific to the queue.

The grid engine system offers a set of possibilities for users and administrators to gather diagnosis information in case of job execution errors. Both the queue and the job error states result from a failed job execution. Therefore the diagnosis possibilities are applicable to both types of error states.

From queue information you get job information. After that you need to discover what's wrong with particular job. See Monitoring and Controlling Jobs

[0]root@mysite17: # qstat -q c12.q -u user1 job-ID prior name user state submit/start at queue slots ja-task-ID
-----------------------------------------------------------------------------------------------------------------
310 0.50500 MS_93PGX user1 r 07/10/2012 14:36:59 c12.q@mysite52 12
311 0.50500 MS_93BT4 user1 qw 07/10/2012 14:44:15 12
312 0.50500 MS_93BUD user1 qw 07/10/2012 14:44:55 12
313 0.50500 MS_93PV9 user1 qw 07/10/2012 14:45:32 12
314 0.50500 MS_93JVR user1 qw 07/10/2012 14:45:46 12
315 0.50500 MS_93WW6 user1 qw 07/10/2012 14:46:04 12
316 0.50500 MS_93YWN user1 qw 07/10/2012 14:46:30 12
317 0.50500 MS_93PX0 user1 qw 07/10/2012 14:46:41 12
318 0.50500 MS_93NXC user1 qw 07/10/2012 14:46:47 12

Use qstat to show the current status of the queues and the jobs associated with the queues.

# qstat -g c
CLUSTER QUEUE CQLOAD USED RES AVAIL TOTAL aoACDPS cdsuE
--------------------------------------------------------------------------------
all.q 0.13 0 0 204 224 0 20
c12.q 0.01 0 0 0 12 0 12
c32.q 0.29 0 0 64 96 0 32
c40.q 0.00 0 0 80 80 0 0
m12a.q 0.01 0 0 0 12 0 12
m32a.q 0.86 32 0 0 32 0 0
m40a.q 0.00 0 0 40 40 0 0
m40b.q 0.00 0 0 40 40 0 0
  qstat 
job-ID  prior   name       user         state submit/start at     queue                 slots ja-task-ID 
--------------------------------------------------------------------------------------------------------
    814 0.50500 cpdn02     beyerle      r     05/15/2006 21:04:57 background.q@merlin01       1        
    ...
    824 0.50500 cpdn12     beyerle      s     05/15/2006 21:05:12 background.q@merlin11       1        
   1238 0.60500 moldyPSI_j derlet       r     05/26/2006 14:45:27 long.q@merlin02            16        
  qstat -g t -u derlet  -- for given user
job-ID  prior   name       user         state submit/start at     queue                 master ja-task-ID 
---------------------------------------------------------------------------------------------------------
   1238 0.60500 moldyPSI_j derlet       r     05/26/2006 14:45:27 long.q@merlin01          SLAVE         
                                                                  long.q@merlin01          SLAVE         
   1238 0.60500 moldyPSI_j derlet       r     05/26/2006 14:45:27 long.q@merlin02         MASTER        
                                                                  long.q@merlin02          SLAVE         
   ...
  qstat -F 
queuename                      qtype used/tot. load_avg arch          states
----------------------------------------------------------------------------
long.q@merlin01                BIP   2/4       5.05     lx24-amd64    
        hl:load_avg=5.050000
        hl:load_short=5.080000
        hl:load_medium=5.050000
        hl:load_long=4.950000
        hl:arch=lx24-amd64
        hl:num_proc=4
        hl:mem_free=7.174G
        hl:swap_free=1.944G
        hl:virtual_free=9.118G
        hl:mem_total=7.674G
        hl:swap_total=1.946G
        hl:virtual_total=9.619G
        hl:mem_used=511.656M
        hl:swap_used=1.422M
        hl:virtual_used=513.078M
        hl:cpu=100.000000
        hl:np_load_avg=1.262500
        hl:np_load_short=1.270000
        hl:np_load_medium=1.262500
        hl:np_load_long=1.237500
        hc:slots=0
        qf:qname=long.q
        qf:hostname=merlin01
        qf:tmpdir=/tmp
        qf:seq_no=0
        qf:rerun=0.000000
        qf:calendar=NONE
        qf:s_rt=2:00:00:00
        qf:h_rt=2:00:30:00
        qf:s_cpu=1:00:00:00
        qf:h_cpu=1:00:00:00
        qf:s_fsize=infinity
        qf:h_fsize=infinity
        qf:s_data=infinity
        qf:h_data=infinity
        qf:s_stack=infinity
        qf:h_stack=infinity
        qf:s_core=infinity
        qf:h_core=infinity
        qf:s_rss=infinity
        qf:h_rss=infinity
        qf:s_vmem=infinity
        qf:h_vmem=infinity
        qf:min_cpu_interval=00:05:00
   1238 0.60500 moldyPSI_j derlet       r     05/26/2006 14:45:27     2        
----------------------------------------------------------------------------
...
qconf -tsm -- monitoring
clustering.gridengine.users - Re SGE jobs in qw state - msg#00017 - OSDir.com

 

Controlling Queues With qmod

You can use the qmod command to suspend and resume queues. You can also use qmod to disable and enable queues.

The following commands illustrate how to use qmod:

% qmod -s q-name
% qmod -us -f q-name1, q-name2
% qmod -d q-name
% qmod -e q-name1, q-name2, q-name3

qmod -s suspends a queue. qmod -us -f resumes (unsuspends) two queues. qmod -d disables a queue. qmod -e enables three queues.

The -f option forces registration of the status change in sge_qmaster when the corresponding sge_execd is not reachable, for example, due to network problems.

Suspending and resuming queues as well as disabling and enabling queues requires queue owner permission, manager permission, or operator permission. See Managers, Operators, and Owners.


Note -

You can use qmod commands with crontab or at jobs.

 

Recommended Links

Google matched content

Softpanorama Recommended

Top articles

Sites

Managing SGE queues



Etc

Society

Groupthink : Two Party System as Polyarchy : Corruption of Regulators : Bureaucracies : Understanding Micromanagers and Control Freaks : Toxic Managers :   Harvard Mafia : Diplomatic Communication : Surviving a Bad Performance Review : Insufficient Retirement Funds as Immanent Problem of Neoliberal Regime : PseudoScience : Who Rules America : Neoliberalism  : The Iron Law of Oligarchy : Libertarian Philosophy

Quotes

War and Peace : Skeptical Finance : John Kenneth Galbraith :Talleyrand : Oscar Wilde : Otto Von Bismarck : Keynes : George Carlin : Skeptics : Propaganda  : SE quotes : Language Design and Programming Quotes : Random IT-related quotesSomerset Maugham : Marcus Aurelius : Kurt Vonnegut : Eric Hoffer : Winston Churchill : Napoleon Bonaparte : Ambrose BierceBernard Shaw : Mark Twain Quotes

Bulletin:

Vol 25, No.12 (December, 2013) Rational Fools vs. Efficient Crooks The efficient markets hypothesis : Political Skeptic Bulletin, 2013 : Unemployment Bulletin, 2010 :  Vol 23, No.10 (October, 2011) An observation about corporate security departments : Slightly Skeptical Euromaydan Chronicles, June 2014 : Greenspan legacy bulletin, 2008 : Vol 25, No.10 (October, 2013) Cryptolocker Trojan (Win32/Crilock.A) : Vol 25, No.08 (August, 2013) Cloud providers as intelligence collection hubs : Financial Humor Bulletin, 2010 : Inequality Bulletin, 2009 : Financial Humor Bulletin, 2008 : Copyleft Problems Bulletin, 2004 : Financial Humor Bulletin, 2011 : Energy Bulletin, 2010 : Malware Protection Bulletin, 2010 : Vol 26, No.1 (January, 2013) Object-Oriented Cult : Political Skeptic Bulletin, 2011 : Vol 23, No.11 (November, 2011) Softpanorama classification of sysadmin horror stories : Vol 25, No.05 (May, 2013) Corporate bullshit as a communication method  : Vol 25, No.06 (June, 2013) A Note on the Relationship of Brooks Law and Conway Law

History:

Fifty glorious years (1950-2000): the triumph of the US computer engineering : Donald Knuth : TAoCP and its Influence of Computer Science : Richard Stallman : Linus Torvalds  : Larry Wall  : John K. Ousterhout : CTSS : Multix OS Unix History : Unix shell history : VI editor : History of pipes concept : Solaris : MS DOSProgramming Languages History : PL/1 : Simula 67 : C : History of GCC developmentScripting Languages : Perl history   : OS History : Mail : DNS : SSH : CPU Instruction Sets : SPARC systems 1987-2006 : Norton Commander : Norton Utilities : Norton Ghost : Frontpage history : Malware Defense History : GNU Screen : OSS early history

Classic books:

The Peter Principle : Parkinson Law : 1984 : The Mythical Man-MonthHow to Solve It by George Polya : The Art of Computer Programming : The Elements of Programming Style : The Unix Hater’s Handbook : The Jargon file : The True Believer : Programming Pearls : The Good Soldier Svejk : The Power Elite

Most popular humor pages:

Manifest of the Softpanorama IT Slacker Society : Ten Commandments of the IT Slackers Society : Computer Humor Collection : BSD Logo Story : The Cuckoo's Egg : IT Slang : C++ Humor : ARE YOU A BBS ADDICT? : The Perl Purity Test : Object oriented programmers of all nations : Financial Humor : Financial Humor Bulletin, 2008 : Financial Humor Bulletin, 2010 : The Most Comprehensive Collection of Editor-related Humor : Programming Language Humor : Goldman Sachs related humor : Greenspan humor : C Humor : Scripting Humor : Real Programmers Humor : Web Humor : GPL-related Humor : OFM Humor : Politically Incorrect Humor : IDS Humor : "Linux Sucks" Humor : Russian Musical Humor : Best Russian Programmer Humor : Microsoft plans to buy Catholic Church : Richard Stallman Related Humor : Admin Humor : Perl-related Humor : Linus Torvalds Related humor : PseudoScience Related Humor : Networking Humor : Shell Humor : Financial Humor Bulletin, 2011 : Financial Humor Bulletin, 2012 : Financial Humor Bulletin, 2013 : Java Humor : Software Engineering Humor : Sun Solaris Related Humor : Education Humor : IBM Humor : Assembler-related Humor : VIM Humor : Computer Viruses Humor : Bright tomorrow is rescheduled to a day after tomorrow : Classic Computer Humor

The Last but not Least Technology is dominated by two types of people: those who understand what they do not manage and those who manage what they do not understand ~Archibald Putt. Ph.D


Copyright © 1996-2021 by Softpanorama Society. www.softpanorama.org was initially created as a service to the (now defunct) UN Sustainable Development Networking Programme (SDNP) without any remuneration. This document is an industrial compilation designed and created exclusively for educational use and is distributed under the Softpanorama Content License. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.

FAIR USE NOTICE This site contains copyrighted material the use of which has not always been specifically authorized by the copyright owner. We are making such material available to advance understanding of computer science, IT technology, economic, scientific, and social issues. We believe this constitutes a 'fair use' of any such copyrighted material as provided by section 107 of the US Copyright Law according to which such material can be distributed without profit exclusively for research and educational purposes.

This is a Spartan WHYFF (We Help You For Free) site written by people for whom English is not a native language. Grammar and spelling errors should be expected. The site contain some broken links as it develops like a living tree...

You can use PayPal to to buy a cup of coffee for authors of this site

Disclaimer:

The statements, views and opinions presented on this web page are those of the author (or referenced source) and are not endorsed by, nor do they necessarily reflect, the opinions of the Softpanorama society. We do not warrant the correctness of the information provided or its fitness for any purpose. The site uses AdSense so you need to be aware of Google privacy policy. You you do not want to be tracked by Google please disable Javascript for this site. This site is perfectly usable without Javascript.

Last modified: March 12, 2019