[GE users] current value of a consumable resource

adary adary at marvell.com
Tue Jun 16 14:18:38 BST 2009


    [ The following text is in the "Windows-1252" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some special characters may be displayed incorrectly. ]

Already tried that.

adary at adary-lnx:~$ qhost -h lnx202 -F | grep mem_free
   hl:mem_free=47.145G

it gives me the actual load value, not the complex I defined on the host:

adary at adary-lnx:~$ qconf -se lnx202
hostname              lnx202.il.marvell.com
load_scaling          NONE
complex_values        mem_free=62.702G,min_cpu=8.000000,marvell_site=yokneam, \
                      host_osdist=RHEL4,cpu_speed=2,cpu_model=Opteron875, \
                      cpu_series=Egypt,cpu_freq=2200MHz,sys_ram=64G, \
                      htype=close,heavy_0=1,host_osupd=U4, \
                      host_info=qmaster_error
load_values           arch=lx24-amd64,num_proc=8,mem_total=64302.855469M, \
                      swap_total=40959.984375M,virtual_total=105262.839844M, \
                      avail_dumps=6.6G,avail_tmp_prj=6.6G,avail_tmp=9.3G, \
                      load_avg=8.000000,load_short=7.180000, \
                      load_medium=8.000000,load_long=8.120000, \
                      mem_free=48280.656250M,swap_free=36607.054688M, \
                      virtual_free=84887.710938M,mem_used=16022.199219M, \
                      swap_used=4352.929688M,virtual_used=20375.128906M, \
                      cpu=86.400000,np_load_avg=1.000000, \
                      np_load_short=0.897500,np_load_medium=1.000000, \
                      np_load_long=1.015000
processors            8
user_lists            NONE
xuser_lists           NONE
projects              NONE
xprojects             NONE
usage_scaling         NONE
report_variables      NONE

The value I get from ?F (by the way, you can use qhost ?h <host> -F) is from the load value. Not from the complex attribute

________________________________
From: remi [mailto:remi.chaffard at consultant.volvo.com]
Sent: Tuesday, June 16, 2009 4:14 PM
To: users at gridengine.sunsource.net
Subject: RE: [GE users] current value of a consumable resource

Hello,

I use the following command:

qhost -F [resource]

It shows the remaining resources for all nodes. If you want a particular node, you will have to make some unix stuff like grep and awk to get the particular value (Maybe there is a better way to do it).

Rémi

________________________________
From: adary [mailto:adary at marvell.com]
Sent: mardi 16 juin 2009 14:14
To: users at gridengine.sunsource.net
Subject: [GE users] current value of a consumable resource
Hi Everyone,

Is there a way to check the current value of a consumable resource attached to an exec host.

If I check with qconf ?se I only see the original value I assigned it, and not the current value of the consumable.

For example, I configured mem_free as a consumable on all of our hosts, and each job that starts requests mem_free (through our wrapper).

If I try to check what is the current value of the consumable, I always get the value that was originally assigned to the host.

On the other hand I can look at the load value, but that one is unfortunately not relevant since all is based on our consumable.

Cheers,

Y.

________________________________
Yuval Adar, Marvell Israel - Senior UNIX System Administrator
6 Hamada Street
Mordot HaCarmel Industrial Park
Yokneam, 20692, Israel
Email: adary at marvell.com<mailto:adary at marvell.com>
Office:  +972.4.9091188 - OnNet: 704.1188
Fax:      +972.4.9091501
Mobile: +972.54.2493958
Web site: http://www.marvell.com<http://www.marvell.com/>

This message may contain confidential, proprietary or legally privileged information. The information is intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone or by e-mail and delete the message from your computer.
________________________________




More information about the gridengine-users mailing list