Project

General

Profile

Actions

Bug #9889

closed

Bug #9885: zoneadm takes ages to do something on a system with many snapshots

libbe reads defaults too often

Added by Andy Fiddaman almost 3 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2018-10-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

When enumerating filesystems and snapshots, libbe reads the /etc/default/be file every time the callback is entered. It should cache this.

# truss -flea -t open beadm list 2>&1 | grep -c /etc/default/be
20991
LD_LIBRARY_PATH=. truss -flea -t open beadm list 2>&1 | grep -c /etc/default/be
truss -flea -t open beadm list 2>&1 | grep -c /etc/default/be
6
Actions

Also available in: Atom PDF