Reinaldo Brandão Gomes
2003-Oct-20 14:50 UTC
RES: [Samba] Nmbd in a infinite loop - consuming 99% CPU
Heres is the output of truss /usr/local/samba/bin/nmbd execve("/usr/local/samba/bin/nmbd", 0xEFFFFCA0, 0xEFFFFCAC) argc = 2 open("/dev/zero", O_RDONLY) = 3 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF7C0000 open("/usr/lib/libsocket.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF7B0000 mmap(0x00000000, 106496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF790000 munmap(0xEF798000, 57344) = 0 mmap(0xEF7A6000, 8185, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xEF7A6000 mmap(0xEF7A8000, 388, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF7A8000 close(4) = 0 open("/usr/lib/libnsl.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 mmap(0x00000000, 581632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF680000 munmap(0xEF6F0000, 57344) = 0 mmap(0xEF6FE000, 35432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 450560) = 0xEF6FE000 mmap(0xEF708000, 18496, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF708000 close(4) = 0 open("/usr/lib/libc.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 mmap(0x00000000, 704512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF580000 munmap(0xEF614000, 57344) = 0 mmap(0xEF622000, 28432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 598016) = 0xEF622000 mmap(0xEF62A000, 2592, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF62A000 close(4) = 0 open("/usr/lib/libdl.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 close(4) = 0 open("/usr/lib/libmp.so.2", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF780000 mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF760000 munmap(0xEF764000, 57344) = 0 mmap(0xEF772000, 3581, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 8192) = 0xEF772000 close(4) = 0 open("/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF62C) = 0 mmap(0xEF780000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF780000 mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF750000 close(4) = 0 close(3) = 0 munmap(0xEF780000, 8192) = 0 time() = 1066653559 time() = 1066653559 brk(0x00042B78) = 0 brk(0x00044B78) = 0 open("/usr/share/lib/zoneinfo/GMT", O_RDONLY) = 3 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192) = 56 close(3) = 0 ^C# truss /usr/local/samba/bin/nmbd -D > /home/mms/truss.out execve("/usr/local/samba/bin/nmbd", 0xEFFFFCA0, 0xEFFFFCAC) argc = 2 open("/dev/zero", O_RDONLY) = 3 mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xEF7C0000 open("/usr/lib/libsocket.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF7B0000 mmap(0x00000000, 106496, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF790000 munmap(0xEF798000, 57344) = 0 mmap(0xEF7A6000, 8185, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 24576) = 0xEF7A6000 mmap(0xEF7A8000, 388, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF7A8000 close(4) = 0 open("/usr/lib/libnsl.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 mmap(0x00000000, 581632, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF680000 munmap(0xEF6F0000, 57344) = 0 mmap(0xEF6FE000, 35432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 450560) = 0xEF6FE000 mmap(0xEF708000, 18496, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF708000 close(4) = 0 open("/usr/lib/libc.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 mmap(0x00000000, 704512, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF580000 munmap(0xEF614000, 57344) = 0 mmap(0xEF622000, 28432, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 598016) = 0xEF622000 mmap(0xEF62A000, 2592, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xEF62A000 close(4) = 0 open("/usr/lib/libdl.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0xEF7B0000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF7B0000 close(4) = 0 open("/usr/lib/libmp.so.2", O_RDONLY) = 4 fstat(4, 0xEFFFF83C) = 0 mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF780000 mmap(0x00000000, 81920, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF760000 munmap(0xEF764000, 57344) = 0 mmap(0xEF772000, 3581, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 8192) = 0xEF772000 close(4) = 0 open("/usr/platform/SUNW,Ultra-1/lib/libc_psr.so.1", O_RDONLY) = 4 fstat(4, 0xEFFFF62C) = 0 mmap(0xEF780000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 4, 0) = 0xEF780000 mmap(0x00000000, 16384, PROT_READ|PROT_EXEC, MAP_PRIVATE, 4, 0) = 0xEF750000 close(4) = 0 close(3) = 0 munmap(0xEF780000, 8192) = 0 time() = 1066653621 time() = 1066653621 brk(0x00042B78) = 0 brk(0x00044B78) = 0 open("/usr/share/lib/zoneinfo/GMT", O_RDONLY) = 3 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0".., 8192) = 56 close(3) = 0 -----Mensagem original----- De: Gerald (Jerry) Carter [mailto:jerry@samba.org] Enviada em: segunda-feira, 20 de outubro de 2003 11:15 Para: Reinaldo Brand?o Gomes Cc: samba@lists.samba.org Assunto: Re: [Samba] Nmbd in a infinite loop - consuming 99% CPU -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Reinaldo Brand?o Gomes wrote: | Hi, People | | WE are having this problem with nmbd & smbd. The Process, once | started goes by 99%CPU time and does nothing. For example, if I | started nmbd with the option -l /usr/local/samba/log.nmbd, no log is | created. | | The smb.conf was not modified over the last 8 years. The OS is | solaris 7, and we have mainly windows clients. But doing one test | with smbclient from another sun running solaris 7 gives no response. | | I really would appreciate any help or comments or | question in order to understand/troubleshoot this problem. I would suggest doing a truss on nmbd and find out what's going on. Also what version of Samba is this? cheers, jerry ~ ---------------------------------------------------------------------- ~ Hewlett-Packard ------------------------- http://www.hp.com ~ SAMBA Team ---------------------- http://www.samba.org ~ GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ~ "You can never go home again, Oatman, but I guess you can shop there." ~ --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE/k+30IR7qMdg1EfYRApfQAKCdT4pZ+18CC7ssmQ6z+V5U3PGe3gCgnESM b8wIIT5xi1gTxUMEL3TJiNc=u0jI -----END PGP SIGNATURE-----