Re: Postgres server crash

Поиск
Список
Период
Сортировка
Искать
От
Craig A. James
Тема
Re: Postgres server crash
Дата
Msg-id
45614E3F.4080008@modgraph-usa.com
Ответ на
Re: Postgres server crash (Bruno Wolff III)
Список
Дерево обсуждения
Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance Markus Schaber <schabi@logix-tt.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance Markus Schaber <schabi@logix-tt.com>
Re: Best COPY Performance "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Michael Artz" <mlartz@gmail.com>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance Teemu Torma <teemu@torma.org>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Joshua D. Drake" <jd@commandprompt.com>
Re: Best COPY Performance "Craig A. James" <cjames@modgraph-usa.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Craig A. James" <cjames@modgraph-usa.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Craig A. James" <cjames@modgraph-usa.com>
Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Russell Smith <mr-russ@pws.com.au>
Re: Postgres server crash Richard Huxton <dev@archonet.com>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Tom Lane <tgl@sss.pgh.pa.us>
Re: Postgres server crash Richard Troy <rtroy@ScienceTools.com>
Re: Postgres server crash Michael Stone <mstone+postgres@mathom.us>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Michael Stone <mstone+postgres@mathom.us>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Bruno Wolff III <bruno@wolff.to>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Richard Broersma Jr <rabroersma@yahoo.com>
Re: Postgres server crash Michael Stone <mstone+postgres@mathom.us>
Re: Postgres server crash "Jim C. Nasby" <jim@nasby.net>
Re: Postgres server crash Michael Stone <mstone+postgres@mathom.us>
Re: Postgres server crash Florian Weimer <fw@deneb.enyo.de>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Tom Lane <tgl@sss.pgh.pa.us>
Re: Postgres server crash Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: Postgres server crash Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: Postgres server crash Markus Schaber <schabi@logix-tt.com>
Re: Postgres server crash Richard Huxton <dev@archonet.com>
Re: Postgres server crash Ben <bench@silentmedia.com>
Re: Postgres server crash "Craig A. James" <cjames@modgraph-usa.com>
Re: Postgres server crash Richard Huxton <dev@archonet.com>
Re: Postgres server crash Tom Lane <tgl@sss.pgh.pa.us>
Re: Postgres server crash "Merlin Moncure" <mmoncure@gmail.com>
Re: Best COPY Performance "Worky Workerson" <worky.workerson@gmail.com>
Re: Best COPY Performance "Jim C. Nasby" <jim@nasby.net>
Re: Best COPY Performance "Luke Lonergan" <llonergan@greenplum.com>
Re: Best COPY Performance Alex Stapleton <alexs@advfn.com>
We're getting off-topic for this group except that this is *why* we're plagued with this problem, so I'll make one more observation.

Bruno Wolff III wrote:
>> They would allocate 
>> 100's of GB of swap space rather than taking the time to design proper data 
>> structures.  If the program crashed every week or two, no big deal -- just 
>> run it again.  Overallocating memory is a valuable technique for such 
>> applications.
> 
> I don't think the above applies generally. Programmers need to be aware of
> the working set of CPU bound apps. If the program is constantly paging,
> the performance is going to be abysmal.

You're doing planetary number crunching, so you allocate an (x,y,z) space with 10^6 points on every axis, or 10^18 points, for roughly 2^60 64-bit floating-point numbers, or 2^68 bytes.  But your space is mostly empty (just like real space).  Where there's a planet or star, you're actually using memory, everywhere else, the memory is never referenced.   So you're using just an ordinary amount of memory, but you can access your planet's data by simply referencing a three-dimensional array in FORTRAN.  Just allow infinite overcommit, let the OS do the rest, and it actually works.  A lot of molecular modeling works this way too.

This is how these applications were/are actually written.  I'm not defending the method, just point out that it's real and it's one of the reasons virtual swap was invented.

Craig
В списке pgsql-performance по дате отправления
От: Bruno Wolff III
Дата:
Сообщение: Re: Postgres server crash
От: Mattias Kregert
Дата:
Сообщение: Re: Postgres server crash
FAQ