Re: [PATCHES] Automatically setting work_mem
От
Simon Riggs
Тема
Re: [PATCHES] Automatically setting work_mem
Дата
Msg-id
1145727534.3112.209.camel@localhost.localdomain
Ответ на
Re: [PATCHES] Automatically setting work_mem (Tom Lane)
Список
Дерево обсуждения
Re: Automatically setting work_mem "Qingqing Zhou" <zhouqq@cs.toronto.edu>
Re: Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem Csaba Nagy <nagy@ecircle-ag.com>
Re: Automatically setting work_mem "Luke Lonergan" <llonergan@greenplum.com>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem "Luke Lonergan" <llonergan@greenplum.com>
Re: Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: Automatically setting work_mem Thomas Hallgren <thomas@tada.se>
Re: Automatically setting work_mem Andreas Pflug <pgadmin@pse-consulting.de>
Re: Automatically setting work_mem Hannu Krosing <hannu@skype.net>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem Martijn van Oosterhout <kleptog@svana.org>
Re: Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: Automatically setting work_mem Martijn van Oosterhout <kleptog@svana.org>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: [PATCHES] Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: [PATCHES] Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: [PATCHES] Automatically setting work_mem "Jim C. Nasby" <jnasby@pervasive.com>
Re: [PATCHES] Automatically setting work_mem Bruce Momjian <pgman@candle.pha.pa.us>
Re: [PATCHES] Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: [PATCHES] Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCHES] Automatically setting work_mem Simon Riggs <simon@2ndquadrant.com>
Re: [PATCHES] Automatically setting work_mem daveg <daveg@sonic.net>
Re: [PATCHES] Automatically setting work_mem David Fetter <david@fetter.org>
Re: [PATCHES] Automatically setting work_mem daveg <daveg@sonic.net>
Re: Automatically setting work_mem Bruno Wolff III <bruno@wolff.to>
Re: [PATCHES] Automatically setting work_mem "Jim C. Nasby" <jnasby@pervasive.com>
Re: Automatically setting work_mem "Luke Lonergan" <llonergan@greenplum.com>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem "Luke Lonergan" <llonergan@greenplum.com>
Re: Automatically setting work_mem Josh Berkus <josh@agliodbs.com>
Re: Automatically setting work_mem Tom Lane <tgl@sss.pgh.pa.us>
Re: Automatically setting work_mem "Luke Lonergan" <llonergan@greenplum.com>
On Sat, 2006-04-22 at 13:17 -0400, Tom Lane wrote: > Simon Riggs writes: > > I still do, for multi-user systems. Releasing unused memory from a large > > CREATE INDEX will allow that memory to be swapped out, even if the brk > > point can't be changed. > > Say what? It can get "swapped out" anyway, whether we free() it or not. Of course it can, but if the memory is not actively used by the sort then it will be OK if that happens and fairly likely also. If we actively use the memory for the sort it would is less likely to be swapped out and a bad thing if it did. > More to the point, though: I don't believe that the proposed patch is a > good idea --- it does not reduce the peak sortmem use, which I think is > the critical factor for a multiuser system, I agree peak memory use is the critical factor. There is only one performsort in progress at any one time, though there can be many final merges/retrievals in progress concurrently. If the majority of the memory used by performsoft is released afterwards then it can be made available for subsequent sorts/hashes etc without increasing further the peak mem use. > and what it does do is > reduce the locality of access to the sort temp file during the merge > phases. That will definitely have some impact; maybe small, but some; > and I don't see where the benefit comes in. That I already accept. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com/
В списке pgsql-hackers по дате отправления