6 messages in com.mysql.lists.clusterRe: Memory allocation failure (error ...
FromSent OnAttachments
jcwang04 Feb 2008 11:47 
Jonas Oreland04 Feb 2008 11:55 
jcwang04 Feb 2008 11:59 
Geert Vanderkelen05 Feb 2008 00:31 
jcwang05 Feb 2008 18:36 
Stewart Smith19 Feb 2008 00:04 
Subject:Re: Memory allocation failure (error 2327)
From:jcwang (jeff@apple.com)
Date:02/04/2008 11:59:55 AM
List:com.mysql.lists.cluster

Hi Jonas,

I am using the binary available on the download page:

http://dev.mysql.com/downloads/mysql/5.1.html#macosx

I'm not sure if it's a 32 or 64 bit build. Even if it was a 32 bit build, shouldn't I be able to address up to 4 GB of memory? I am looking into compiling from the development tree right now to see if it fixes my problems.

thanks!

Jonas Oreland wrote:

jcwang wrote:

Hello,

I am running mac osx 10.4 with mysql cluster 5.1.22 on an x86 intel architecture with 16 GB of RAM. When trying to allocate only 2300 MB of data memory and 200 MB of index memory, I get the following error:

ndbd(7319,0xa000cfe0) malloc: *** vm_allocate(size=2411724800) failed (error code=3) ndbd(7319,0xa000cfe0) malloc: *** error: can't allocate region ndbd(7319,0xa000cfe0) malloc: *** set a breakpoint in szone_error to debug 2008-02-04 19:20:23 [ndbd] INFO -- DBTUP could not allocate memory for parameter DataMemory 2008-02-04 19:20:23 [ndbd] INFO -- Requested: 32768x73600 = 2411724800 bytes 2008-02-04 19:20:23 [ndbd] INFO -- Error handler startup shutting down system 2008-02-04 19:20:24 [ndbd] INFO -- Error handler shutdown completed - exiting 2008-02-04 19:20:24 [ndbd] INFO -- Angel received ndbd startup failure count 1. 2008-02-04 19:20:24 [ndbd] ALERT -- Node 2: Forced node shutdown completed. Occured during startphase 0. Caused by error 2327: 'Memory allocation failure, please decrease some configuration parameters(Configuration error). Permanent error, external action needed'.

Running "Top" indicates that the machine 6.8 GB of free memory and 8.2 GB of inactive memory. When I set DataMemory to 2000 MB, everything works. In the past, we have run memcached with up to 12 GB used so we can use more. Anyone have any idea as to why mysql cluster is having problems allocating memory?

are you using a 32-bit build?

/jonas