QACCT(1)
β¨ QACCT(1) β¨
ok so bestie, welcome to qacct from the Grid Engine user commands corner of the world π this is the lil tool that reports and accounts for your Grid Engine usage. she's giving β¨receiptsβ¨ energy and honestly we're obsessed.
πΈ SYNOPSIS πΈ
qacct [-ar [ar_id]] [-A Account] [-b BeginTime] [-d Days] [-e EndTime]
[-g [GroupId|GroupName]] [-h [HostName]] [-help] [-j
[job_id|job_name|pattern]] [-l attr=val,...] [-m] [-o [Owner]] [-u
[Owner]] [-pe [PEname]] [-q [wc_queue]] [-slots [SlotNumber]] [-t
task_id_range_list] [-P [Project]] [-D [Department]] [-f AcctFileName]
[-E]
π DESCRIPTION π
So qacct literally scans the accounting data file (peep accounting(5) for that one π) and cooks up a summary of info for wall-clock time, CPU time, and system time. And it does it for these categories: host name, queue name, group name, owner name, job name, job ID, and also for the queues that meet whatever resource requirements you specified with the -l switch. And yes, you can mix and match combos of each category, slay π
OR, alternatively, you can list all the jobs or just some specific ones using the -j switch. Like for example, your search criteria could be summarizing for a queue and an owner β but not for two queues in the same request. That's not the vibe, don't do that π
ngl there's a lil plot twist: results that include parallel jobs depend on the value ofaccounting_summaryin the parallel environment definition (go readsge_pe(5)π§). If it's false, then there's an accounting record for slave tasks as well as master tasks, so likeβ¦ there's a contribution to CPU time from each task. And btw β the slot count reported for each task is the total for the job, NOT the one allocated to the slave. just so you know fr fr π
β¨ OPTIONS β¨
-ar [ar_id]β the ID of the advance reservation you want usage summarized for. If you don't hand over anar_id, then accounting data gets listed for each advance reservation separately π«Ά-A Accountβ the account for the jobs you wanna summarize.-b BeginTimeβ the earliest start time for jobs to be summarized, formatted like[[CC]YY]MMDDhhmm[.SS]. Also check the-doption. IfCCisn't specified, aYYof<70means20YY. And if the-Eoption is in play, this instead specifies the earliest job end time β°-d Daysβ how many days you wanna summarize and print accounting info for. If you use it with the-b BeginTimeoption (above), then jobs started (or, with-E, finished) withinBeginTimetoBeginTime+Daysget counted. If you use it with the-e EndTimeoption (below), selection is fromEndTime-Days. With neither of them? Then it considers the lastDays. π-e EndTimeβ the latest start time for jobs to be summarized, in the format[[CC]YY]MMDDhhmm[.SS]. See also-d. IfCCisn't specified, aYYof<70means20YY. If the-Eoption is specified, this instead specifies the latest job end time β°-f AcctFileNameβ the accounting file to be used."-"means use standard input. If you just omit it, the system default accounting file gets processed π-g [GroupId|GroupName]β the numeric system group id, or the group alphanumeric name, of the job owners to be included in the accounting. IfGroupId/GroupNameis omitted, all groups are accounted. all of them. every single one π-h [HostName]β the case-insensitive name of the host you're requesting accounting info about. If the name is omitted, totals for each host get listed separately.-helpβ display help information for theqacctcommand. bestie needs assistance sometimes, it's fine π«Ά-j [job_id|job_name|pattern]β the name, an expression for matching names, or ID of the job during execution for which accounting information is printed. If neither a name nor an ID is given, all jobs are listed. β οΈ heads up: this option changes the output format ofqacct. If it's activated, CPU times are no longer accumulated β instead, "raw" per-job accounting information is printed in a formatted form. Which is: CPU time (seconds), integrated memory usage (GB seconds), total i/o (bytes), i/o wait time (seconds), and maximum virtual memory (bytes). periodt.-l attr=val,...β a resource requirement specification that must be met by the queues in which the jobs being accounted were executing. The resource request is very similar to the one described inqsub(1). iykyk π-mβ ignore slave tasks of parallel jobs. Only relevant whenaccounting_summaryis false, and probably only useful with-jto prune the output. βοΈ-o [Owner]|-u [Owner]β the name of the owner of the jobs for which accounting statistics are assembled. If the optionalOwnerargument is omitted, you get a listing of the accounting statistics of all job owners present in the accounting file. And plot twist:-uand-oare synonyms π-pe [PEname]β the name of the parallel environment for which usage is summarized. IfPEnameisn't given, accounting data gets listed for each parallel environment separately.-q [wc_queue_name]β an expression for queues for which usage is summarized. All queue instances matching the expression will be listed. If no expression is specified, you get a cluster queue summary. πΈ-slots [SlotNumber]β the number of queue slots for which usage is summarized. IfSlotNumberisn't given, accounting data gets listed for each number of queue slots separately.-t task_id_range_listβ only available together with the-joption described above, no solo missions allowed π«
The -t switch specifies the array job task range for which accounting information should be printed. Syntax and semantics of task_id_range_list are identical to the one described under the -t option to qsub(1). Go look there for further info on array jobs too π¦
-P [Project]β the name of the project for which usage is summarized. IfProjectisn't given, accounting data gets listed for each relevant project separately.-D [Department]β the name of the department for which usage is summarized. IfDepartmentisn't given, accounting data gets listed for each relevant department separately.-Eβ when selecting times with-b,-e,-d, use the job end time rather than the start time to select. This can be useful because the accounting record is written at the job end. makes sense honestly π
π ENVIRONMENT VARIABLES π
SGE_ROOTβ specifies the location of the Grid Engine standard configuration files.SGE_CELLβ if set, specifies the default Grid Engine cell. To address a Grid Engine cell,qacctuses (in order of precedence):- The name of the cell specified in the environment variable
SGE_CELL, if it is set. - The name of the default cell, i.e.
default.
- The name of the cell specified in the environment variable
SGE_DEBUG_LEVELβ if set, specifies that debug information should be written tostderr. Plus the level of detail in which debug information is generated is defined. πSGE_QMASTER_PORTβ if set, specifies the tcp port on whichsge_qmaster(8)is expected to listen for communication requests. Most installations will use a services map entry for the service"sge_qmaster"instead to define that port.SGE_EXECD_PORTβ if set, specifies the tcp port on whichsge_execd(8)is expected to listen for communication requests. Most installations will use a services map entry for the service"sge_execd"instead to define that port.
π FILES π
<sge_root>/<cell>/common/accountingβ Grid Engine default accounting file<xxqs_nam_sexx_root>/<cell>/common/act_qmasterβ Grid Engine master host file
π SEE ALSO π
sge_intro(1), qsub(1), accounting(5), sge_qmaster(8),
π COPYRIGHT π
See sge_intro(1) for a full statement of rights and permissions.
ok that's the whole thing bestie, you're so welcome π this was SGE 8.1.3pre, dated 2011-05-20 β iconic vintage behavior, we stan an old queen πβ¨ mwah, go read your accounting file π
π¦ where this page comes from
- debian bookworm: gridengine-client 8.1.9+dfsg-10+b1 Β· SISSL
- debian trixie: gridengine-client 8.1.9+dfsg-13.1 Β· SISSL
- ubuntu jammy: gridengine-client 8.1.9+dfsg-10build1 Β· SISSL
- ubuntu noble: gridengine-client 8.1.9+dfsg-11build3 Β· SISSL
- ubuntu questing: gridengine-client 8.1.9+dfsg-13.1
- ubuntu resolute: gridengine-client 8.1.9+dfsg-13.2 Β· SISSL
- ubuntu stonking: gridengine-client 8.1.9+dfsg-13.2ubuntu1 Β· SISSL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms