I reported the problem two months ago . I knew this would happen . :(( 2016-09-17 22:42 GMT+03:00 Edson Tadeu Almeida da Silveira via samba < samba at lists.samba.org>:> Sorry, the problem came back, after 3 hours. > > att, > > 2016-09-17 13:11 GMT-03:00 Edson Tadeu Almeida da Silveira < > edson.tadeu at gmail.com>: > > > I don't know if it is a coincidence, but, after add "dead time = 10" in > my > > smb.conf, my server is about 1 hour without increase de number of > > processes... > > > > tks! > > > > > > 2016-09-17 12:49 GMT-03:00 Jeremy Allison <jra at samba.org>: > > > >> On Sat, Sep 17, 2016 at 12:19:16PM -0300, Edson Tadeu Almeida da > Silveira > >> via samba wrote: > >> > Hi Guys! > >> > > >> > I've been using Samba since 4.4.4 without any problems. But yesterday, > >> when > >> > i upgraded it to 4.5 my servers are using lots of memory resources > >> because > >> > it is opening lots of samba processes. > >> > > >> > Now, it is with 4000 samba processes open, and i have to restart samba > >> 4.5 > >> > time from time. > >> > > >> > Can anyone help me with this problem? > >> > >> This is probably active bug: > >> > >> https://bugzilla.samba.org/show_bug.cgi?id=12045 > >> > >> There is a test patch there although I don't > >> think it's the final patch. We're looking at it. > >> > > > > > > > > -- > > > > ------------------------------------------- > > Edson Tadeu Almeida Silveira > > http://sites.google.com/site/edsontadeu/ > > ------------------------------------------- > > > > > > -- > > ------------------------------------------- > Edson Tadeu Almeida Silveira > http://sites.google.com/site/edsontadeu/ > ------------------------------------------- > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On Sat, 2016-09-17 at 23:26 +0300, barış tombul via samba wrote:> I reported the problem two months ago . I knew this would happen . > :((I'm sorry for the frustration. One of the hardest things about debugging issues like this is that it is unpredictable which clue will give us enough information to make progress. In this case it was Sander Plas who was able to get the gdb backtraces of the stuck processes, and those have essentially isolated the problem. (Our inclination is that this is a tdb mutex deadlock). Furthermore, it seems likely that this happens most often in production, rather than in test, as the timing of connection shutdowns would appear critical, so it didn't show up in 'make test'. (We also don't currently have a check for stuck processes in the test cleanup as we probably should) As I said, I'm sorry for your frustration, and hope we will have a fix to this shortly. Andrew Bartlett -- Andrew Bartlett http://samba.org/~abartlet/ Authentication Developer, Samba Team http://samba.org Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
thanks for your attention. temporarily with the following script I'm looking at myself. #!/bin/bash INTERVAL=180 LOG=true function log { if $LOG; then echo $1 fi } while true; do testx=`ps -auxw | grep "smbd" | wc -l` testy=`netstat -ap | grep samba | grep sock | wc -l` if test "$testx" -gt "50" -a "$testy" -gt "50" ;then echo "samba problem" service samba restart else echo "samba no problem" fi sleep $INTERVAL done 2016-09-18 2:17 GMT+03:00 Andrew Bartlett <abartlet at samba.org>:> On Sat, 2016-09-17 at 23:26 +0300, barış tombul via samba wrote: > > I reported the problem two months ago . I knew this would happen . > > :(( > > I'm sorry for the frustration. One of the hardest things about > debugging issues like this is that it is unpredictable which clue will > give us enough information to make progress. In this case it > was Sander Plas who was able to get the gdb backtraces of the stuck > processes, and those have essentially isolated the problem. (Our > inclination is that this is a tdb mutex deadlock). > > Furthermore, it seems likely that this happens most often in > production, rather than in test, as the timing of connection shutdowns > would appear critical, so it didn't show up in 'make test'. > > (We also don't currently have a check for stuck processes in the test > cleanup as we probably should) > > As I said, I'm sorry for your frustration, and hope we will have a fix > to this shortly. > > Andrew Bartlett > -- > Andrew Bartlett http://samba.org/~abartlet/ > Authentication Developer, Samba Team http://samba.org > Samba Developer, Catalyst IT http://catalyst.net.nz/ > services/samba > >