Home » Performance » MySQL » memory usage and the thread cache
memory usage and the thread cache [message #3039] Sat, 03 May 2008 10:12 Go to next message
jrabbit
Messages: 13
Registered: December 2007
Junior Member
I'm trying to get a better understanding of thread memory usage. Assuming the following buffers were allocated during a query, and the thread is to be returned to the thread cache rather than closed at the end of the query. If they were used, are the following buffers kept allocated, or are they released before the thread is put in the cache?

1. The thread stack (I think this stays allocated)
2. The connection buffer (This may be released or shrunk?)
3. The result buffer (This may be released or shrunk?)
4. The read_buffer
5. The read_rnd_buffer
6. The sort_buffer
7. The myiasm_sort_buffer
8. The bulk_insert_buffer
9. The binlog cache buffer

Thanks for any assistance.
Re: memory usage and the thread cache [message #3077 is a reply to message #3039 ] Wed, 14 May 2008 05:26 Go to previous message
debug  is currently offline debug
Messages: 100
Registered: March 2008
Senior Member

Have you seen this blog post? http://www.mysqlperformanceblog.com/2006/05/17/mysql-server- memory-usage/
It explains MySQL memory usage


Mikhail Solovyev, MySQL Performance Expert
MySQL Performance Blog
MySQL Consulting
Previous Topic:MERGE STORAGE ENGINE Vs UNION ALL
Next Topic:MySQL take too much time to start
Goto Forum:
  



Current Time: Wed Aug 27 20:43:13 EDT 2008

Total time taken to generate the page: 0.01273 seconds
.:: Contact :: Home :: MySQL Support by Percona.com ::.

Powered by: FUDforum 2.7.5.
Copyright ©2001-2006 FUD Forum Bulletin Board Software

MySQL Performance | Forum authority Badge