Print this page
3742 zfs comments need cleaner, more consistent style
Submitted by:   Will Andrews <willa@spectralogic.com>
Submitted by:   Alan Somers <alans@spectralogic.com>
Reviewed by:    Matthew Ahrens <mahrens@delphix.com>
Reviewed by:    George Wilson <george.wilson@delphix.com>
Reviewed by:    Eric Schrock <eric.schrock@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/vdev_queue.c
          +++ new/usr/src/uts/common/fs/zfs/vdev_queue.c
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  
  30   30  #include <sys/zfs_context.h>
  31   31  #include <sys/vdev_impl.h>
  32   32  #include <sys/spa_impl.h>
  33   33  #include <sys/zio.h>
  34   34  #include <sys/avl.h>
  35   35  
  36   36  /*
  37   37   * These tunables are for performance analysis.
  38   38   */
       39 +
       40 +/* The maximum number of I/Os concurrently pending to each device. */
       41 +int zfs_vdev_max_pending = 10;
       42 +
  39   43  /*
  40      - * zfs_vdev_max_pending is the maximum number of i/os concurrently
  41      - * pending to each device.  zfs_vdev_min_pending is the initial number
  42      - * of i/os pending to each device (before it starts ramping up to
  43      - * max_pending).
       44 + * The initial number of I/Os pending to each device, before it starts ramping
       45 + * up to zfs_vdev_max_pending.
  44   46   */
  45      -int zfs_vdev_max_pending = 10;
  46   47  int zfs_vdev_min_pending = 4;
  47   48  
  48   49  /*
  49   50   * The deadlines are grouped into buckets based on zfs_vdev_time_shift:
  50   51   * deadline = pri + gethrtime() >> time_shift)
  51   52   */
  52   53  int zfs_vdev_time_shift = 29; /* each bucket is 0.537 seconds */
  53   54  
  54   55  /* exponential I/O issue ramp-up rate */
  55   56  int zfs_vdev_ramp_rate = 2;
↓ open down ↓ 413 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX