Aaron Stone wrote:
> On Sat, 2006-12-09 at 18:46 +0100, [EMAIL PROTECTED] wrote:
>
>   
>> ---------------------------------------------------------------------- 
>>  paul - 09-Dec-06 18:46  
>> ---------------------------------------------------------------------- 
>> I've been busy running valgrind, and I can't find *any* significant leaks
>> either. But I am working on reducing memory usage in dbmail-message.c by
>> doing less copying which may affect this bug when I merge that change. 
>>     
>
> Maybe there aren't any memory leaks at all? Maybe we're keeping perfect
> track of the memory, but just using too much of it and never shrinking.
>
> A massif graph like the one posted a year or so ago showing memory usage
> growth in some early 2.1 code would be really helpful. (see bug 139)
>
> Aaron
>
> _______________________________________________
> Dbmail-dev mailing list
> [email protected]
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
>   
how much do ya love me ;->

i'll attempt also putting these in the bug track thingie
this is the result of copying 100 emails (give or take) with imapcopy

for reference
i used this command to get imapd running without a fork and listening on
imap port over the network

nc -v -e "/root/test" -l -p 143


/root/test consisted of

#!/bin/sh
valgrind --tool=massif dbmail-imapd -n

and then chmod it 777

GIF image

Command: dbmail-imapd -n

== 0 ===========================
Heap allocation functions accounted for 98.1% of measured spacetime

Called from:
  39.8% : 0x4128031: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.2)

  24.3% : 0x4127F1E: g_realloc (in /usr/lib/libglib-2.0.so.0.1000.2)

  22.8% : 0x401C3EB: posix_memalign (vg_replace_malloc.c:384)

   8.1% : 0x4434D69: my_realloc (in /usr/lib/libmysqlclient.so.15.0.0)

   1.3% : 0x4434B86: my_malloc (in /usr/lib/libmysqlclient.so.15.0.0)

   1.1% : 0x443B415: my_once_alloc (in /usr/lib/libmysqlclient.so.15.0.0)

   0.6% : 0x4127FB9: g_malloc0 (in /usr/lib/libglib-2.0.so.0.1000.2)

  and 32 other insignificant places

== 1 ===========================
Context accounted for 39.8% of measured spacetime
  0x4128031: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  26.4% : 0x8052ACA: mopen (in /usr/sbin/dbmail-imapd)

  14.6% : 0x80526E7: __m_blkadd (in /usr/sbin/dbmail-imapd)

   2.7% : 0x405ED0A: g_mime_filter_set_size (in /usr/lib/libgmime-2.0.so.2.1.19)

  and 40 other insignificant places

---------------------------------
Context accounted for 24.3% of measured spacetime
  0x4127F1E: g_realloc (in /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  22.6% : 0x4109AB0: (within /usr/lib/libglib-2.0.so.0.1000.2)

  10.9% : 0x413A832: (within /usr/lib/libglib-2.0.so.0.1000.2)

  and 20 other insignificant places

---------------------------------
Context accounted for 22.8% of measured spacetime
  0x401C3EB: posix_memalign (vg_replace_malloc.c:384)

Called from:
  22.8% : 0x4136098: (within /usr/lib/libglib-2.0.so.0.1000.2)

---------------------------------
Context accounted for  8.1% of measured spacetime
  0x4434D69: my_realloc (in /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   8.1% : 0x445BF37: net_realloc (in /usr/lib/libmysqlclient.so.15.0.0)

---------------------------------
Context accounted for  1.3% of measured spacetime
  0x4434B86: my_malloc (in /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   1.0% : 0x4437A49: alloc_root (in /usr/lib/libmysqlclient.so.15.0.0)

  and 9 other insignificant places

---------------------------------
Context accounted for  1.1% of measured spacetime
  0x443B415: my_once_alloc (in /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   0.5% : 0x443B7DD: (within /usr/lib/libmysqlclient.so.15.0.0)

   0.5% : 0x443B7FF: (within /usr/lib/libmysqlclient.so.15.0.0)

---------------------------------
Context accounted for  0.6% of measured spacetime
  0x4127FB9: g_malloc0 (in /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  55 insignificant places

== 2 ===========================
Context accounted for 26.4% of measured spacetime
  0x4128031: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.2)
  0x8052ACA: mopen (in /usr/sbin/dbmail-imapd)

Called from:
  13.2% : 0x804D329: init_cache (in /usr/sbin/dbmail-imapd)

  13.2% : 0x804D394: init_cache (in /usr/sbin/dbmail-imapd)

---------------------------------
Context accounted for 14.6% of measured spacetime
  0x4128031: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.2)
  0x80526E7: __m_blkadd (in /usr/sbin/dbmail-imapd)

Called from:
  14.6% : 0x8052A1A: mwrite (in /usr/sbin/dbmail-imapd)

---------------------------------
Context accounted for  2.7% of measured spacetime
  0x4128031: g_malloc (in /usr/lib/libglib-2.0.so.0.1000.2)
  0x405ED0A: g_mime_filter_set_size (in /usr/lib/libgmime-2.0.so.2.1.19)

Called from:
   2.7% : 0x406030B: (within /usr/lib/libgmime-2.0.so.2.1.19)

  and 1 other insignificant place

---------------------------------
Context accounted for 22.6% of measured spacetime
  0x4127F1E: g_realloc (in /usr/lib/libglib-2.0.so.0.1000.2)
  0x4109AB0: (within /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  25.6% : 0x4109CFC: g_array_append_vals (in /usr/lib/libglib-2.0.so.0.1000.2)

  23.1% : 0x4109B1C: g_array_set_size (in /usr/lib/libglib-2.0.so.0.1000.2)

---------------------------------
Context accounted for 10.9% of measured spacetime
  0x4127F1E: g_realloc (in /usr/lib/libglib-2.0.so.0.1000.2)
  0x413A832: (within /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  10.9% : 0x413AAC3: g_string_insert_len (in /usr/lib/libglib-2.0.so.0.1000.2)

  and 2 other insignificant places

---------------------------------
Context accounted for 22.8% of measured spacetime
  0x401C3EB: posix_memalign (vg_replace_malloc.c:384)
  0x4136098: (within /usr/lib/libglib-2.0.so.0.1000.2)

Called from:
  21.4% : 0x4136EA8: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1000.2)

   1.3% : 0x4136E50: g_slice_alloc (in /usr/lib/libglib-2.0.so.0.1000.2)

---------------------------------
Context accounted for  8.1% of measured spacetime
  0x4434D69: my_realloc (in /usr/lib/libmysqlclient.so.15.0.0)
  0x445BF37: net_realloc (in /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   8.1% : 0x445C8C4: (within /usr/lib/libmysqlclient.so.15.0.0)

---------------------------------
Context accounted for  1.0% of measured spacetime
  0x4434B86: my_malloc (in /usr/lib/libmysqlclient.so.15.0.0)
  0x4437A49: alloc_root (in /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   1.0% : 0x4456D2A: cli_read_rows (in /usr/lib/libmysqlclient.so.15.0.0)

  and 2 other insignificant places

---------------------------------
Context accounted for  0.5% of measured spacetime
  0x443B415: my_once_alloc (in /usr/lib/libmysqlclient.so.15.0.0)
  0x443B7DD: (within /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   0.5% : 0x443C0AF: (within /usr/lib/libmysqlclient.so.15.0.0)

---------------------------------
Context accounted for  0.5% of measured spacetime
  0x443B415: my_once_alloc (in /usr/lib/libmysqlclient.so.15.0.0)
  0x443B7FF: (within /usr/lib/libmysqlclient.so.15.0.0)

Called from:
   0.5% : 0x443C0AF: (within /usr/lib/libmysqlclient.so.15.0.0)

=================================

End of information.  Rerun with a bigger --depth value for more.

Reply via email to