Optimum settings for Small DB running on 2G Ram
Posted by:
Hans Brost
Date: October 09, 2017 12:20PM
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
I run an update script daily which adds transactions to 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 of 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
Subject
Views
Written By
Posted
Optimum settings for Small DB running on 2G Ram
1587
October 09, 2017 12:20PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.