diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2016-02-10 21:21:38 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2016-02-10 21:47:31 +0100 |
| commit | c96ba2cf5efc0ee5c10f0a49aeaa9a45a84de7ed (patch) | |
| tree | baed3de61e8ece38bfa0c7ad1c0a714e0d08c38e /gnu | |
| parent | 8823ed4e12960a6f6c0e9fa2775feecaa6f10a9b (diff) | |
install: Do not cache lookup failures.
Possibly fixes <http://bugs.gnu.org/22209>.
* gnu/system/install.scm (%nscd-minimal-caches)[negative-time-to-live]:
Set to zero.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/system/install.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/system/install.scm b/gnu/system/install.scm index 0cfc8fa5c91..6cde6499954 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm | |||
| @@ -237,7 +237,12 @@ the user's target storage device rather than on the RAM disk." | |||
| 237 | ;; Minimal in-memory caching policy for nscd. | 237 | ;; Minimal in-memory caching policy for nscd. |
| 238 | (list (nscd-cache (database 'hosts) | 238 | (list (nscd-cache (database 'hosts) |
| 239 | (positive-time-to-live (* 3600 12)) | 239 | (positive-time-to-live (* 3600 12)) |
| 240 | (negative-time-to-live 20) | 240 | |
| 241 | ;; Do not cache lookup failures at all since they are | ||
| 242 | ;; quite likely (for instance when someone tries to ping a | ||
| 243 | ;; host before networking is functional.) | ||
| 244 | (negative-time-to-live 0) | ||
| 245 | |||
| 241 | (persistent? #f) | 246 | (persistent? #f) |
| 242 | (max-database-size (* 5 (expt 2 20)))))) ;5 MiB | 247 | (max-database-size (* 5 (expt 2 20)))))) ;5 MiB |
| 243 | 248 | ||
