List:Cluster« Previous MessageNext Message »
From:Luke H. Crouch Date:July 31 2004 3:27pm
Subject:RE: table full error?
View as plain text  
ulimit -a gives:

core file size        (blocks, -c) 0
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
max locked memory     (kbytes, -l) 4
max memory size       (kbytes, -m) unlimited
open files                    (-n) 1024
pipe size          (512 bytes, -p) 8
stack size            (kbytes, -s) 10240
cpu time             (seconds, -t) unlimited
max user processes            (-u) 7168
virtual memory        (kbytes, -v) unlimited

when I compile and run that code, I get 'Segmentation fault' ?

thanks for all the help,
-L


-----Original Message-----
From:	pekka@stripped [mailto:pekka@stripped]
Sent:	Sat 7/31/2004 4:41 AM
To:	Crouch, Luke H.
Cc:	Mikael Ronström; cluster@stripped
Subject:	Re: table full error?
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