Re: Poor INSERT performance -
02-16-2011
, 07:08 AM
First, try to increase to size of bufferpools.
You can also check where your applicaion spend most of its time.
Use this query ( it works for DB2 V9.7) to analyze total_wait_time :
select
application_handle,
total_wait_time,
agent_wait_time,
wlm_queue_time_total,
lock_wait_time,
log_buffer_wait_time,
log_disk_wait_time,
tcpip_recv_wait_time,
tcpip_send_wait_time,
ipc_recv_wait_time,
fcm_recv_wait_time,
fcm_send_wait_time,
pool_read_time,
pool_write_time,
direct_read_time,
direct_write_time
from table ( mon_get_connection(null,-1)) as x
it gives you answer about the time of writting data to bufferpool and
disk, writting to log, waiting for locks.
Regards |