[torqueusers] How to get assigned cpu count with torque?

Edsall, William (WJ) WJEdsall at dow.com
Thu May 14 11:55:01 MDT 2009

I'm not seeing the assigned ncpus you're seeing, but that appears to be
the data I need.
If i can get resources_assigned.ncpus = 4 to show up, i'll be a happy
# qstat -Qf
Queue: batch
    queue_type = Execution
    total_jobs = 2
    state_count = Transit:0 Queued:1 Held:0 Waiting:0 Running:1
    resources_default.nodes = 1
    resources_default.walltime = 01:00:00
    mtime = 1233765351
    resources_assigned.nodect = 1
    enabled = True
    started = True

# qmgr -c "list server"
Server <deleted>
        server_state = Scheduling
        scheduling = True
        total_jobs = 0
        state_count = Transit:0 Queued:0 Held:0 Waiting:0 Running:0
        acl_hosts = <deleted>
        managers = <deleted>
        operators = <deleted>
        default_queue = batch
        log_events = 511
        mail_from = adm
        resources_assigned.nodect = 0
        scheduler_iteration = 600
        node_check_rate = 150
        tcp_timeout = 6
        pbs_version = 2.4.0b1
        next_job_number = 968
        net_counter = 2 5 5


	From: chemadm at hamilton.edu [mailto:chemadm at hamilton.edu] 
	Sent: Monday, May 11, 2009 12:14 PM
	To: Edsall, William (WJ)
	Cc: torqueusers at supercluster.org
	Subject: Re: [torqueusers] How to get assigned cpu count with
	On our grid I did a list server in qmgr and I see the following:

	resources_assigned.mem = 419430400b
	resources_assigned.ncpus = 4
	resources_assigned.nodect = 8

	However, this I believe is the amount of resources that is
assigned to jobs. Not the total amount available. I'd expect the same
behavior in pbs pro but I'm just guessing here. So are you looking for
the total amount of resources across the whole cluster or just the
number of assigned resources to currently running jobs? Hope this helps,


	On May 11, 2009, at 10:57 AM, Edsall, William (WJ) wrote:

		Hello List, 
		 I'm trying to parse out the assigned cpu count. In pbs
pro this is available under list server as resources_assigned.ncpus.

		Is this variable hiding somewhere in torque? 


		torqueusers mailing list
		torqueusers at supercluster.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torqueusers/attachments/20090514/7fc0879c/attachment.html 

More information about the torqueusers mailing list