Re: Invalid memory alloc

Поиск
Список
Период
Сортировка
От Jim Nasby
Тема Re: Invalid memory alloc
Дата
Msg-id 55395754.6080803@BlueTreble.com
обсуждение исходный текст
Ответ на Re: Invalid memory alloc  (Edson Richter <edsonrichter@hotmail.com>)
Ответы Re: Invalid memory alloc  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On 4/23/15 3:15 PM, Edson Richter wrote:
> My question would sound stupid... you have 10Gb shared buffer, but how
> much physical memory on this server?
> How have you configured the kernel swappines, overcommit_memoryt,
> overcommit_ratio?
> Have you set anything different in shmmax or shmall?

I don't think this is an OS thing at all. That error messages is pretty
associated with this code:

#define MaxAllocSize    ((Size) 0x3fffffff)        /* 1 gigabyte - 1 */

#define AllocSizeIsValid(size)    ((Size) (size) <= MaxAllocSize)

If malloc failed you'd get an actual out of memory error, not a notice.

We need more information from the OP about what they're doing.
--
Jim Nasby, Data Architect, Blue Treble Consulting
Data in Trouble? Get it in Treble! http://BlueTreble.com


В списке pgsql-general по дате отправления:

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: Moving Specific Data Across Schemas Including FKs
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Invalid memory alloc