Re: Postgres refusing to use >1 core

From: Aren Cambre <aren(at)arencambre(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Postgres refusing to use >1 core
Date: 2011-05-10 02:12:20
Message-ID: BANLkTi=RF108m-7sLr2kx3gM_UEjqi5biQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

>
> so follow the advice above. we need to see pg_stat_activity, and/or
> pg_locks while your test is running (especially take note of pg_lock
> records with granted=f)

Attached.

The database is named de. The process with procpid 3728 has the SQL query
for my "main" thread--the one that reads the 12,000,000 rows one by one.
procpid 6272 was handling the queries from the ~22 threads, although at the
time this was taken, it was idle. But if I monitor it, I can see the queries
of tables B and C going through it.

I am not clear what to read into pg_locks except that the "main" thread
(3728's query) sure has a lot of locks! But all 3728 is doing is reading
rows from table A, nothing else.

Aren

Attachment Content-Type Size
pg_locks.txt text/plain 6.7 KB
pg_stat_activity.txt text/plain 1.8 KB

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Aren Cambre 2011-05-10 02:15:27 Re: Postgres refusing to use >1 core
Previous Message david 2011-05-10 00:46:14 Re: Benchmarking a large server