Re: Speed up Clog Access by increasing CLOG buffers
Amit Kapila <amit.kapila16@gmail.com>
Attachments
- group_update_clog_v14.patch (application/octet-stream) patch v14
On Wed, Aug 30, 2017 at 2:43 AM, Robert Haas <robertmhaas@gmail.com> wrote: > On Tue, Jul 4, 2017 at 12:33 AM, Amit Kapila <amit.kapila16@gmail.com> wrote: >> I have updated the patch to support wait events and moved it to upcoming CF. > > This patch doesn't apply any more, but I made it apply with a hammer > and then did a little benchmarking (scylla, EDB server, Intel Xeon > E5-2695 v3 @ 2.30GHz, 2 sockets, 14 cores/socket, 2 threads/core). > The results were not impressive. There's basically no clog contention > to remove, so the patch just doesn't really do anything. > Yeah, in such a case patch won't help. > For example, > here's a wait event profile with master and using Ashutosh's test > script with 5 savepoints: > > 1 Lock | tuple > 2 IO | SLRUSync > 5 LWLock | wal_insert > 5 LWLock | XidGenLock > 9 IO | DataFileRead > 12 LWLock | lock_manager > 16 IO | SLRURead > 20 LWLock | CLogControlLock > 97 LWLock | buffer_content > 216 Lock | transactionid > 237 LWLock | ProcArrayLock > 1238 IPC | ProcArrayGroupUpdate > 2266 Client | ClientRead > > This is just a 5-minute test; maybe things would change if we ran it > for longer, but if only 0.5% of the samples are blocked on > CLogControlLock without the patch, obviously the patch can't help > much. I did some other experiments too, but I won't bother > summarizing the results here because they're basically boring. I > guess I should have used a bigger machine. > That would have been better. In any case, will do the tests on some higher end machine and will share the results. > Given that we've changed the approach here somewhat, I think we need > to validate that we're still seeing a substantial reduction in > CLogControlLock contention on big machines. > Sure will do so. In the meantime, I have rebased the patch. -- With Regards, Amit Kapila. EnterpriseDB: http://www.enterprisedb.com
Commits
-
Use group updates when setting transaction status in clog.
- baaf272ac908 11.0 landed
- ccce90b39867 10.0 landed
-
Improve 64bit atomics support.
- e8fdbd58fe56 10.0 landed
-
Add ProcArrayGroupUpdate wait event.
- d4116a771925 10.0 landed
-
Make the different Unix-y semaphore implementations ABI-compatible.
- be7b2848c6d8 10.0 cited
-
Fix broken ALTER INDEX documentation
- 2143f5e12790 9.6.0 cited
-
Code and docs review for commit 3187d6de0e5a9e805b27c48437897e8c39071d45.
- d12e5bb79bb5 9.6.0 cited
-
Partition the freelist for shared dynahash tables.
- 44ca4022f3f9 9.6.0 cited
-
Correct StartupSUBTRANS for page wraparound
- 481725c0ba73 9.6.0 cited
-
Make idle backends exit if the postmaster dies.
- ac1d7945f866 9.6.0 cited
-
contrib/sslinfo: add ssl_extension_info SRF
- 49124613f134 9.6.0 cited
-
Reduce ProcArrayLock contention by removing backends in batches.
- 0e141c0fbb21 9.6.0 cited
-
Fix `make installcheck` for serializable transactions.
- 253de7e1eb9a 9.6.0 cited
-
Lockless StrategyGetBuffer clock sweep hot path.
- d72731a70450 9.5.0 cited
-
Reduce sinval synchronization overhead.
- b4fbe392f8ff 9.2.0 cited