From owner-freebsd-fs@FreeBSD.ORG Fri Dec 7 18:47:00 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B74C3A9A for ; Fri, 7 Dec 2012 18:47:00 +0000 (UTC) (envelope-from tjg@soe.ucsc.edu) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 838E98FC08 for ; Fri, 7 Dec 2012 18:47:00 +0000 (UTC) Received: by mail-pb0-f54.google.com with SMTP id wz12so576971pbc.13 for ; Fri, 07 Dec 2012 10:47:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsc.edu; s=ucsc-google; h=mime-version:date:message-id:subject:from:to:content-type; bh=f86nfrlfXhq+i8KK4Tyadj4INkoumb+iG1lEMNXqI80=; b=ZIzZEwuwsDrjvCCxbjgxzbZZG4fGIFJAff2Fhuc7NpTxFy3QgzVvifGuLwhxpnx1qO WTHELw554ueA+WvAUWGOnvz0onze4PZ+ylka9eADci+vDv+1KEaXKR0veVqcOwx5T+BR fr7kOiZQ52F8jDaEBhd7E0oK/qeHoApjImuDE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :x-gm-message-state; bh=f86nfrlfXhq+i8KK4Tyadj4INkoumb+iG1lEMNXqI80=; b=e8M2PZpAQOjpQAMhYi/F546AobnnFKFVxzAjZ4R591KXScJupClDqWJpKmmaYtHzom Yc66DoqjHU71fbgHMPfJJa9WghlGk575f+1MkUicLwP4CqVrXv9jnVh9uEuZsATPKdMA 7DYANE/I5/+7DwwxfrtCom4H/hMqziFbI1THwugCnD5SK9uXHXwab00LAXxE2rlez00E vuQFVOhKIm/GMlrf/KhUmC3sfflT83WABCVFxOfKSiHv2sroNWFOCwlKYH9/2MbrE7jM pbR45PEQS8qH3Js+TwYwkm62EcVRKkVl3u47IoEhGQ2vCba9+W+BBmucMacOGVYEgAXY /bjQ== MIME-Version: 1.0 Received: by 10.66.80.68 with SMTP id p4mr15759368pax.35.1354906019986; Fri, 07 Dec 2012 10:46:59 -0800 (PST) Received: by 10.68.200.99 with HTTP; Fri, 7 Dec 2012 10:46:59 -0800 (PST) Date: Fri, 7 Dec 2012 10:46:59 -0800 Message-ID: Subject: zfs list slow From: Tim Gustafson To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQmGwBUmtDRmZQMgRaEYFF+H/GdYB+UNsabT5l2WsWezEQEgxOImENc6jNRinIhwSpqgFkN2 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Dec 2012 18:47:00 -0000 We're running zpool version 28, and zfs version 5, on a FreeBSD 9.0-RELEASE-p4 box. I'm trying to get a list of all snapshots in my zpool, like this: /sbin/zfs list -H -r -t snapshot -o name -s name tank We have about 2,000 file systems, and each of those has perhaps a dozen snapshots. This command currently takes about 5 minutes to run the first time. If you run it again immediately, it goes much quicker - perhaps a few seconds. But if you change any of the zpool configuration (like creating a new snapshot, or a new file system), the command takes about 5 minutes to run again. Is there any way to speed up the listing of all local snapshots? -- Tim Gustafson tjg@soe.ucsc.edu 831-459-5354 Baskin Engineering, Room 313A