Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Suggested MySql Settings

Status
Not open for further replies.

Zardiw2

Systems Engineer
Oct 7, 2017
1
0
0
US
Hi. All

Was hoping to get some suggestions as to MySql variable settings based on the following:

1. System Ram: 2G, Database Engine: ISAM
2. Tables:
a: 20,000 rows, Size on disk: 250MB
b: 20,000 rows, Size on disk: 13MB

The entire DB will fit in memory 7-8 times over............

I run an update script daily which adds about 20K transactions to the respective rows of Table a, and updates various fields in Table b.

There are only maybe 20 users who access this database during the day.

The access consists mainly of sequential searches of the tables, using indexes on the tables.

There are no actual searches that would look for particular values in the tables, it's all indexed...there are a lot of sequential reads based on the indexs.

On a DS I had earlier, the update script would run in 28 seconds.
On my current one, it runs 2:43 .....almost 3 minutes.

I've been playing around with various settings, but can't get the processing time down.

Here's my current settings in my.cnf:

[mysqld]
performance-schema=0
innodb_file_per_table=1
max_allowed_packet=268435456

# Made it 500. Was 10000
open_files_limit=500

default-storage-engine=MyISAM
# My Adds
bind-address=127.0.0.1
query-cache-type=1
query_cache_size=64M
query_cache_limit=32M

tmp_table_size=64M
max_heap_table_size=64M
key_buffer_size=512M

#Tried these at 64 and ran out of memory
read_buffer_size=8M
read_rnd_buffer_size=8M

sort_buffer_size=32M
thread_cache_size=10


Be forever grateful for any advise/help anybody has

Thank you,
z
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top