From: | Tony Kay <tony(at)teamunify(dot)com> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | Tomas Vondra <tv(at)fuzzy(dot)cz>, postgres performance list <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: CPU spikes and transactions |
Date: | 2013-10-15 16:09:36 |
Message-ID: | CAB=fRcqq1SU9zFiKMkkf0wnTS0eEosLEf=B6_teRvvoVkr=x9w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Thanks for the tip. I forgot there were kernel stats on spinlocks.
I'm not sure we'll be able to get it to tip in a test environment, and
we're unwilling to revert the code in production in order to have our users
trigger it. We'll try triggering it on our test server, and if we manage,
I'll get you the stats.
Thanks!
Tony
Tony Kay
TeamUnify, LLC
TU Corporate Website <http://www.teamunify.com/>
TU Facebook <http://www.facebook.com/teamunify> | Free OnDeck Mobile
Apps<http://www.teamunify.com/__corp__/ondeck/>
On Tue, Oct 15, 2013 at 6:00 AM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> On Mon, Oct 14, 2013 at 6:45 PM, Tomas Vondra <tv(at)fuzzy(dot)cz> wrote:
> > On 15.10.2013 01:26, Tony Kay wrote:
> >> Hi Calvin,
> >>
> >> Yes, I have sar data on all systems going back for years.
> >>
> >> Since others are going to probably want to be assured I am really
> >> "reading the data" right:
> >>
> >> - This is 92% user CPU time, 5% sys, and 1% soft
> >> - On some of the problems, I _do_ see a short spike of pgswpout's
> >> (memory pressure), but again, not enough to end up using much system
> time
> >> - The database disks are idle (all data being used is in RAM)..and are
> >> SSDs....average service times are barely measurable in ms.
> >
> > OK. Can you share the data? Maybe we'll notice something suspicious.
> >
> >> If I had to guess, I'd say it was spinlock misbehavior....I cannot
> >> understand why ekse a transaction blocking other things would drive
> >> the CPUs so hard into the ground with user time.
> >
> > Have you tried running perf, to verify the time is actually spent on
> > spinlocks?
>
> +1 this. It is almost certainly spinlocks, but we need to know which
> one and why. plz install debug symbols and run a perf during normal
> and high load conditions.
>
> merlin
>
>
> --
> Sent via pgsql-performance mailing list (pgsql-performance(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-performance
>
From | Date | Subject | |
---|---|---|---|
Next Message | Julien Cigar | 2013-10-15 17:26:23 | Re: CPU spikes and transactions |
Previous Message | Tony Kay | 2013-10-15 15:59:08 | Re: CPU spikes and transactions |