[Samba] Samba memory usage - how big is it?
FC Mario Patty
fcmario76 at gmail.com
Thu Nov 13 10:47:46 GMT 2008
Thank you for your reply. Please see attachment.
PS. I cannot get all the output since I cannot scroll up the console. :|
Regards,
On Thu, Nov 13, 2008 at 5:34 PM, Volker Lendecke
<Volker.Lendecke at sernet.de>wrote:
> On Thu, Nov 13, 2008 at 05:27:55PM +0700, FC Mario Patty wrote:
> > Hi, I have run valgrind and get the result. Please see attachment. Thank
> > you.
>
> Aeh, ok, sorry. The argument list you need is:
>
> valgrind --tool=memcheck --leak-check=yes -v --num-callers=20
> --trace-children=yes
>
> I had forgotten the leak-check.
>
> Volker
>
-------------- next part --------------
--10663-- 24130 args, avg 0.87 setup instrs each (6256 bytes)
--10663-- 0% clear the stack (53415 bytes)
--10663-- 8130 retvals, 29% of reg-reg movs avoided (4574 bytes)
==10714== Memcheck, a memory error detector for x86-linux.
==10714== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==10714== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==10714== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==10714== Valgrind library directory: /usr/lib/valgrind
==10714== Command line
==10714== initlog
==10714== -q
==10714== -n
==10714== /etc/init.d/smb
==10714== -s
==10714== nmbd startup
==10714== -e
==10714== 1
==10714== Startup, with flags:
==10714== --tool=memcheck
==10714== --leak-check=yes
==10714== -v
==10714== --num-callers=20
==10714== --trace-children=yes
==10714== --exec=/sbin/initlog
==10714== Contents of /proc/version:
==10714== Linux version 2.6.9-22.ELsmp (bhcompile at porky.build.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005
==10714== Reading syms from /sbin/initlog (0x8048000)
==10714== object doesn't have a symbol table
==10714== object doesn't have any debug info
==10714== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000)
==10714== object doesn't have any debug info
==10714== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==10714== Reading syms from /lib/ld-2.3.4.so (0xB1000000)
==10714== object doesn't have any debug info
==10714== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7C91000)
==10714== Reading syms from /lib/tls/libc-2.3.4.so (0xB7EBA000)
==10714== object doesn't have any debug info
==10714== Reading syms from /lib/libdl-2.3.4.so (0xB7FE5000)
==10714== object doesn't have any debug info
==10714== Reading suppressions file: /usr/lib/valgrind/default.supp
==10714== REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location)
==10714== REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location)
==10714== REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==10714== REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==10714== REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state)
==10714== REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state)
==10714== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==10714== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen)
==10714== REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==10714== REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr)
==10714==
==10714== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC000)
==10714== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B901000)
==10714== TRANSLATE: 0x1B8F5F00 redirected to 0x1B904100
==10714== Reading syms from /lib/tls/libc-2.3.4.so (0x88A000)
==10714== object doesn't have any debug info
==10714== TRANSLATE: 0x8EDF00 redirected to 0x1B9048F8
==10714== TRANSLATE: 0x8EBE30 redirected to 0x1B904E24
==10714== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040
==10714== TRANSLATE: 0x8EDC20 redirected to 0x1B905274
==10714== TRANSLATE: 0x8EE540 redirected to 0x1B905326
==10714== TRANSLATE: 0x8F4240 redirected to 0x1B9046F4
==10714== TRANSLATE: 0x8F2ED0 redirected to 0x1B9042D0
==10714==
==10714== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1)
--10714--
--10714-- supp: 12 dl_relocate_object/dl_main
==10714== malloc/free: in use at exit: 8468 bytes in 204 blocks.
==10714== malloc/free: 321 allocs, 117 frees, 31122 bytes allocated.
==10714==
==10714== searching for pointers to 204 not-freed blocks.
==10714== checked 1408152 bytes.
==10714==
==10714== 0 bytes in 2 blocks are definitely lost in loss record 1 of 34
==10714== at 0x1B904984: malloc (vg_replace_malloc.c:131)
==10714== by 0x921058: register_state (in /lib/tls/libc-2.3.4.so)
==10714== by 0x9213EA: create_cd_newstate (in /lib/tls/libc-2.3.4.so)
==10714== by 0x92A255: re_compile_internal (in /lib/tls/libc-2.3.4.so)
==10714== by 0x92B03B: regcomp (in /lib/tls/libc-2.3.4.so)
==10714== by 0x804966E: (within /sbin/initlog)
==10714== by 0x804A503: (within /sbin/initlog)
==10714== by 0x804A6EC: (within /sbin/initlog)
==10714== by 0x89EE22: __libc_start_main (in /lib/tls/libc-2.3.4.so)
==10714== by 0x8049200: (within /sbin/initlog)
==10714==
==10714==
==10714== 29 bytes in 2 blocks are definitely lost in loss record 7 of 34
==10714== at 0x1B904984: malloc (vg_replace_malloc.c:131)
==10714== by 0x804CC8B: (within /sbin/initlog)
==10714== by 0x804A278: (within /sbin/initlog)
==10714== by 0x804A6EC: (within /sbin/initlog)
==10714== by 0x89EE22: __libc_start_main (in /lib/tls/libc-2.3.4.so)
==10714== by 0x8049200: (within /sbin/initlog)
==10714==
==10714==
==10714== 658 bytes in 23 blocks are definitely lost in loss record 28 of 34
==10714== at 0x1B904984: malloc (vg_replace_malloc.c:131)
==10714== by 0x8049372: (within /sbin/initlog)
==10714== by 0x80494F0: (within /sbin/initlog)
==10714== by 0x804A503: (within /sbin/initlog)
==10714== by 0x804A6EC: (within /sbin/initlog)
==10714== by 0x89EE22: __libc_start_main (in /lib/tls/libc-2.3.4.so)
==10714== by 0x8049200: (within /sbin/initlog)
==10714==
==10714== LEAK SUMMARY:
==10714== definitely lost: 687 bytes in 27 blocks.
==10714== possibly lost: 0 bytes in 0 blocks.
==10714== still reachable: 7781 bytes in 177 blocks.
==10714== suppressed: 0 bytes in 0 blocks.
==10714== Reachable blocks (those to which a pointer was found) are not shown.
==10714== To see them, rerun with: --show-reachable=yes
--10714-- TT/TC: 0 tc sectors discarded.
--10714-- 5023 tt_fast misses.
--10714-- translate: new 4832 (84974 -> 1116924; ratio 131:10)
--10714-- discard 2 (59 -> 840; ratio 142:10).
--10714-- chainings: 3511 chainings, 3 unchainings.
--10714-- dispatch: 0 jumps (bb entries); of them 13826 (1382600%) unchained.
--10714-- 95/5562 major/minor sched events.
--10714-- reg-alloc: 1093 t-req-spill, 207250+8643 orig+spill uis,
--10714-- 26497 total-reg-rank
--10714-- sanity: 50 cheap, 2 expensive checks.
--10714-- ccalls: 17807 C calls, 53% saves+restores avoided (55996 bytes)
--10714-- 24027 args, avg 0.87 setup instrs each (6052 bytes)
--10714-- 0% clear the stack (53115 bytes)
--10714-- 7917 retvals, 29% of reg-reg movs avoided (4574 bytes)
==10717== Memcheck, a memory error detector for x86-linux.
==10717== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al.
==10717== Using valgrind-2.2.0, a program supervision framework for x86-linux.
==10717== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al.
==10717== Valgrind library directory: /usr/lib/valgrind
==10717== Command line
==10717== touch
==10717== /var/lock/subsys/smb
==10717== Startup, with flags:
==10717== --tool=memcheck
==10717== --leak-check=yes
==10717== -v
==10717== --num-callers=20
==10717== --trace-children=yes
==10717== --exec=/bin/touch
==10717== Contents of /proc/version:
==10717== Linux version 2.6.9-22.ELsmp (bhcompile at porky.build.redhat.com) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005
==10717== Reading syms from /bin/touch (0x8048000)
==10717== object doesn't have a symbol table
==10717== object doesn't have any debug info
==10717== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000)
==10717== object doesn't have any debug info
==10717== Reading syms from /usr/lib/valgrind/stage2 (0xB0000000)
==10717== Reading syms from /lib/ld-2.3.4.so (0xB1000000)
==10717== object doesn't have any debug info
==10717== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7C91000)
==10717== Reading syms from /lib/tls/libc-2.3.4.so (0xB7EBA000)
==10717== object doesn't have any debug info
==10717== Reading syms from /lib/libdl-2.3.4.so (0xB7FE5000)
==10717== object doesn't have any debug info
==10717== Reading suppressions file: /usr/lib/valgrind/default.supp
==10717== REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location)
==10717== REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location)
==10717== REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==10717== REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location)
==10717== REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state)
==10717== REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state)
==10717== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==10717== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen)
==10717== REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy)
==10717== REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr)
==10717==
==10717== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC000)
==10717== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B901000)
==10717== TRANSLATE: 0x1B8F5F00 redirected to 0x1B904100
==10717== Reading syms from /lib/tls/libc-2.3.4.so (0x88A000)
==10717== object doesn't have any debug info
==10717== TRANSLATE: 0x8EDF00 redirected to 0x1B9048F8
==10717== TRANSLATE: 0x8EBE30 redirected to 0x1B904E24
==10717== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040
==10717==
==10717== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1)
--10717--
--10717-- supp: 12 dl_relocate_object/dl_main
==10717== malloc/free: in use at exit: 0 bytes in 0 blocks.
==10717== malloc/free: 30 allocs, 30 frees, 1985 bytes allocated.
==10717==
==10717== No malloc'd blocks -- no leaks are possible.
--10717-- TT/TC: 0 tc sectors discarded.
--10717-- 2425 tt_fast misses.
--10717-- translate: new 2260 (39405 -> 516670; ratio 131:10)
--10717-- discard 2 (59 -> 840; ratio 142:10).
--10717-- chainings: 1356 chainings, 3 unchainings.
--10717-- dispatch: 0 jumps (bb entries); of them 5596 (559600%) unchained.
--10717-- 53/2555 major/minor sched events.
--10717-- reg-alloc: 501 t-req-spill, 95959+4125 orig+spill uis,
--10717-- 12341 total-reg-rank
--10717-- sanity: 29 cheap, 2 expensive checks.
--10717-- ccalls: 8269 C calls, 54% saves+restores avoided (26436 bytes)
--10717-- 11023 args, avg 0.87 setup instrs each (2814 bytes)
--10717-- 0% clear the stack (24693 bytes)
--10717-- 3699 retvals, 28% of reg-reg movs avoided (2064 bytes)
==10587==
==10587== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 14 from 1)
--10587--
--10587-- supp: 14 dl_relocate_object/dl_main
==10587== malloc/free: in use at exit: 64108 bytes in 4840 blocks.
==10587== malloc/free: 16676 allocs, 11836 frees, 304322 bytes allocated.
==10587==
==10587== searching for pointers to 4840 not-freed blocks.
==10587== checked 2089972 bytes.
==10587==
==10587== LEAK SUMMARY:
==10587== definitely lost: 0 bytes in 0 blocks.
==10587== possibly lost: 0 bytes in 0 blocks.
==10587== still reachable: 64108 bytes in 4840 blocks.
==10587== suppressed: 0 bytes in 0 blocks.
==10587== Reachable blocks (those to which a pointer was found) are not shown.
==10587== To see them, rerun with: --show-reachable=yes
--10587-- TT/TC: 0 tc sectors discarded.
--10587-- 10675 tt_fast misses.
--10587-- translate: new 9521 (144884 -> 1937236; ratio 133:10)
--10587-- discard 2 (59 -> 840; ratio 142:10).
--10587-- chainings: 7970 chainings, 3 unchainings.
--10587-- dispatch: 2550000 jumps (bb entries); of them 636112 (24%) unchained.
--10587-- 230/39854 major/minor sched events.
--10587-- reg-alloc: 1554 t-req-spill, 358012+10290 orig+spill uis,
--10587-- 48017 total-reg-rank
--10587-- sanity: 144 cheap, 6 expensive checks.
--10587-- ccalls: 33148 C calls, 57% saves+restores avoided (112218 bytes)
--10587-- 44874 args, avg 0.86 setup instrs each (11772 bytes)
--10587-- 0% clear the stack (99015 bytes)
--10587-- 12949 retvals, 32% of reg-reg movs avoided (8064 bytes)
More information about the samba
mailing list