Hey guys
I've installed Ubuntu 20.04 with mysql and am running a simple test
The test.sql is 1.47m records and 65M in size but taking 30 seconds to import.
I have tried to run this in many different scenarios all giving the same slow import speed of 30 seconds,
When the database was MyISAM it was super super slow, taking 7 seconds to do a select record from the table, I changed it to InnoDB and that reduced it down to 0.007s
I have a mysql function that is taking 0.907 seconds, where it takes close to 0.009s in the most basic of AWS RDS or an old server I have running mysql in VirtualBox from years ago.
I've looked at the following tuning options for mysql, many which are depreciated now
On Proxmox, cache write through or no cache, makes no difference either.
Any help would be appreciated, been researching and running tests for 2 days now and can't get to the bottom of it.
TrueNAS on a DL380
IPerf tests show 10gbps between servers both ways and sub 0.2ms latency
Many thanks in advance
I've installed Ubuntu 20.04 with mysql and am running a simple test
Code:
root@mysql:/root# ls -alh test.sql
-rw-r--r-- 1 root root 65M Mar 1 05:30 test.sql
root@mysql:/root# time mysql -u root -p database < test.sql
Enter password:
real 0m29.912s
user 0m1.527s
sys 0m0.087s
The test.sql is 1.47m records and 65M in size but taking 30 seconds to import.
I have tried to run this in many different scenarios all giving the same slow import speed of 30 seconds,
- Vol1 (RAIDZ1)
- Vol2 (Mirror/Striped SSD's)
- Vol3 (Mirrored NVMes)
- even when running on local mirror SSD's on Proxmox they all vary within a second of each other.
Code:
nfs: Mysql
export /mnt/Vol2/mysql
path /mnt/pve/Mysql
server 10.10.10.1
content rootdir
options rw,rsize=16384,wsize=16384
prune-backups keep-all=1
When the database was MyISAM it was super super slow, taking 7 seconds to do a select record from the table, I changed it to InnoDB and that reduced it down to 0.007s
I have a mysql function that is taking 0.907 seconds, where it takes close to 0.009s in the most basic of AWS RDS or an old server I have running mysql in VirtualBox from years ago.
I've looked at the following tuning options for mysql, many which are depreciated now
Code:
[mysqld]
# ZFS Tuning - https://www.percona.com/blog/mysql-zfs-performance-update/
#skip-log-bin
#innodb_buffer_pool_size = 2G
#innodb_flush_log_at_trx_commit = 1 # TPCC reqs.
#innodb_log_file_size = 2G
#innodb_log_group_home_dir = /var/lib/mysql/log
#innodb_flush_neighbors = 0
#innodb_fast_shutdown = 2
#innodb_flush_method = fsync
innodb_doublewrite = 0 # ZFS is transactional
#innodb_use_native_aio = 0
#innodb_read_io_threads = 10
#innodb_write_io_threads = 10
On Proxmox, cache write through or no cache, makes no difference either.
Any help would be appreciated, been researching and running tests for 2 days now and can't get to the bottom of it.
TrueNAS on a DL380
- 512Gb ram
- 22 x 1.8TB 10k SAS disks in RAIDZ1, 4 wide (Vol1)
- 4 x 1TB SSD disks in ZFS mirror, 2 disks wide (Vol2)
- 2 x 128Gb NVMe disks in ZFS mirror, 2 wide (Vol3)
- 10Gb direct connected to Proxmox
- 128Gb ram
- 2 x 800gb SAS disks in ZFS Mirror
- 10Gb direct connected to TrueNAS
IPerf tests show 10gbps between servers both ways and sub 0.2ms latency
Many thanks in advance
Last edited: