View previous topic :: View next topic |
Author |
Message |
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Thu Jun 17, 2004 9:58 am Post subject: Samba 3.0.2a and Apache 2.0.49 on Qube 2 |
|
|
Hi All,
Figured I'd post here since the Gentoo on Cobalt thread is getting very long... (it's longer than the Gentoo on Xbox thread).
I've got an issue with both Samba 3.0.2a and Apache 2.0.49 running a horrendus number of threads. It appears after a few days of uptime, these numerous threads multiply and start opening files, which leads a complete failure of SSH and anything else running. I usually have to hit the power button as running /sbin/halt (even in an existing console) throws up the error message, too many open files.
At the moment, the output of ps ax looks like this:
Code: | qube root # ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:20 init [3]
2 ? SW 0:00 [keventd]
3 ? SWN 0:00 [ksoftirqd_CPU0]
4 ? SW 0:00 [kswapd]
5 ? SW 0:00 [bdflush]
6 ? SW 0:00 [kupdated]
7 ? SW 0:00 [kjournald]
196 ? S 0:00 /sbin/devfsd /dev
350 ? SW 0:00 [ahc_dv_0]
351 ? SW 0:00 [scsi_eh_0]
361 ? SW 0:00 [kjournald]
362 ? SW 0:00 [kjournald]
363 ? SW 0:00 [kjournald]
364 ? SW 0:00 [kjournald]
367 ? SW 0:00 [kreiserfsd]
1198 ? S 0:00 metalog [MASTER]
1207 ? S 0:00 metalog [KERNEL]
1408 ? S 0:00 /sbin/dhcpcd eth0
1469 ? S 0:00 /bin/sh /usr/bin/mysqld_safe
1537 ? S 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port
1566 ? S 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port
1567 ? S 0:00 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --port
1598 ? S 0:00 /usr/sbin/sshd
1611 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1654 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1655 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1657 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1658 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1663 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1664 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1666 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1668 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1674 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1675 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1676 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1678 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1679 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1680 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1688 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1689 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1690 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1691 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1692 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1693 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1695 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1696 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1697 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1700 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1701 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1702 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1703 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1704 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1705 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1707 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1709 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1710 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1711 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1712 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1714 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1715 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1716 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1722 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1723 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1724 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1725 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1726 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1727 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1728 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1729 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1730 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1731 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1732 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1733 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1734 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1735 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1736 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1737 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1738 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1739 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1740 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1743 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1744 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1745 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1748 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1749 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1750 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1760 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1761 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1762 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1763 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1764 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1765 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1766 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1767 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1768 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1769 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1770 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1771 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1772 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1773 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1774 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1777 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1782 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1788 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1789 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1790 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1793 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1794 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1800 ? S 0:00 /usr/sbin/apache2 -k start -D PHP
1887 ? S 0:00 /sbin/portmap
1902 ? S 0:01 /sbin/rpc.statd
1911 ? SW 0:00 [nfsd]
1912 ? SW 0:00 [lockd]
1913 ? SW 0:00 [rpciod]
1914 ? SW 0:00 [nfsd]
1915 ? SW 0:00 [nfsd]
1916 ? SW 0:00 [nfsd]
1917 ? SW 0:00 [nfsd]
1918 ? SW 0:00 [nfsd]
1919 ? SW 0:00 [nfsd]
1920 ? SW 0:00 [nfsd]
1924 ? S 0:00 /usr/sbin/rpc.mountd
2026 ? SL 0:00 /usr/bin/ntpd -p /var/run/ntpd.pid -u ntp:ntp
2036 ? S 0:00 perl /root/mybuttond.pl
2055 ? S 0:00 asklcd_menu qube --- 04-06-17 18 :53:05? --- 18: 53:06 up 2 min, 0 users, load average: 1.69, 0 .68, 0.25? --- Shutdown S
2059 ttyS0 S 0:01 /sbin/agetty 115200 ttyS0 vt102
2060 ? S 0:00 sshd: root@pts/0
2062 pts/0 S 0:00 -bash
2070 pts/0 R 0:00 ps ax |
This is right after a reboot.... I've had this with smbd as well. I realise Apache is a multithreadded server, and that it will have multiple threads going, but 87 threads?!?!
I'll see if I can track down this issue, but I'd be interested if anyone else has had this issue. _________________ Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...
Gentoo/MIPS Cobalt developer, Mozilla herd member. |
|
Back to top |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Jun 20, 2004 1:41 am Post subject: |
|
|
Incidentally, this is Samba beginning to do the exact same thing:
Code: | 2886 ? S 0:00 /usr/sbin/smbd
2888 ? S 0:00 /usr/sbin/nmbd
2891 ? S 0:07 /usr/sbin/smbd |
_________________ Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...
Gentoo/MIPS Cobalt developer, Mozilla herd member. |
|
Back to top |
|
|
Redhatter Retired Dev
Joined: 20 Sep 2003 Posts: 548 Location: Brisbane, QLD, Australia
|
Posted: Sun Jun 27, 2004 1:36 am Post subject: |
|
|
Okay, problem seems to have settled down...
I upgraded Samba to the latest available version, and went back to Apache 1.3.31-r2.... both seem to be behaving themselves. _________________ Stuart Longland (a.k.a Redhatter, VK4MSL)
I haven't lost my mind - it's backed up on a tape somewhere...
Gentoo/MIPS Cobalt developer, Mozilla herd member. |
|
Back to top |
|
|
Kumba Developer
Joined: 16 Jul 2002 Posts: 393 Location: Sigma 957
|
Posted: Mon Jun 28, 2004 8:18 am Post subject: |
|
|
Rather weird issue. If you see this again (either on the new samba, or in apache2 if you use it again) could you open a bug on this? Assign to the mips team (mips at gen too d0t org) and CC the php/samba herds (these shouldn't be too hard to find). It'd be useful to have a bug to track in bugzilla for this kind of issue.
--Kumba _________________ "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic |
|
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
|
|