[Samba] samba process use 100% cpu
Papp Bence
pappbence at kzsdabas.hu
Tue May 9 16:01:10 UTC 2017
Anybody?
2017. 05. 02. 10:48 keltezéssel, Papp Bence via samba írta:
> Hi!
>
>
> I need some help.
>
> We use samba4 as AD, and now when clients connect to server, samba
> process stuck at 100% cpu.
>
> samba Version: 4.3.4 Release: 13.el6
>
>
> top:
>
> 3777 root 20 0 131m 46m 28m R 99.7 0.3 219:20.53
> /usr/local/samba4//sbin/samba -D
> 24541 csertam 20 0 49260 11m 9048 S 25.1 0.1 0:01.56 smbd -D
> 7080 squid 20 0 926m 908m 6428 S 9.9 6.2 11:43.50 (squid-1)
> -f /etc/squid/squid.conf
> 25503 squid 20 0 40236 36m 1040 S 3.3 0.2 0:00.10
> (squidGuard) -c /etc/squid/squidguard.conf
> 25507 squid 20 0 39840 35m 1036 S 3.3 0.2 0:00.10
> (squidGuard) -c /etc/squid/squidguard.conf
> 25506 squid 20 0 39836 35m 1036 S 3.0 0.2 0:00.09
> (squidGuard) -c /etc/squid/squidguard.conf
> 25508 squid 20 0 39840 35m 1036 S 3.0 0.2 0:00.09
> (squidGuard) -c /etc/squid/squidguard.conf
> 25511 squid 20 0 39836 35m 1036 S 2.6 0.2 0:00.08
> (squidGuard) -c /etc/squid/squidguard.conf
> 7123 root 20 0 117m 26m 4004 S 1.7 0.2 11:48.54
> /usr/bin/python /usr/sbin/presenced -d
> 24798 3000039 20 0 143m 23m 6204 S 1.0 0.2 0:01.03
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 25408 root 20 0 9760 1704 1072 R 1.0 0.0 0:00.23 top -c
> 2565 root 20 0 143m 23m 6232 S 0.7 0.2 0:02.60
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 6094 root 20 0 143m 23m 6236 S 0.7 0.2 0:02.97
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 6432 qpidd 20 0 151m 14m 4560 S 0.7 0.1 1:55.56
> /usr/sbin/qpidd --data-dir /var/lib/qpidd --daemon
> 8295 root 20 0 143m 23m 6232 S 0.7 0.2 0:02.48
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 16526 root 20 0 143m 23m 6204 S 0.7 0.2 0:03.46
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 26586 root 20 0 143m 23m 6232 S 0.7 0.2 0:02.60
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 1294 root 20 0 0 0 0 S 0.3 0.0 0:31.24
> [flush-253:4]
> 1987 root 20 0 0 0 0 S 0.3 0.0 6:12.93
> [kondemand/0]
> 2089 ldap 20 0 569m 125m 13m S 0.3 0.9 11:49.78
> /usr/sbin/ns-slapd -D /etc/dirsrv/slapd-sulixerver -i
> /var/run/dirsrv/slapd-sulixerver.pid -w
> /var/run/dirsrv/slapd-sulixerver.startpid
> 3764 mysql 20 0 221m 77m 6240 S 0.3 0.5 90:00.06
> /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql
> --user=mysql --log-error=/var/log/mysqld.log
> --pid-file=/var/run/mysqld/mysqld.pid --s
> 3784 root 20 0 130m 19m 1732 S 0.3 0.1 1:31.75
> /usr/local/samba4//sbin/samba -D
> 6561 sogo 20 0 56784 10m 4172 S 0.3 0.1 4:05.72
> /usr/sbin/sogod -WOWorkersCount 100 -WOPidFile /var/run/sogo/sogo.pid
> -WOLogFile /var/log/sogo/sogo.log
> 8047 root 20 0 143m 23m 6236 S 0.3 0.2 0:03.00
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 8562 3000025 20 0 143m 23m 6272 S 0.3 0.2 0:02.48
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 9650 root 20 0 143m 23m 6228 S 0.3 0.2 0:02.39
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 11370 root 20 0 143m 23m 6232 S 0.3 0.2 0:02.90
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 18826 root 20 0 143m 23m 6236 S 0.3 0.2 0:02.91
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 24465 3000040 20 0 143m 23m 6228 S 0.3 0.2 0:02.99
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 24668 root 20 0 143m 23m 6240 S 0.3 0.2 0:02.46
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 26180 3000058 20 0 143m 23m 6248 S 0.3 0.2 0:02.54
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
> 26997 3000146 20 0 143m 23m 6252 S 0.3 0.2 0:02.83
> /usr/local/samba4/sbin/smbd -D --option=server role check:inhibit=yes
> --foreground
>
>
>
> I tried strace, and got this:
>
>
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=9400,
> len=1}, 0xbff3ce24) = 0
> writev(50, [{"0\0", 2},
> {"\5\0\2\3\20\0\0\0000\0\0\0\2\0\0\0\30\0\0\0\0\0\0\0\0\0\0\0\336\210/g"...,
> 48}], 2) = 50
> epoll_wait(11, {{EPOLLIN, {u32=2962349656, u64=2962349656}}}, 1,
> 30000) = 1
> readv(49, [{"\204\0", 2}], 1) = 2
> readv(49, [{"\5\0\0\3\20\0\0\0\204\0\0\0\3\0\0\0", 16},
> {"l\0\0\0\0\0D\0\0\0\0\0\37\215\27\1;
> \345N\273\216}\4\227\311\214|\1\0\0\0"..., 116}], 2) = 132
> gettimeofday({1493714662, 571764}, NULL) = 0
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c1b4) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c234) = 0
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c0e4) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c164) = 0
> time(NULL) = 1493714662
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3cdf4) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3ce74) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3cd24) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3cda4) = 0
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c1e4) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c264) = 0
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c114) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c194) = 0
> time(NULL) = 1493714662
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3ce24) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3cea4) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=20284,
> len=1}, 0xbff3cb64) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=20284,
> len=1}, 0xbff3cbe4) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=21732,
> len=1}, 0xbff3cd54) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=21732,
> len=1}, 0xbff3cdd4) = 0
> writev(49, [{"\264\0", 2},
> {"\5\0\2\3\20\0\0\0\264\0\0\0\3\0\0\0\234\0\0\0\0\0\0\0\4\0\2\0\1\0\0\0"...,
> 180}], 2) = 182
> epoll_wait(11, {{EPOLLIN, {u32=2957714824, u64=2957714824}}}, 1,
> 30000) = 1
> readv(54, [{",\0", 2}], 1) = 2
> readv(54, [{"\5\0\0\3\20\0\0\0,\0\0\0\4\0\0\0", 16},
> {"\24\0\0\0\0\0\0\0\0\0\0\0#\207e\341\321\272BL\276W[\373\3712\326\227",
> 28}], 2) = 44
> gettimeofday({1493714662, 574431}, NULL) = 0
> writev(54, [{"0\0", 2},
> {"\5\0\2\3\20\0\0\0000\0\0\0\4\0\0\0\30\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
> 48}], 2) = 50
> epoll_wait(11, {{EPOLLIN|EPOLLHUP, {u32=2966417304, u64=2966417304}}},
> 1, 30000) = 1
> readv(52, [{"\0\0", 2}], 1) = 0
> epoll_ctl(11, EPOLL_CTL_DEL, 52, {0, {u32=0, u64=0}}) = 0
> close(52) = 0
> fcntl64(23, F_SETLKW64, {type=F_WRLCK, whence=SEEK_SET, start=184,
> len=1}, 0xbff3d0e4) = 0
> fcntl64(23, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=184,
> len=1}, 0xbff3d134) = 0
> epoll_wait(11, {{EPOLLIN, {u32=2962320928, u64=2962320928}}}, 1,
> 30000) = 1
> readv(62, [{",\0", 2}], 1) = 2
> readv(62, [{"\5\0\0\3\20\0\0\0,\0\0\0\245\2\0\0", 16},
> {"\24\0\0\0\0\0'\0\2\0\0\0~\241\362`\312\327.G\2559\24\310\6\340\226\240",
> 28}], 2) = 44
> gettimeofday({1493714662, 575413}, NULL) = 0
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> time(NULL) = 1493714662
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c0c4) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c144) = 0
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3bff4) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=3140,
> len=1}, 0xbff3c074) = 0
> time(NULL) = 1493714662
> fcntl64(12, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(12, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c164) = 0
> fcntl64(15, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=30480,
> len=1}, 0xbff3c344) = 0
> fcntl64(15, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=30480,
> len=1}, 0xbff3c3c4) = 0
> fcntl64(15, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(15, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c164) = 0
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=36380,
> len=1}, 0xbff3c344) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=36380,
> len=1}, 0xbff3c3c4) = 0
> fcntl64(14, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(14, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c164) = 0
> fcntl64(16, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=14612,
> len=1}, 0xbff3c344) = 0
> fcntl64(16, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=14612,
> len=1}, 0xbff3c3c4) = 0
> fcntl64(16, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(16, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c164) = 0
> fcntl64(17, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=10100,
> len=1}, 0xbff3c344) = 0
> fcntl64(17, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=10100,
> len=1}, 0xbff3c3c4) = 0
> fcntl64(17, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(17, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c164) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3c344) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26440,
> len=1}, 0xbff3c3c4) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c114) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=26808,
> len=1}, 0xbff3c194) = 0
> fcntl64(13, F_SETLKW64, {type=F_RDLCK, whence=SEEK_SET, start=38868,
> len=1}, 0xbff3c274) = 0
> fcntl64(13, F_SETLKW64, {type=F_UNLCK, whence=SEEK_SET, start=38868,
> len=1}, 0xbff3c2f4) = 0
>
>
> Can somebody help me how can I investigate the problem?
>
> Sincerely,
>
> Papp Bence
>
>
More information about the samba
mailing list