Author Topic: High CPU - Samba  (Read 81 times)

johan.badenhorst

  • Zen Apprentice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
High CPU - Samba
« on: January 06, 2020, 08:46:55 am »
Since the upgrade to Zentyal 6.1.2 I noticed a very high CPU usage by samba

Any idea what may be causing this?

doncamilo

  • Zen Samurai
  • ****
  • Posts: 331
  • Karma: +68/-1
    • View Profile
Re: High CPU - Samba
« Reply #1 on: January 07, 2020, 02:09:53 pm »
 :)

There isn't any reason for it. Usually, it's due to the log level defined for the vfs audit. https://www.samba.org/samba/docs/current/man-html/vfs_full_audit.8.html

You can check your log level with the samba testparm tool or viewing your smb.conf file:

Code: [Select]
...
force create mode = 0660
force directory mode = 0660
path = /home/samba/shares/test
valid users = "@Domain Users"
vfs objects = acl_xattr full_audit
write list = "@Domain Users"
full_audit:failure = connect opendir disconnect unlink mkdir rmdir open rename


Remeber that you don't have to modify this file directly, but through the zentyal templates (read this: https://doc.zentyal.org/en/appendix-c.html#stubs)

Cheers!
"That place... is strong with the
dark side of the Force.  A domain
of evil it is.  In you must go."

Yoda.