Feature #677
closedAllow adjustment of cache timeout in idmapd
0%
Description
Some customers have very large numbers of UID to SID mappings, causing things like disk quota queries to take longer than they like. This happens anytime after the default ten minute timeout expires for cached mappings in idmap.
Let's allow adjustment of these timeouts. This adds two new idmap properties:
config/id_cache_timeout (count, default=600 sec.) config/name_cache_timeout (count, default=3600 sec.)
Updated by Gordon Ross over 12 years ago
Test procedure:
(1) Set some non-defaults timesout as above.
(2) create some new ephemeral ID mappings,
(2) look at the expirations w/ sqlite. i.e.
idmap show -c sid:S-1-5-2 gid
/lib/svc/bin/sqlite /var/run/idmap/idmap.db
sqlite> .dump idmap_cache
(examine timeout on new entries)
Updated by Gordon Ross over 12 years ago
- Status changed from New to Resolved
- Assignee set to Gordon Ross
changeset: 13279:bf4390c83614
tag: tip
user: Gordon Ross <gwr@nexenta.com>
date: Tue Feb 01 14:04:47 2011 -0500
description:
677 Allow adjustment of cache timeout in idmapd
Reviewed by: garrett@nexenta.com
Approved by: garrett@nexenta.com
modified:
usr/src/cmd/idmap/idmapd/dbutils.c
usr/src/cmd/idmap/idmapd/idmap_config.c
usr/src/cmd/idmap/idmapd/idmap_config.h
usr/src/cmd/idmap/idmapd/idmapd.h