[Info-vax] CLI parsing routines suggestion, was: Re: InnoDB memory issue in MariaDB

Arne Vajhøj arne at vajhoej.dk
Sun Oct 11 13:50:02 EDT 2020


On 10/11/2020 10:16 AM, Simon Clubley wrote:
> On 2020-10-09, Arne Vajhøj <arne at vajhoej.dk> wrote:
>> On 10/9/2020 2:03 PM, Simon Clubley wrote:
>>> I wonder if VSI should consider adding an optional thousands character
>>> to numeric keyword values (ie: those keyword values defined as $NUMBER)
>>> which could be silently stripped by the CLI parsing routines so the
>>> value seen by programs is unchanged ?
>>>
>>> The parsing routines could also issue a warning if the characters are
>>> used in a $NUMBER value but are not placed at the expected points as
>>> that could help catch when people type too few or too many digits for
>>> a value.
>>>
>>> It would make commands like the above more readable and less prone to
>>> typing or reading errors.
>>>
>>> For example:
>>>
>>> mod mysql$server
>>> /fil=1000/bio=1000/dio=1000/ast=2500/enq=5000/byt=200_000/pgfl=2_000_000
>>>
>>> This would be fully backwards compatible with existing behaviour and
>>> it would be up to the user whether they used a thousands character or not.
>>
>> That, or K and M suffixes.
>>
>> /byt=200K/pgfl=2M
>>
> 
> But is that /pgfl=(2*1000*1000) or /pgfl=(2*1024*1024) ? :-)

Add a note in the docs:

<note>
If it matters whether it is powers of 2 or powers of 10,
then increase the value with 50%. If you are just curious then
it is [insert chosen metric here].
</note>

:-)

Arne




More information about the Info-vax mailing list