[GE users] 6.0 qstat - possible RFE

Charu Chaubal Charu.Chaubal at Sun.COM
Thu Nov 11 14:39:12 GMT 2004


Hi Mark,

On Nov 11, 2004, at 1:28 AM, Stephan Grell wrote:

> Olesen, Mark wrote:
>
>>> I think it's important to point out that N1GE 6 qstat already has an
>>> option to output information in an XML format.  You can then send 
>>> this
>>> to your favorite XML parser (Perl, Java, etc) and get exactly the
>>> information you need without worrying about field sizes, line 
>>> lengths,
>>> multi-line records, etc.
>>>
>>
>> Can the XML format be adjusted to use attributes preferentially?
>>
> Hm,
>
> during the development, I got some input stating, that one should not 
> attributes, because
> they are too expensive to parse. But yes, that can be added to the RFE.
>
> Stephan
>
>> Eg, from qstat -r -xml
>>
>> instead of
>> <JB_job_number>283</JB_job_number>
>> <JB_name>d-v1-r2000</JB_name>
>> <JB_owner>olesen</JB_owner>
>> and
>> <slots>4</slots>
>> <granted_PE name="mpi">4</granted_PE>
>> <hard_request name="shpc+"
>> resource_contribution="4000.000000">1</hard_request>
>>
>> could one simply emit:
>>
>> <job_info number="283" name="d-v1-r2000" owner="olesen>
>> and
>> <granted_PE name="mpi" value="4"/>
>> <hard_request name="shpc+" resource_contribution="4000.000000" 
>> value="1"/>
>>
>>
>> This could help somewhat with (really cheap) regexp-based parsing.
>> Would this also qualify as a possible RFE?
>>

I would not recommend this.  As Stephan said, using attributes might 
make XML parsing less efficient.  Instead of compromising the XML 
output to allow regexp-based parsing, I think it's better to implement 
a separate option where you can specify fields for a fixed-width output 
format.  I think the XML output should remain as good as possible for 
*XML* parsing, not *regexp* parsing.

Regards,
	Charu

>> /mark
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
>> For additional commands, e-mail: users-help at gridengine.sunsource.net
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
> For additional commands, e-mail: users-help at gridengine.sunsource.net
>
>
###############################################################
# Charu V. Chaubal				# Phone: (650) 786-7672 (x87672)
# Grid Computing Technologist	# Fax:   (650) 786-4591
# Sun Microsystems, Inc.			# Email: charu.chaubal at sun.com
###############################################################


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe at gridengine.sunsource.net
For additional commands, e-mail: users-help at gridengine.sunsource.net




More information about the gridengine-users mailing list