Re: CLOG contention, part 2
От | Simon Riggs |
---|---|
Тема | Re: CLOG contention, part 2 |
Дата | |
Msg-id | CA+U5nMJOq0nv0xpKZ3ad5Wd+Tp7-M_tSBdo-g54BpxnZYGoKGg@mail.gmail.com обсуждение исходный текст |
Ответ на | Re: CLOG contention, part 2 (Jeff Janes <jeff.janes@gmail.com>) |
Ответы |
Re: CLOG contention, part 2
|
Список | pgsql-hackers |
On Sun, Jan 29, 2012 at 9:41 PM, Jeff Janes <jeff.janes@gmail.com> wrote: > If I cast to a int, then I see advancement: I'll initialise it as 0, rather than -1 and then we don't have a problem in any circumstance. >> I've specifically designed the pgbench changes required to simulate >> conditions of clog contention to help in the evaluation of this patch. > > Yep, I've used that one for the testing. Most of the current patch is just bookkeeping to keep track of the point when we can look at history in read only manner. I've isolated the code better to allow you to explore various implementation options. I don't see any performance difference between any of them really, but you're welcome to look. Please everybody note that the clog history doesn't even become active until the first checkpoint, so this is dead code until we've hit the first checkpoint cycle and completed a million transactions since startup. So its designed to tune for real world situations, and is not easy to benchmark. (Maybe we could start earlier, but having extra code just for first few minutes seems waste of energy, especially since we must hit million xids also). -- Simon Riggs http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services
Вложения
В списке pgsql-hackers по дате отправления: