View previous topic :: View next topic |
Author |
Message |
soviet/funk n00b
Joined: 18 Mar 2004 Posts: 56 Location: Stavanger, Norway
|
Posted: Tue May 23, 2006 10:43 am Post subject: samba memory hog + smbd still running after samba stop |
|
|
Yesterday I upgraded samba on a groupware/storage server, and since the emerge was done the server has been running terribly slow. (I forgot to stop samba before i ran the upgrade but i don't really know how big an issue that is). Running "top" showed several smbd processes taking up memory and cpu%. So i did an "init.d/samba stop" and checked top again, and the smbd processes are still running? And using quite a bit of memory:
Code: |
top - 12:07:57 up 19:56, 1 user, load average: 5.66, 5.86, 5.99
Tasks: 209 total, 3 running, 206 sleeping, 0 stopped, 0 zombie
Cpu(s): 47.8% us, 2.2% sy, 0.0% ni, 0.0% id, 48.4% wa, 0.3% hi, 1.3% si
Mem: 1027056k total, 1018360k used, 8696k free, 8628k buffers
Swap: 31294600k total, 2044460k used, 29250140k free, 4388k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
7956 samba 25 0 472m 413m 96 R 98.7 41.3 81:17.75 smbd
167 root 15 0 0 0 0 D 1.7 0.0 3:20.38 kswapd0
7962 samba 18 0 475m 19m 96 D 1.0 2.0 82:48.83 smbd
7944 samba 18 0 337m 84m 96 D 0.7 8.4 39:20.84 smbd
7960 samba 18 0 350m 87m 96 D 0.7 8.7 44:09.81 smbd
7961 samba 18 0 375m 255m 96 R 0.7 25.4 51:26.29 smbd
|
ps aux |grep samba:
Code: |
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
samba 7944 23.1 3.8 345608 39040 ? R 09:21 39:21 /usr/sbin/smbd -D
samba 7956 50.0 42.2 494900 433440 ? D 09:22 84:33 /usr/sbin/smbd -D
samba 7960 26.3 2.4 358676 25360 ? D 09:23 44:10 /usr/sbin/smbd -D
samba 7961 32.1 32.2 391700 330820 ? R 09:25 53:32 /usr/sbin/smbd -D
samba 7962 50.0 7.3 486724 75908 ? R 09:26 82:49 /usr/sbin/smbd -D
|
These processes don't respond to any kills either.
And dang, now i see that syslog-ng's conf has been broken, so it hasn't been logging since the reboot yesterday.
I'm going to do a couple of things first: remove samba from default rc, reboot, remerge samba minus some recent USE flags and then see what happens. In the meantime, any suggestions for where to look? I added som use flags during the build yesterday so emergeing it looks like this:
Code: |
felles kevin # emerge -vp samba
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] net-fs/samba-3.0.22 +acl -async +automount +cups -doc -examples -kerberos +ldap +ldapsam +libclamav +mysql +oav +pam +postgres +python -quotas +readline (-selinux) +swat +syslog +winbind +xml +xml2 0 kB
|
Anything problematic there?
Thanks!
kevin
UPDATE: After the reboot the system is running as normal again, so the samba processes were definitely hogging resources. Have rebuilt without automount (don't think i need that) ldapsam, winbind and acl (according to wiki guide it requires patched ext2/3 or XFS, and i have reiserfs. Stupid? Hope so. ) Now to see how it runs.
UPDATE II: samba runs nicely until i start testing from winXP clients. They wait and wait and fail to connect. Then i have smbd topping the top list again with 5-6 PIDs. And services slow down everywhere. I've also noticed that logging in to OpenXchange takes ages, and generates a huge amount of identical processes (saslauthd, java, postgres) with consecutive pid numbers, but that's a problem for a different forum. Rebooting without samba (or stopping samba if that works now) again to verify that openxchange is not the hog. _________________ Vitals:
Precision M65
AMD64/3500+/SATA/nForce3/GT6600
a whole shitload of gentoo servers |
|
Back to top |
|
|
machaven n00b
Joined: 30 Sep 2005 Posts: 10
|
Posted: Tue May 23, 2006 1:07 pm Post subject: |
|
|
I'm having the same problem with samba, smb process stays open and hogs up cpu usage :/ |
|
Back to top |
|
|
soviet/funk n00b
Joined: 18 Mar 2004 Posts: 56 Location: Stavanger, Norway
|
Posted: Tue May 23, 2006 2:01 pm Post subject: |
|
|
This thread seems to be related:
https://forums.gentoo.org/viewtopic-t-320588-highlight-samba+winxp+client.html
I have followed the advised USE use in one of the posts later in the discussion, and will test my XP clients very soon.
I don't see quite how this should be related, since my samba shares use only 1% of the available disk space still... But it's worth a try.
kevin
UPDATE: that didn't really help much, it improved my reduced performance but xp connects (which now fail partly instead of completely) still leave smbd processes running indefinitely. Time for some RTFM, RTF man samba, to be precise. _________________ Vitals:
Precision M65
AMD64/3500+/SATA/nForce3/GT6600
a whole shitload of gentoo servers |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|