[SSSD] [PATCH] nss: Add option to disable memcache

Jakub Hrozek jhrozek at redhat.com
Thu Sep 12 09:23:17 UTC 2013


On Wed, Sep 11, 2013 at 05:54:01PM -0400, Simo Sorce wrote:
> On Wed, 2013-09-11 at 20:19 +0200, Michal Židek wrote:
> > Hello,
> > 
> > I would like to have this option in SSSD for debugging purposes. It is 
> > not documented, so it should be invisible for users (but I can add it to 
> > man pages as well, if someone thinks it is useful to have it there).
> 
> This would cause you to have stale mmap cache files on the system,
> wouldn't it make more sense to have an environment variable for the
> client libraries instead and have them ignore the mmap cache when you
> want to test something ?

This sounds like a good idea.

> It could also be documented as it may be a useful workaround should a
> user find a bug that hits the mmap_cache and wants a temporary way to
> avoid it even if with performance penalty for a specific application.
> 
> Something like SSS_NSS_USE_MEMCACHE=yes/no
> 
> defaulting to yes, if no env var is found.

If I can speak for Michal -- we discussed that it might be nice to be able
to temporarily disable the memcache somehow, but if there was a documented
way, hitting memcache problems would simply disable it and don't even
report a bug. Kind of like users switching SELinux to Permissive.



More information about the sssd-devel mailing list