[Samba] settings ACLs is slooooow
Klaus Hartnegg
hartnegg at gmx.de
Tue May 20 09:34:18 MDT 2014
Hi,
I need to set ACLs on a samba server, and are using icacls in Win7.
It takes several hours to edit an ACL with inheritance, affecting a
directory tree with 300,000 files. Server cpu > 70%, client cpu < 20%.
Is there a way how I can speed this up?
Using "setfattr -R" in Linux does it in approximately 2 minutes, but I
want real Windows ACLs.
There are 300.000 files in a directory tree. Client and Server are
Core2duo with 3 GHz and 4 GB RAM. This is Samba 4.1.6 running in Ubuntu
14.04 as NT4-PDC with "vfs objects = acl_xattr" and "map acl inherit =
true". Filesystem ext4 with options rw,noexec,noatime,acl,user_xattr.
I could run it over night, but I will likely have to add ACLs later for
one of the larger subdirectories.
thanks,
Klaus
> top - 17:06:55 up 7 days, 5:45, 2 users, load average: 0,81, 0,79, 0,75
> Aufgaben: 102 total, 3 running, 99 sleeping, 0 stopped, 0 zombie
> %Cpu(s): 14,0 be, 23,4 sy, 0,0 ni, 61,9 un, 0,5 wa, 0,0 hi, 0,2 si, 0,0 st
> KiB Mem: 3047384 total, 1010856 used, 2036528 free, 582592 buffers
> KiB Swap: 9764860 total, 15552 used, 9749308 free. 154744 cached Mem
>
> PID BENUTZER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 4274 root 20 0 39976 17428 14056 S 72,9 0,6 124:21.74 smbd
More information about the samba
mailing list