[PATCH] gencache: Add gencache values to memcache

Jeremy Allison jra at samba.org
Tue Mar 11 10:54:07 MDT 2014


On Mon, Mar 10, 2014 at 08:43:36PM +0100, Volker Lendecke wrote:
> Hi!                                                                                                                                     
>                                                                                                                                         
> Attached find a patch that caches gencache values in the                                                                                
> memcache. The gencache tdb access shows in profiles when                                                                                
> doing a lot of ACL checks (for example during open) with                                                                                
> large, similar ACLs. If I do 1.000.000 gencache_parse for an                                                                            
> existing value on my laptop, timing it shows                                                                                            
>                                                                                                                                         
> real    0m1.787s                                                                                                                        
> user    0m0.672s                                                                                                                        
> sys     0m1.056s                                                                                                                        
>                                                                                                                                         
> without this patch and                                                                                                                  
>                                                                                                                                         
> real    0m0.199s                                                                                                                        
> user    0m0.152s                                                                                                                        
> sys     0m0.008s                                                                                                                        
>                                                                                                                                         
> with this patch.                                                                                                                        
>                                                                                                                                         
> Review would be appreciated!                                                                                                            

LGTM - pushed to autobuild.

Thanks !

Jeremy.


More information about the samba-technical mailing list