[Dovecot] squat fts index build problem

2008-09-18 Thread Anton Yuzhaninov

I tried to use squat index, but got error:

Sep 18 19:49:45 mailsupport dovecot: Fatal: IMAP(citrin): 
pool_system_realloc(): Out of memory
Sep 18 19:49:45 mailsupport dovecot: child 77606 (imap) returned error 83 (Out 
of memory)

It is strange because this server has 4 Gb or RAM.

some lines from dovecot -n

mail_plugins(imap): acl mail_log zlib fts fts_squat

plugin:
  acl: vfile
  fts: squat

OS: FreeBSD 7.0-STABLE #0: Sun May  4 13:15:10 MSD 2008, amd64

Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize 33554432 kB
  stacksize  524288 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked infinity kB
  maxprocesses 5547
  openfiles   11095
  sbsize   infinity bytes
  vmemoryuse   infinity kB

IMHO it will be better to write in log requested memory size:
src/lib/mempool-system.c:
- pool_system_realloc(): Out of memory);
+ pool_system_realloc(): Out of memory, when realloc to %PRIuSIZE_T bytes, 
new_size);

--
WBR,
 Anton Yuzhaninov


Re: [Dovecot] squat fts index build problem

2008-09-18 Thread Adam McDougall
Possibly try increasing mail_process_size.  It defaults to 256 and I had 
to raise it to 1024 (1024 megs) to allow some squat searches to 
complete.  I also have 4G of ram.  You can also try watching the process 
in top to see how large it grows before it dies as a clue to what limit 
it is hitting.


Anton Yuzhaninov wrote:

I tried to use squat index, but got error:

Sep 18 19:49:45 mailsupport dovecot: Fatal: IMAP(citrin): 
pool_system_realloc(): Out of memory
Sep 18 19:49:45 mailsupport dovecot: child 77606 (imap) returned error 
83 (Out of memory)


It is strange because this server has 4 Gb or RAM.

some lines from dovecot -n

mail_plugins(imap): acl mail_log zlib fts fts_squat

plugin:
  acl: vfile
  fts: squat

OS: FreeBSD 7.0-STABLE #0: Sun May  4 13:15:10 MSD 2008, amd64

Resource limits (current):
  cputime  infinity secs
  filesize infinity kB
  datasize 33554432 kB
  stacksize  524288 kB
  coredumpsize infinity kB
  memoryuseinfinity kB
  memorylocked infinity kB
  maxprocesses 5547
  openfiles   11095
  sbsize   infinity bytes
  vmemoryuse   infinity kB

IMHO it will be better to write in log requested memory size:
src/lib/mempool-system.c:
- pool_system_realloc(): Out of memory);
+ pool_system_realloc(): Out of memory, when realloc to %PRIuSIZE_T 
bytes, new_size);






Re: [Dovecot] squat fts index build problem

2008-09-18 Thread Anton Yuzhaninov

On 18.09.2008 20:41, Adam McDougall wrote:
Possibly try increasing mail_process_size.  It defaults to 256 and I had 
to raise it to 1024 (1024 megs) to allow some squat searches to 
complete.  I also have 4G of ram.  You can also try watching the process 
in top to see how large it grows before it dies as a clue to what limit 
it is hitting.


Thanks. Increasing mail_process_size solves problem.



Anton Yuzhaninov wrote:

I tried to use squat index, but got error:

Sep 18 19:49:45 mailsupport dovecot: Fatal: IMAP(citrin): 
pool_system_realloc(): Out of memory
Sep 18 19:49:45 mailsupport dovecot: child 77606 (imap) returned error 
83 (Out of memory)




--
WBR,
 Anton Yuzhaninov