Bug#430684: [debian-mysql] Bug#430684: Bug#430684: Bug#430684: Calculating the timeout instead of, using a configuration setting.

2007-07-30 Thread Monty Taylor
Fantastic! I saw it come through the contributions list internally. I'll start working on getting your patch merged this week. Thanks a lot! Monty Paul Veldema wrote: > I have entered the agreement and recieved the automated 'contribution' > reply: > > 'Signed Contributor Agreement #54 from

Bug#430684: [debian-mysql] Bug#430684: Bug#430684: Calculating the timeout instead of, using a configuration setting.

2007-07-27 Thread Paul Veldema
I have entered the agreement and recieved the automated 'contribution' reply: 'Signed Contributor Agreement #54 from Paul Veldema'. With regards, Paul Veldema On Fri Jul 27 01:33:39 CEST 2007 Monty Taylor <[EMAIL PROTECTED]> wrote: ... Ok. I haven't walked through it all yet, but on fi

Bug#430684: [debian-mysql] Bug#430684: Bug#430684: Calculating the timeout instead of, using a configuration setting.

2007-07-26 Thread Monty Taylor
Paul Veldema wrote: >> - your suggestion isn't mutually exclusive from the previous one i >> made. it could be made optional to specify a timeout value, and if >> not specified, use the heuristic you provide, which would be the default. > > Monty's script does that, but gives a realy large defaul

Bug#430684: [debian-mysql] Bug#430684: Calculating the timeout instead of, using a configuration setting.

2007-07-03 Thread Paul Veldema
From sean: - /proc/meminfo is linux specific and less general. perhaps you could write something with "free" or some other generic utility instead? Just for fun, here the version using 'free': mysql_startup_timeout() { memtotal="`free -k | head -2 | tail -1| cut -d ':' -f 2 | tr -s

Bug#430684: [debian-mysql] Bug#430684: Calculating the timeout instead of using a configuration setting.

2007-06-27 Thread Monty Taylor
sean finney wrote: > On Wednesday 27 June 2007 15:52:02 Paul Veldema wrote: > >> mysql_startup_timeout() { >> memtotal="`cat /proc/meminfo | grep MemTotal | cut -d ':' -f 2 | >> sed 's/ //g' | cut -d 'k' -f 1`" >> # round memory royally upward for calc in gigabytes. >>

Bug#430684: Calculating the timeout instead of using a configuration setting.

2007-06-27 Thread sean finney
On Wednesday 27 June 2007 15:52:02 Paul Veldema wrote: > mysql_startup_timeout() { > memtotal="`cat /proc/meminfo | grep MemTotal | cut -d ':' -f 2 | > sed 's/ //g' | cut -d 'k' -f 1`" > # round memory royally upward for calc in gigabytes. > memtotal=`expr $memtotal + 7

Bug#430684: Calculating the timeout instead of using a configuration setting.

2007-06-27 Thread Paul Veldema
Hello, Here some more suggestions and a flexible solution that does not need an extra configuration setting. Since there is a relation between the timeout and the memory to be allocated by mysql, a timeout setting is not nescessary. Simply calculate the the timeout, there are two options: