[Samba] Samba 4 slow write
jra at samba.org
Fri May 29 17:53:07 MDT 2015
On Fri, Apr 24, 2015 at 07:58:46AM +0800, Jones Syue wrote:
> Hello Jeremy,
> Sure here is the link to patch:
> Based on this push:
> s3:passdb: do not use the in-memory idmap cache (it will be removed)
> Not quite sure why remove it from git,
> perhaps will match new features or something new.
> Loop Michael too,
> if could help review and comment that will be great help,
> thank you.
OK, this functionality got moved into idmap_cache_find_XXXX()
functions which allow smbd to look directly into the
winbindd idmap cache via the uid_to_sid(), gid_to_sid(),
sid_to_uid(), sid_to_gid() and sids_to_unixids() functions.
These functions explicitly look inside the gencache
tdb used for all generic caching (with expiry time)
inside Samba, so this should be pretty efficient.
Does this extra layer of in-memory caching really
make such a difference on top of the caching we
are already using in the gencache tdb ?
Any chance of instrumenting this without your
patch to find out why is makes such a difference ?
Michael, do you have any good ideas on why removing
the in-memory cache hurt performance so much ?
More information about the samba