[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: device stuff - cvs
From: |
Christian Hopp |
Subject: |
Re: device stuff - cvs |
Date: |
Tue, 10 Jun 2003 14:59:05 +0200 (CEST) |
On Mon, 9 Jun 2003, Martin Pala wrote:
> I though yet about one topic - it is possible to consolidate syntax of
> resource checks with syntax of device style, for example:
>
> "if cpuusage is greater than 60.0 for 2 cycles then alert" -> "if cpu
> usage > 60 % for 2 cycles then alert"
>
> "if memkbyte > 100000.0 for 5 cycles then stop" -> "if memory usage >
> 100 MB for 5 cycles then stop"
>
> "if memusage > 10.0 for 5 cycles then stop" -> "if memory usage > 10 %
> for 5 cycles then stop"
>
> It is probably more simple i think (it is sufficient to have just 'cpu'
> and 'mem(ory)' statements instead of present 'cpuusage', 'memkbyte' and
> 'memusage'). What about it?
Good idea... the memusage/memkbytes came because of laziness. (-:
I have prepared new code for p.y/l.l with the syntax,
IF MEM(ORY) <operator> <int|real> <unit|%> [<int>] <action>
IF CPU <operator> <int|real> % [<int>] <action>
IF CHILD(REN) <operator> <int> [<int>] <action>
IF TOTALMEM(ORY) <operator> <int|real> <unit|%> [<int>] <action>
the old syntax is still available but you get a warning that it is
obsolete.
If its okay I can sync it... what about the others?
We can leave the old syntaxes till 4.0. We should use the step to 4.0
as a chance to clean up the language.
CHopp
--
Christian Hopp email: address@hidden
Institut für Elektrische Informationstechnik fon: +49-5323-72-2113
TU Clausthal, Leibnizstr. 28, 38678 Clausthal-Zellerf. fax: +49-5323-72-3197
pgpkey: https://www.iei.tu-clausthal.de/pgp-keys/
- device stuff - cvs, Martin Pala, 2003/06/06
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/06
- Re: device stuff - cvs, Martin Pala, 2003/06/09
- Re: device stuff - cvs,
Christian Hopp <=
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/10
- Re: device stuff - cvs, Christian Hopp, 2003/06/11
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/11
- Re: device stuff - cvs, Christian Hopp, 2003/06/11
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/11
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/11
- Language Task Force Report I [Re: device stuff - cvs], Christian Hopp, 2003/06/12
- Re: device stuff - cvs, Martin Pala, 2003/06/20
- Re: device stuff - cvs, Jan-Henrik Haukeland, 2003/06/22
- Re: device stuff - cvs, rory, 2003/06/22