Re: RC2 and open issues
От | Tom Lane |
---|---|
Тема | Re: RC2 and open issues |
Дата | |
Msg-id | 3732.1103610772@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: RC2 and open issues (Gavin Sherry <swm@linuxworld.com.au>) |
Ответы |
Bgwriter behavior
|
Список | pgsql-hackers |
Gavin Sherry <swm@linuxworld.com.au> writes: > I was also thinking of benchmarking the effect of changing the algorithm > in StrategyDirtyBufferList(): currently, for each iteration of the loop we > read a buffer from each of T1 and T2. I was wondering what effect reading > T1 first then T2 and vice versa would have on performance. Looking at StrategyGetBuffer, it definitely seems like a good idea to try to keep the bottom end of both T1 and T2 lists clean. But we should work at T1 a bit harder. The insight I take away from today's discussion is that there are two separate goals here: try to keep backends that acquire a buffer via StrategyGetBuffer from being fed a dirty buffer they have to write, and try to keep the next upcoming checkpoint from having too much work to do. Those are both laudable goals but I hadn't really seen before that they may require different strategies to achieve. I'm liking the idea that bgwriter should alternate between doing writes in pursuit of the one goal and doing writes in pursuit of the other. regards, tom lane
В списке pgsql-hackers по дате отправления: