Bug #6657 | Thread cache does not work since it have passed a few days after server started | ||
---|---|---|---|
Submitted: | 16 Nov 2004 8:05 | Modified: | 6 Jul 2005 0:11 |
Reporter: | Jookwan Kim | Email Updates: | |
Status: | No Feedback | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | Mysql 4.0.20 | OS: | Linux (Linux 2.4.20-8smp) |
Assigned to: | Assigned Account | CPU Architecture: | Any |
[16 Nov 2004 8:05]
Jookwan Kim
[17 Nov 2004 2:06]
Jookwan Kim
I know another bug related to Questions. When it reaches to 2G, it resets to 0. => I have to amend this sentence: '2G' should be '4G'. I guess the variable type of which value is 'Questions' is 4 byte unsigned integer, so it can't express the number over 4G(=2^32).
[21 Jan 2005 6:21]
Dean Ellis
You say you have thread_cache_size=80, and that seems to be correct: | Threads_cached | 80 | But you have more than 80 threads connected: | Threads_connected | 85 | So all 80 of the cached threads are in use, so it had to create 5 new threads. This looks normal to me. If you are creating 5 new threads constantly, your Threads_created will eventually grow large. If you have more information please let us know.
[21 Jan 2005 6:53]
Jookwan Kim
'So all 80 of the cached threads are in use, so it had to create 5 new threads.' => Yes, you're right. all 80 threads are cached. But all 80 cached threads doesn't work any more, they just consume the thread cache space. If thread cache works correctly, # of newly created threads should be much less than # of new connections. (Usually # of newly created threads is less than 1/100 # of new connection. => cache hit ratio > 99%) But above example shows that those values are exactly same to each other(13375). That means cache hit ratio is 0, so thread cache doesn't work.
[1 Jun 2005 0:51]
Peter Zaitsev
Jookwan Kim, your number of threads_created is really way too large. Normally the ratio between "connections" and thread_created should be large Here is the sample: | Connections | 4435045 | | Threads_cached | 5 | | Threads_connected | 25 | | Threads_created | 9353 | In your case connections and threads_created are very close, which does not look right. It is also very strange you have 80 "threads cached" in both cases. It is rather strange as this means maximum number of threads allowed is "cached" but it was not used during the 100 seconds you was watching. What OS are you using (Which linux exactly) ? Is this our standard RPM ? It looks like a bug, but to be able to help you we need to be able to repeat it.
[6 Jun 2005 0:11]
Timothy Smith
I am returning this bug to "Need Feedback" state, in response to the comment made by Peter Zaitsev. --Timothy
[6 Jul 2005 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".