Re: PostgreSQL 8.0.6 crash

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: PostgreSQL 8.0.6 crash
Дата
Msg-id
87lkwh6cdy.fsf@stark.xeocode.com
Ответ на
Список
Дерево обсуждения
PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Rick Gigger <rick@alpinenetworking.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash Stephen Frost <sfrost@snowman.net>
Re: PostgreSQL 8.0.6 crash Stephen Frost <sfrost@snowman.net>
Re: PostgreSQL 8.0.6 crash Greg Stark <gsstark@mit.edu>
Re: PostgreSQL 8.0.6 crash Alvaro Herrera <alvherre@commandprompt.com>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash Stephen Frost <sfrost@snowman.net>
Re: PostgreSQL 8.0.6 crash Greg Stark <gsstark@mit.edu>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash Martijn van Oosterhout <kleptog@svana.org>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>
Re: PostgreSQL 8.0.6 crash Ernst Herzberg <earny@net4u.de>
Re: PostgreSQL 8.0.6 crash "Jim C. Nasby" <jnasby@pervasive.com>
Re: PostgreSQL 8.0.6 crash Martijn van Oosterhout <kleptog@svana.org>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash Greg Stark <gsstark@mit.edu>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash Greg Stark <gsstark@mit.edu>
Re: PostgreSQL 8.0.6 crash Bruce Momjian <pgman@candle.pha.pa.us>
Re: PostgreSQL 8.0.6 crash Tom Lane <tgl@sss.pgh.pa.us>
Re: PostgreSQL 8.0.6 crash Rick Gigger <rick@alpinenetworking.com>
Re: PostgreSQL 8.0.6 crash Andrew Dunstan <andrew@dunslane.net>
Re: PostgreSQL 8.0.6 crash "Mark Woodward" <pgsql@mohawksoft.com>

Tom Lane  writes:

> Greg Stark  writes:
> > That's why merely allocating tons of swap doesn't necessarily protect you.
> > It's still possible for a process (or several processes if you allocate more
> > swap than you have address space) to mmap gigabytes of memory without touching
> > it and then start touching those pages.
> 
> So?  If the swap exists to back that memory, there's no problem.  It
> might be slow, but it will not fail.

Sure, but there's no way to know how much swap you need. No matter how much
swap you allocate these processes can allocate more pages of untouched RAM and
then blow up.

Of course realistically allocating 4G of swap is enough to deal with something
like Postgres where you're not being maliciously attacked. One process on ia32
can't accidentally allocate more than 4G of ram.

I was just trying to clarify the situation since someone made some comment
about it having to do with memory being swapped out and then finding nowhere
to swap in when needed. That's not exactly what's happening.

-- 
greg


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
Сообщение: Re: Upcoming re-releases
От: Florian Weimer
Дата:
Сообщение: Re: Upcoming re-releases
FAQ