Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-08-12 Thread Dave Love
Alexis Huxley writes: > Mark Dixon wrote: > >> Would the enhanced expression evaluator be general enough to use for other >> purposes > > Definitely. I've attached the latest version of the patch; now seems a > good time as I'm about to go on holiday for a few weeks and I've made > the parser re

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-08-12 Thread Alexis Huxley
Mark Dixon wrote: Would the enhanced expression evaluator be general enough to use for other purposes Definitely. I've attached the latest version of the patch; now seems a good time as I'm about to go on holiday for a few weeks and I've made the parser reentrant, moved some code between the

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-08-12 Thread Mark Dixon
On Mon, 20 Jul 2015, Alexis Huxley wrote: Please [post the patch] ... It probably needs to be thread-safe, and I vaguely recall that lex/yacc output isn't. In a couple of weeks it will be properly tested and, as you pointed out, I still need to switch to bison/lex's reentrant parser. I'll

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-21 Thread Dave Love
Thanks for the explanation and the preliminary patch. I'll take a look at it when I have a chance and get back to you. ___ SGE-discuss mailing list SGE-discuss@liv.ac.uk https://arc.liv.ac.uk/mailman/listinfo/sge-discuss

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-20 Thread Alexis Huxley
Please [post the patch] ... It probably needs to be thread-safe, and I vaguely recall that lex/yacc output isn't. In a couple of weeks it will be properly tested and, as you pointed out, I still need to switch to bison/lex's reentrant parser. I'll post it on the mailing list once those things ar

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-19 Thread Dave Love
Alexis Huxley writes: > Hi, I've been tasked with enhancing the load_formula expression > evaluator. I've compiled 8.1.8, added the recently discussed patches, > written an expression parser (with lex and yacc), integrated it, > temporarily I've return(true)-ed early in validate_load_formula() >

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-19 Thread Dave Love
William Hay writes: > The number of slots is normally defined by the slots entry of a queue > rather than via load sensors or via complex_values of a queue or host. If you do that with multiple queues you probably want to constrain it not to over-subscribe hosts with RQS. > For it to work in a

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-14 Thread William Hay
On Tue, 14 Jul 2015 11:07:01 + Alexis Huxley wrote: > > How is slots defined on the hosts of your cluster? > > Well, I had thought that the 'qconf -sq all.q' output above meant > that it was defined where it was supposed to be defined, but you Well that is where it normally is defined but

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-14 Thread Alexis Huxley
The number of slots is normally defined by the slots entry of a queue rather than via load sensors or via complex_values of a queue or host. That I already have: te-ahux01# qconf -sq all.q | grep -i slot slots 1,[te-ahux02.rzg.mpg.de=4] te-ahux01# For it to work in a load form

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-14 Thread Reuti
Hi, > Am 14.07.2015 um 12:50 schrieb William Hay : > > On Tue, 14 Jul 2015 09:10:58 + > Alexis Huxley wrote: > > >> then the output is: >> >> Tue 2015-07-14 10:55:32 CEST: sge_qmaster[42156]: >> get_load_value: attrname=slots Tue 2015-07-14 10:55:32 CEST: >> sge_qmaster[42156]: get_l

Re: [SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-14 Thread William Hay
On Tue, 14 Jul 2015 09:10:58 + Alexis Huxley wrote: > then the output is: > > Tue 2015-07-14 10:55:32 CEST: sge_qmaster[42156]: > get_load_value: attrname=slots Tue 2015-07-14 10:55:32 CEST: > sge_qmaster[42156]: get_load_value: get_attribute_by_name(..., > "slots", ...) failed Tue 2

[SGE-discuss] 'load_formula slots' and get_load_value()

2015-07-14 Thread Alexis Huxley
Hi, I've been tasked with enhancing the load_formula expression evaluator. I've compiled 8.1.8, added the recently discussed patches, written an expression parser (with lex and yacc), integrated it, temporarily I've return(true)-ed early in validate_load_formula() and things are looking quite good