Mikael is on holiday.
> so, there is 2 GB free swap space memory. does ndbd assume memory is continuous?
It does normal malloc() or C++ new for all memory areas.
These of course return contiguous pieces of memory.
So e.g. DataMemory will be (and must be) contiguous.
Since free() or C++ delete is almost never done, there should
be no problem with fragmentation.
> > > that's 2 GB free memory! and it's having problems allocating just 500M
What does "ulimit -a" say? Have you tried running as root?
Test max malloc with this:
main(int argc, char** argv)
size_t n = atoll(argv);
if (malloc(n)) printf("%lld ok!\n", (long long)n);
On this 32-bit debian machine I get about max 1.1G
(less than I expected):
% ./a 1100000000
% ./a 1200000000
Cannot allocate memory
Pekka Nousiainen, Software Engineer
MySQL AB, www.mysql.com
Mail: pekka@stripped, Phone: +46 (0) 73 068 4978