samba consumes all memory then hangs z390 vmachine. 2004-01-27 - By shane@(protected)
Back I am experiencing a situation where attempting to browse/connect to a z390
RHEL3 samba server causes the process to peg out at 100% cpu and begin to
consume every increasing amounts of memory. I have tested basically the
same configuration on a x86 RHEL3 server without problem. Once memory is
fully consumed the vmachine hangs, which suggests the virtual memory
killer is not working or is disabled.
Here is a snapshot from strace of the smb process:
munmap(0x100023fa000, 4096) = 0
mremap(0x1000241c000, 718000128, 718004224, MREMAP_MAYMOVE) =
0x1000241c000
open( "/etc/passwd ", O_RDONLY) = 25
fcntl(25, F_GETFD) = 0
fcntl(25, F_SETFD, FD_CLOEXEC) = 0
fstat(25, {st_mode=S_IFREG|0644, st_size=1492, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x100023fa000
read(25, "root:x:0:0:root:/root:/bin/bash\n "..., 4096) = 1492
read(25, " ", 4096) = 0
close(25) = 0
munmap(0x100023fa000, 4096) = 0
mremap(0x1000241c000, 718004224, 718004224, MREMAP_MAYMOVE) =
0x1000241c000
open( "/etc/passwd ", O_RDONLY) = 25
fcntl(25, F_GETFD) = 0
fcntl(25, F_SETFD, FD_CLOEXEC) = 0
fstat(25, {st_mode=S_IFREG|0644, st_size=1492, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x100023fa000
read(25, "root:x:0:0:root:/root:/bin/bash\n "..., 4096) = 1492
read(25, " ", 4096) = 0
close(25)
The above repeats endlessly until all memory is consumed.
I have added the following to /etc/pam.d/system-auth:
auth sufficient /lib64/security/pam_winbind.so
account required /lib64/security/pam_winbind.so
session required /lib64/security/pam_mkhomedir.so skel=/etc/skel
I found it odd that /lib/ did not contain these libs and that I had to
use /lib64/.
I am able to join this server to active directory and rpc without issue,
and kinit _SEEMS_ to connect properly.
I have verified that the same /etc/samba/smb.conf and /etc/krb5.conf works
on my x86 test server without problem but I can provide those if needed.
wbinfo -g and wbinfo -u reports fine, however "getent passwd " and "getent
groups " reports the local machine accounts, then hangs when it gets to
where it should report the active directory users and groups.
Any insight is most welcome.
Cheers,
Shane
--
"Given enough time, all legal battles in the tech industry will invoke the
DMCA. This generally means that all constructive arguments have ended. "
-NialScorva
--
Taroon-list mailing list
Taroon-list@(protected)
http://www.redhat.com/mailman/listinfo/taroon-list
|
|