Project

General

Profile

Actions

Feature #677

closed

Allow adjustment of cache timeout in idmapd

Added by Gordon Ross over 12 years ago. Updated over 12 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Start date:
2011-01-28
Due date:
% Done:

0%

Estimated time:
Difficulty:
Tags:
Gerrit CR:
External Bug:

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.)

Actions #1

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)

Actions #2

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 <>
date: Tue Feb 01 14:04:47 2011 -0500

description:
677 Allow adjustment of cache timeout in idmapd
Reviewed by:
Approved by:

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

Actions

Also available in: Atom PDF