Samba 2.0.7 Memory Bloat under Sparc Solaris 5.8

David Collier-Brown David.Collier-Brown at canada.sun.com
Wed Aug 30 16:42:36 GMT 2000


Truss said:
Base time stamp:  967650706.7920  [ Thu Aug 31 02:51:46 EST 2000 ]
	...
16598/1:         0.0128 open("/opt/local/lib/libdl.so.1",
O_RDONLY)     Err#2 ENOENT
16598/1:         0.0131
open("/opt/oracle/product/8.1.6/lib/libdl.so.1", O_RDONLY) Err#2
ENOENT
16598/1:         0.0134 open("/usr/lib/libdl.so.1",
O_RDONLY)           = 4

        While it's quite harmless, I notice you have oracle in samba's
        loader search path (LD_LIBRARY_PATH)

16598/1:         0.1844 stat64("/opt/samba/lib/smb.conf",
0xFFBEEA38)   = 0
16598/1:         0.1849 open64("/opt/samba/lib/smb.conf",
O_RDONLY)     = 7
16598/1:         0.1851 fstat64(7,
0xFFBEED18)                          = 0
16598/1:         0.1853
brk(0x00132EC8)                                 = 0
16598/1:         0.1854
brk(0x00134EC8)                                 = 0
16598/1:         0.1856 ioctl(7, TCGETA,
0xFFBEECA4)                    Err#25 ENOTTY

        Stdio opens smb.conf...

16598/1:         0.1858 read(7, " [ g l o b a l ]\n\t s e"..,
8192)     = 1679
16598/1:         0.1875
brk(0x00134EC8)                                 = 0
16598/1:         0.1877
brk(0x00136EC8)                                 = 0
16598/1:         0.1885 read(7, 0x00131E9C,
8192)                       = 0
16598/1:         0.1887 llseek(7, 0,
SEEK_CUR)                          = 1679
16598/1:         0.1888
close(7)                                        = 0
16598/1:         0.1893 open64("/local/etc/printcap",
O_RDONLY)         = 7
16598/1:         0.1895 fstat64(7,
0xFFBEE9D8)                          = 0
16598/1:         0.1896
brk(0x00136EC8)                                 = 0
16598/1:         0.1898
brk(0x00138EC8)                                 = 0
16598/1:         0.1900 ioctl(7, TCGETA,
0xFFBEE964)                    Err#25 ENOTTY

        and then /etc/printcap.

16598/1:         0.1902 read(7, " r i d g e b a c k | d o"..,
8192)     = 8192
16598/1:         0.1909
brk(0x00138EC8)                                 = 0
16598/1:         0.1910
brk(0x0013AEC8)                                 = 0
16598/1:         0.1917
brk(0x0013AEC8)                                 = 0

        and it goes and calls brk 32,084 times.
        It starts at virtual address 0x00138EC8, and
        runs up to 0x07EAEEC8, at time=8.8897 sec, for
        an allocated memory [heap] size increase
        of 0x7D76000 bytes, 131,555,328 bytes.

        131 Meg for (many) printers...

	This sure looks like a possible problem (;-))

--dave (apptrace next) c-b
-- 
David Collier-Brown,  | Always do right. This will gratify some people
185 Ellerslie Ave.,   | and astonish the rest.        -- Mark Twain
Willowdale, Ontario   | //www.oreilly.com/catalog/samba/author.html
Work: (905) 415-2849 Home: (416) 223-8968 Email: davecb at canada.sun.com




More information about the samba-technical mailing list