Hi,

I think that MyISAM uses the key buffer only if needed. The same happens
with almost all the other buffers (read buffer, sort buffer, etc.). 

;)
Alexis


-----Original Message-----
From: Benjamin KRIEF [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 3 de Novembro de 2003 21:00
To: [EMAIL PROTECTED]
Subject: mysql memory usage

hi everyone.

i'd like to know if mysql always uses all the key_buffer size it has
been
given in my.cnf

especially, on my server with :

set-variable    = thread_stack=128K
set-variable    = key_buffer=200M
set-variable    = max_allowed_packet=1M
set-variable    = table_cache=128
set-variable    = sort_buffer=4M
set-variable    = net_buffer_length=8K

top shows this :

21:39:49 up 134 days,  3:00,  1 user,  load average: 21.82, 24.32, 21.84
Tasks: 375 total,  20 running, 355 sleeping,   0 stopped,   0 zombie
Cpu(s):  83.3% user,  16.7% system,   0.0% nice,   0.0% idle
Mem:    901156k total,   823388k used,    77768k free,     6360k buffers
Swap:  1951888k total,     3376k used,  1948512k free,   711876k cached

PID   USER   PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
18598 mysql  20   0 54524  53m 2300 R 10.0  6.1   1:35.66 mysqld
(329 lines like this one, except for the %CPU column)

obviously , my server (dual pIII 1Ghz) is a bit exhausted.

but my point is :

mysql is threaded, so i guess the whole mysql size is 54524
(swap+physical).
why doesn't mysql use the key_buffer size ?
mysqladmin variables show the good key_buffer_size value.
mytop says my key efficiency is 99.54%.

maybe it has something to do with the database files size?

bye.


*****************************************************
Benjamin KRIEF * Directeur Technique *  IGUANE Studio
*****************************************************



-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:
http://lists.mysql.com/[EMAIL PROTECTED]


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to