答复: High CPU load when write use samba 4.3.11

Zhangxiaoxu zhang.xiaoxu at h3c.com
Wed Mar 22 03:49:45 UTC 2017


Hi,

Are you configuring samba shares on cluster and writing something on shares.
Provide provide complete background of Issue. Use-case. Setup detials.
Yes, the samba working with a cluster.
We just write 25 files the same time use one smb connection.
And one of the server occurs the issue.

Where same smbd can write fast & where slow?
The high cpu load server write slowly, the traffic wasn’t smooth, with server jitter.

Is there some difference in 2 machine configurations?
The server configuration is the same.

Set log level =10, the ctdb print ‘CTDB_REQ_MESSAGE queue full - killing client connection.’

We note that, the samba use more RES sometimes than other normal node.
And the RES don’t  freed when the write operation complete.
    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
1597197 nobody    20   0  404932  18000  15536 R  42.4  0.0   2:43.78 smbd
2546523 nobody    20   0 2774704 2.262g  17188 S  75.8  2.4  27:52.04 smbd

With pmap command:
000055b52f115000 2352108K rw---   [ anon ]

Br
Zhang Xiaoxu.

发件人: amit kumar [mailto:amitkuma at redhat.com]
发送时间: 2017年3月21日 20:52
收件人: zhangxiaoxu 13123 (RD)
抄送: samba-technical at lists.samba.org
主题: Re: High CPU load when write use samba 4.3.11


Hello,
Are you configuring samba shares on cluster and writing something on shares.
Provide provide complete background of Issue. Use-case. Setup detials.

Where same smbd can write fast & where slow?
Is there some difference in 2 machine configurations?

Thanks
Amit Kumar
On 03/21/2017 05:54 PM, Zhangxiaoxu via samba-technical wrote:

Hi samba-team,



High CPU load when write use samba 4.3.11.



Top command:

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND

464708 nobody    20   0 2543720 2.041g  22028 R  91.2  2.2  73:56.20 smbd

In another server, it cost about 40% when write the same files.



A lot of logs was printed during write:

[2017/03/21 19:57:53.532109,  1] ../librpc/ndr/ndr.c:578(ndr_pull_error)

  ndr_pull_error(11): Pull bytes 8 (../librpc/ndr/ndr_basic.c:234)

[2017/03/21 19:57:53.532161,  1] ../source3/locking/share_mode_lock.c:312(parse_share_modes)

  ndr_pull_share_mode_lock failed: Buffer Size Error



Configuration:

usershare allow guests = yes

clustering = yes

max protocol = SMB3

large readwrite = yes

aio write behind = true

load printers = no



Could you give us some help about the issue.

Thanks.



Br

Zhang Xiaoxu.



-------------------------------------------------------------------------------------------------------------------------------------

本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出

的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、

或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本

邮件!

This e-mail and its attachments contain confidential information from H3C, which is

intended only for the person or entity whose address is listed above. Any use of the

information contained herein in any way (including, but not limited to, total or partial

disclosure, reproduction, or dissemination) by persons other than the intended

recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender

by phone or email immediately and delete it!



--

Thanks

Amit Kumar

There are three ways to get something done:

  (1) Do it yourself.

  (2) Hire someone to do it for you.

  (3) Forbid your kids to do it.


More information about the samba-technical mailing list