From: | Amit Khandekar <amitdkhan(dot)pg(at)gmail(dot)com> |
---|---|
To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
Cc: | Ants Aasma <ants(at)cybertec(dot)at>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: spin_delay() for ARM |
Date: | 2020-04-21 04:25:10 |
Message-ID: | CAJ3gD9cb1MCZzJKtNU_y3xg9ZVhM1s08S6tWQZhiV2g0LZgPMw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | Postg사설 토토 사이트SQL |
On Sat, 18 Apr 2020 at 03:30, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>
> On Sat, Apr 18, 2020 at 2:00 AM Ants Aasma <ants(at)cybertec(dot)at> wrote:
> > On Thu, 16 Apr 2020 at 10:33, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> > > what I know, pgbench cannot be used for testing spinlocks problems.
> > >
> > > Maybe you can see this issue when a) use higher number clients - hundreds, thousands. Decrease share memory, so there will be press on related spin lock.
> >
> > There really aren't many spinlocks left that could be tickled by a
> > normal workload. I looked for a way to trigger spinlock contention
> > when I prototyped a patch to replace spinlocks with futexes. The only
> > one that I could figure out a way to make contended was the lock
> > protecting parallel btree scan. A highly parallel index only scan on a
> > fully cached index should create at least some spinlock contention.
>
> I suspect the snapshot-too-old "mutex_threshold" spinlock can become
> contended under workloads that generate a high rate of
> heap_page_prune_opt() calls with old_snapshot_threshold enabled. One
> way to do that is with a bunch of concurrent index scans that hit the
> heap in random order. Some notes about that:
>
> /message-id/flat/CA%2BhUKGKT8oTkp5jw_U4p0S-7UG9zsvtw_M47Y285bER6a2gD%2Bg%40mail.gmail.com
Thanks all for the inputs. Will keep these two particular scenarios in
mind, and try to get some bandwidth on this soon.
--
Thanks,
-Amit Khandekar
Huawei Technologies
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2020-04-21 04:27:31 | Re: WIP/PoC for parallel backup |
Previous Message | Dilip Kumar | 2020-04-21 04:24:29 | Re: fixing old_snapshot_threshold's time->xid mapping |