Global Catalog X Locks on Copy

Moderator: NorbertKrupa

Post Reply
honkytonk
Newbie
Newbie
Posts: 5
Joined: Fri Jan 04, 2013 4:12 pm

Global Catalog X Locks on Copy

Post by honkytonk » Wed Apr 09, 2014 11:11 am

Hi,

We have a process which attempts to create around 150 sessions at the same time with each session inserting a small amount of rows (say around 40) into one of 5 tables. It's currently taking around 5 mins for these inserts to complete.

The copy command being used initially had the DIRECT keyword, however have since taken that off which has helped I/O but I think the issue is with an X lock that gets taken out on the Global Catalog. When I do a select * from locks I see all the copy statements waiting on these X locks - anything I can do reduce this locking time? The devs don't want to batch up the rows and therefore less COPY commands, but is this the only way to go?

We're running Vertica 6.1.3-3 on a 7 node cluster.

Thanks
Mark

scutter
Master
Master
Posts: 302
Joined: Tue Aug 07, 2012 2:15 am

Re: Global Catalog X Locks on Copy

Post by scutter » Wed Apr 09, 2014 5:32 pm

Are these loads using sequences with a small cache? That can cause lots of lock contention.

—Sharon
Sharon Cutter
Vertica Consultant, Zazz Technologies LLC

id10t
GURU
GURU
Posts: 732
Joined: Mon Apr 16, 2012 2:44 pm

Re: Global Catalog X Locks on Copy

Post by id10t » Fri Apr 11, 2014 11:44 pm

Hi!

[DELETED]
Last edited by id10t on Wed May 06, 2015 5:40 pm, edited 1 time in total.

honkytonk
Newbie
Newbie
Posts: 5
Joined: Fri Jan 04, 2013 4:12 pm

Re: Global Catalog X Locks on Copy

Post by honkytonk » Mon Apr 28, 2014 2:47 pm

Apologies I hadn't realised this thread had been replied to:

No sequences in use and yes it's up to 150 separate sessions so 150 rows in the sessions table. The default parameter had been increased.

We ended up changing the logic so we had fewer sessions copying more rows each. This removed the X lock waits

Post Reply

Return to “Vertica Database Administration”