473,394 Members | 1,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

key_buffer_size

As anyone benchmarked if there is an advantage in setting
key_buffer_size in startup parameters. In a Linux environment, can
we not rely on Linux to cache the indecis?

I would prefer that, since then a large chunck of memory is not
dedicated to the keys, and mysql+Linux can dynamically decide how to
allocate memory.,

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/mySQL-key_bu...ict165653.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=554992
Jul 20 '05 #1
1 4693
That depends...

Yes Linux can cache portions the file system (your index) in memory,
however, MySQL will still have to make system calls to access those
indices. While the time to access a "cached" file is lower, you incur
the cost of system calls when the kernel has to mediate the reads on the
index files.

If MySQL has a larger key_buffer_size, then presumably it can access
that same data in userspace and be even faster.

As far as benchmarks are concerned, it really depends on the following
parameters (in no particular order):
1. How your data is indexed and queried.
2. The speed of your file system.
3. The layout of your file system - If the index and data files
are on different disks and/or controllers then it is even
better.
4. The amount of memory you have.
5. The speed and type of processor you have.

-Misk
steve wrote:
As anyone benchmarked if there is an advantage in setting
key_buffer_size in startup parameters. In a Linux environment, can
we not rely on Linux to cache the indecis?

I would prefer that, since then a large chunck of memory is not
dedicated to the keys, and mysql+Linux can dynamically decide how to
allocate memory.,

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Adam Carmichael | last post by:
------=_NextPart_000_4BD9_01C34F2E.785DA9C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I am trying to build a MySQL Server running...
0
by: David Bernick | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 We're doing a select query on our INNODB database. Linux 2.4.21 on x86 (Athlon). Mysql is 4.0.13. Anyone seen this problem before? - ----- InnoDB:...
0
by: Doruk Fisek | last post by:
Hi, I am compiling MySQL 4.0.14 with GCC 3.2.3, Glibc 2.3.1 and Linux 2.4.21 on a x86. CFLAGS="-O2 -march=athlon" CXX=gcc CXXFLAGS="-march=athlon -O2 -felide-constructors" ./configure ...
0
by: Stephane Raimbault | last post by:
I've been searching the mailing list for a solution to my problem with "mysqld got signal 11;" and I haven't seen any answers that might help me. This is the situation. I have a db that is being...
0
by: Kayra Otaner | last post by:
Hi all, I want to get your opinions on how to increase available/free memory and performance on a heavy volume database server. I have MySQL 4.0.13 running on RH 7.2 replicated to another RH...
0
by: kayra | last post by:
Hi all, I want to get your opinions on how to increase available/free memory and performance on a heavy volume database server. I have MySQL 4.0.13 running on RH 7.2 replicated to another RH...
0
by: Vanquish | last post by:
Hello, I only use InndoDB table type. In this case, is it necessary (or useful) to set a big value to buffer_key_size ? I think it's better to allocate RAM to innodb_buffer_pool_size rather...
3
by: Matias Silva | last post by:
Hi Everyone, I wrote a for loop to build several select statements that are combined with a UNION. When I execute one of the queries separately, it works, but when I execute the query with a UNION...
1
by: Harita | last post by:
Hi, When I try to change the key_buffer_size to 4GB, it doesnt get effective. I don't see the key_buffer_size changing to 4GB. I am not sure why it doesnt get changed. Here is the command that I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.