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

johan.badenhorst

  • Zen Apprentice
  • *
  • Posts: 9
  • Karma: +3/-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: 478
  • Karma: +165/-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!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,