List:Cluster« Previous MessageNext Message »
From:pekka Date:July 31 2004 9:41am
Subject:Re: table full error?
View as plain text  
Hi

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:
	
	#include <stdlib.h>
	main(int argc, char** argv)
	{
	  size_t n = atoll(argv[1]);
	  if (malloc(n)) printf("%lld ok!\n",  (long long)n);
	  else perror("");
	}

On this 32-bit debian machine I get about max 1.1G
(less than I expected):

% ./a 1100000000
1100000000 ok!
% ./a 1200000000
Cannot allocate memory

-- 
Pekka Nousiainen, Software Engineer
MySQL AB, www.mysql.com
Mail: pekka@stripped, Phone: +46 (0) 73 068 4978
Thread
table full error?Luke H. Crouch29 Jul
  • Re: table full error?Mikael Ronström29 Jul
RE: table full error?Luke H. Crouch29 Jul
  • Re: table full error?Mikael Ronström29 Jul
RE: table full error?Luke H. Crouch30 Jul
  • Re: table full error?Mikael Ronström30 Jul
RE: table full error?Luke H. Crouch30 Jul
  • Re: table full error?Mikael Ronström30 Jul
RE: table full error?Luke H. Crouch30 Jul
  • Re: table full error?Mikael Ronström30 Jul
RE: table full error?Luke H. Crouch30 Jul
  • Re: table full error?pekka31 Jul
RE: table full error?Luke H. Crouch31 Jul
  • Re: table full error?pekka1 Aug
    • NDB documentationSundeep Narravula1 Aug
      • Re: NDB documentationpekka1 Aug
RE: table full error?Luke H. Crouch2 Aug
  • Re: table full error?pekka2 Aug