Files
mirror_zfs/include/sys
Pawel Jakub Dawidek 0cee24064a Speed up 'zfs list -t snapshot -o name -s name'
FreeBSD #xxx:  Dramatically optimize listing snapshots when user
requests only snapshot names and wants to sort them by name, ie.
when executes:

  # zfs list -t snapshot -o name -s name

Because only name is needed we don't have to read all snapshot
properties.

Below you can find how long does it take to list 34509 snapshots
from a single disk pool before and after this change with cold and
warm cache:

    before:

        # time zfs list -t snapshot -o name -s name > /dev/null
        cold cache: 525s
        warm cache: 218s

    after:

        # time zfs list -t snapshot -o name -s name > /dev/null
        cold cache: 1.7s
        warm cache: 1.1s

NOTE: This patch only appears in FreeBSD.  If/when Illumos picks up
the change we may want to drop this patch and adopt their version.
However, for now this addresses a real issue.

Ported-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #450
2012-06-14 09:49:04 -07:00
..
2012-01-11 11:46:02 -08:00
2011-05-04 10:02:37 -07:00
2012-03-22 13:03:47 -07:00
2012-03-22 13:03:47 -07:00
2012-03-07 16:28:00 -08:00
2011-02-10 09:21:43 -08:00
2011-05-04 10:02:37 -07:00
2011-03-02 11:43:50 -08:00
2011-09-27 16:12:36 -07:00
2011-03-02 11:43:50 -08:00
2012-02-02 11:24:30 -08:00
2012-03-22 13:03:47 -07:00
2012-02-27 14:08:17 -08:00
2011-02-10 09:27:21 -08:00
2011-11-28 15:45:51 -08:00
2012-03-22 13:03:47 -07:00
2011-08-02 10:34:55 -07:00
2012-03-22 13:03:47 -07:00
2011-02-23 12:29:38 -08:00