Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Innodb selects hang when load data (2 replies)

$
0
0
Hi,
Here are the informations :
mysql 5.1.50 + plugin innodb

I load a 10millions rows csv file into a temp innodb table and after several minutes, everything slows down in the mysql instance.

The SELECTs query which return in 100ms now are hanged or very slow.
The SELECTs are not on the table wich is loaded.
So how can a LOAD block everething else ?

The sessions are on this state
ACTIVE 10 sec, process no 6174, OS thread id 1256945984 fetching rows,
and since they do not respond quickly, many others sessions are opened by TOMCAt to serve others users.

I think is have to do with the performance of the disk subsystem and the innodb configuration

The main thread in innodb is flushing or sleeping
=> Main thread process no. 6174, id 1210825024, state: flushing buffer pool pages

Here are the innodb parameters

innodb_file_per_table
innodb_data_home_dir = /inst1/data/
innodb_log_file_size = 256M
innodb_log_files_in_group = 3
innodb_log_group_home_dir = /inst1/log/
innodb_file_io_threads = 4
innodb_thread_concurrency = 16
innodb_flush_log_at_trx_commit = 1
innodb_log_buffer_size = 8M
innodb_buffer_pool_size = 10G
innodb_max_dirty_pages_pct = 40
innodb_data_file_path = ibdata1:1000M:autoextend
innodb_adaptive_flushing = TRUE
innodb-additional-mem-pool-size = 300M
innodb_adaptive_hash_index = TRUE
innodb_io_capacity=500
innodb_write_io_threads = 4
innodb_read_io_threads = 4
innodb_flush_method=O_DIRECT

what can i do to LOAD DATA without affecting current SELECTs ?

thanks !

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>