]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFC r269709 (by imp): is_full_id is set to 0 and then not used. remove it.
mav [Mon, 5 Oct 2015 06:55:26 +0000 (06:55 +0000)]
MFC r269709 (by imp): is_full_id is set to 0 and then not used. remove it.

8 years agoMFC r288068:
kib [Mon, 5 Oct 2015 05:33:30 +0000 (05:33 +0000)]
MFC r288068:
Ensure that maxproc does not exceed pid_max, at the time of boot.

8 years agoFix broken build, again.
peter [Mon, 5 Oct 2015 01:25:51 +0000 (01:25 +0000)]
Fix broken build, again.

cddl/contrib/opensolaris/uts/common/fs/zfs/bqueue.c wasn't added to
conf/files in r286705 and was fixed by r286718.  The broken
version was MFCed by r288571.

Forgotten by:  mav (again)

8 years agoPartially revert r288607, stable/10 does not use ncurses_dll.h.in like head
bdrewery [Sat, 3 Oct 2015 18:40:27 +0000 (18:40 +0000)]
Partially revert r288607, stable/10 does not use ncurses_dll.h.in like head
does, so this file should not be in CLEANFILES / .NOPATH.

8 years agoMFC r287982:
bdrewery [Sat, 3 Oct 2015 16:26:13 +0000 (16:26 +0000)]
MFC r287982:

  Replace afterinstall: hack from r54681 with 'make delete-old' functionality.

8 years agoMFC r287981:
bdrewery [Sat, 3 Oct 2015 16:24:20 +0000 (16:24 +0000)]
MFC r287981:

  Replace afterinstall: hack from r111083 with 'make delete-old' functionality.

8 years agoMFC r273756,r287980:
bdrewery [Sat, 3 Oct 2015 16:21:53 +0000 (16:21 +0000)]
MFC r273756,r287980:

  r273756:
    only install .pc files when we are not installing 32bit compat libs...
  r287980:
    Replace beforeinstall: handling with FILES.

8 years agoMFC r288199,r288246:
bdrewery [Sat, 3 Oct 2015 16:01:16 +0000 (16:01 +0000)]
MFC r288199,r288246:

    Add missing CLEANFILES.

8 years agoMFC r288064 (by avg): 6220 memleak in l2arc on debug build
mav [Sat, 3 Oct 2015 11:43:54 +0000 (11:43 +0000)]
MFC r288064 (by avg): 6220 memleak in l2arc on debug build

illumos/illumos-gate/commit/c546f36aa898d913ff77674fb5ff97f15b2e08b4
https://www.illumos.org/issues/6220
  5408 introduced a memleak in l2arc, namely the member b_thawed gets leaked
  when an arc_hdr is realloced from full to l2only.

Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: George Wilson <george@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Arne Jansen <sensille@gmx.net>

8 years agoMFC r287771: 5695 dmu_sync'ed holes do not retain birth time
mav [Sat, 3 Oct 2015 11:41:27 +0000 (11:41 +0000)]
MFC r287771: 5695 dmu_sync'ed holes do not retain birth time
(userland portion that was not merged in r286677)

Update zdb to also print ltime, type, and level information
for these new style holes. Previously, only the logical birth
time would be printed.

8 years agoMFC r287744 (by delphij): Reduce diff against upstream.
mav [Sat, 3 Oct 2015 11:39:39 +0000 (11:39 +0000)]
MFC r287744 (by delphij): Reduce diff against upstream.

8 years agoMFC r287706 (by delphij):
mav [Sat, 3 Oct 2015 11:38:10 +0000 (11:38 +0000)]
MFC r287706 (by delphij):
6214 zpools going south

In r286570 (MFV of r277426) an unprotected write to b_flags to
set the compression mode was introduced.  This would open a race
window where data is partially decompressed, modified, checksummed
and written to the pool, resulting in pool corruption due to the
partial decompression.

Prevent this by reintroducing b_compress

illumos/illumos-gate@d4cd038c92c36fd0ae35945831a8fc2975b5272c

Illumos issues:

    6214 zpools going south
    https://www.illumos.org/issues/6214

8 years agoMFV r287703, r287705 (by delphij):
mav [Sat, 3 Oct 2015 11:37:00 +0000 (11:37 +0000)]
MFV r287703, r287705 (by delphij):
6091 avl_add doesn't assert on non-debug builds

Use assfail() from libuutil instead of ASSERT() in userland
AVL avl_add.

illumos/illumos-gate@faa2b6be2fc102adf9ed584fc1a667b4ddf50d78

Illumos issues:

    6091 avl_add doesn't assert on non-debug builds
    https://www.illumos.org/issues/6091

8 years agoMFC r287702: 5987 zfs prefetch code needs work
mav [Sat, 3 Oct 2015 11:35:18 +0000 (11:35 +0000)]
MFC r287702: 5987 zfs prefetch code needs work

Rewrite the ZFS prefetch code to detect only forward, sequential
streams.

The following kstats have been added:

    kstat.zfs.misc.arcstats.sync_wait_for_async

        How many sync reads have waited for async read
        to complete. (less is better)

    kstat.zfs.misc.arcstats.demand_hit_predictive_prefetch

        How many demand read didn't have to wait for I/O
        because of predictive prefetch.  (more is better)

zfetch kstats have been similified to hits, misses, and max_streams,
with max_streams representing times when we were not able to create
new stream because we already have the maximum number of sequences
for a file.

The sysctl variable/loader tunable vfs.zfs.zfetch.block_cap have been
replaced by vfs.zfs.zfetch.max_distance, which controls maximum bytes
to prefetch per stream.

illumos/illumos-gate@cf6106c8a0d6598b045811f9650d66e07eb332af

Illumos ZFS issues:

    5987 zfs prefetch code needs work
    https://www.illumos.org/issues/5987

8 years agoMFC r287335 (by allanjude):
mav [Sat, 3 Oct 2015 11:27:23 +0000 (11:27 +0000)]
MFC r287335 (by allanjude):
Remove duplicate defines introduced in initial ZFS import (r168404)

This change reduces compiler warnings by removing duplicate defines

Line numbers are from r168404 (and r284648)
#define lbolt: lines 384 and 459 (531 and 648) (original was renamed later)
#define lbolt64: lines 385 and 460 (532 and 649) (original was renamed later)
#define gethrestime_sec: lines 390 and 465 (540 and 653)
uint64_t physmem: lines 402 and 463 (561 and 651)

8 years agoMFC r287283 (by delphij):
mav [Sat, 3 Oct 2015 11:24:47 +0000 (11:24 +0000)]
MFC r287283 (by delphij):
Fix a buffer overrun which may lead to data corruption, introduced in
r286951 by reinstating changes in r274628.

In l2arc_compress_buf(), we allocate a buffer to stash away the compressed
data in 'cdata', allocated of l2hdr->b_asize bytes.

We then ask zio_compress_data() to compress the buffer, b_l1hdr.b_tmp_cdata,
which is of l2hdr->b_asize bytes, and have the compressed size (or original
size, if compress didn't gain enough) stored in csize.

To pad the buffer to fit the optimal write size, we round up the compressed
size to L2 device's vdev_ashift.

Illumos code rounds up the size by at most SPA_MINBLOCKSIZE.  Because we
know csize <= b_asize, and b_asize is integer multiple of SPA_MINBLOCKSIZE,
we are guaranteed that the rounded up csize would be <= b_asize. However,
this is not necessarily true when we round up to 1 << vdev_ashift, because
it could be larger than SPA_MINBLOCKSIZE.

So, in the worst case scenario, we are overwriting at most

        (1 << vdev_ashift - SPA_MINBLOCKSIZE)

bytes of memory next to the compressed data buffer.

Andriy's original change in r274628 reorganized the code a little bit,
by moving the padding to after we determined that the compression was
beneficial.  At which point, we would check rounded size against the
allocated buffer size, and the buffer overrun would not be possible.

8 years agoMFC r287280 (by delphij):
mav [Sat, 3 Oct 2015 11:23:08 +0000 (11:23 +0000)]
MFC r287280 (by delphij):
In r286705 (Illumos 5960/a2cdcdd), a separate thread is created with curproc
as parent.  In the case of a send or receive, the curproc would be the
userland application that issues the ioctl.  This would trigger an assertion
failure introduced in Solaris compatibility shims in r196458 when kernel is
compiled with INVARIANTS.

Fix this by using p0 (proc0 or kernel) as the parent thread when creating
the kernel threads.

8 years agoMFC r287103 (by avg): 5692 expose the number of hole blocks in a file
mav [Sat, 3 Oct 2015 11:21:50 +0000 (11:21 +0000)]
MFC r287103 (by avg): 5692 expose the number of hole blocks in a file

FreeBSD porting notes:
- only kernel-side changes are merged
- the new ioctl is not actually implemented yet
- thus, the goal is to synchronize DMU code

illumos/illumos-gate@2bcf0248e992f292c7b814458bcdce2f004925d6

https://www.illumos.org/issues/5692
we would like to expose the number of hole (sparse) blocks in a file.
this can be useful to for example if you want to fill in the holes with
some data; knowing the number of holes in advances allows you to report
progress on hole filling. We could use SEEK_HOLE to do that but it would
be O(n) where n is the number of holes present in the file.

Author: Max Grossman <max.grossman@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Boris Protopopov <bprotopopov@hotmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>

8 years agoMFC r286983 (by avg):
mav [Sat, 3 Oct 2015 11:19:32 +0000 (11:19 +0000)]
MFC r286983 (by avg):
fix a mismerge in r286539 (MFV 286538: 5562 ZFS sa_handle's violate...)

8 years agoMFC r286951: Restore part of r274628, reverted at r286776.
mav [Sat, 3 Oct 2015 11:18:30 +0000 (11:18 +0000)]
MFC r286951: Restore part of r274628, reverted at r286776.

8 years agoMFC r286776: Remove some random accumulated diff from Illumos.
mav [Sat, 3 Oct 2015 11:17:31 +0000 (11:17 +0000)]
MFC r286776: Remove some random accumulated diff from Illumos.

8 years agoMFC r286774: 2618 arc.c mistypes in the comments
mav [Sat, 3 Oct 2015 11:16:42 +0000 (11:16 +0000)]
MFC r286774: 2618 arc.c mistypes in the comments

Reviewed by: Jason King <jason.brian.king@gmail.com>
Reviewed by: Josef Sipek <jeffpc@josefsipek.net>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Bart Coddens <bart.coddens@gmail.com>

illumos/illumos-gate@fc98fea58e89224f6f13d7fae246d6cb5dfa35ea

8 years agoMFC r286770: Fix r286766 build with debug.
mav [Sat, 3 Oct 2015 11:15:49 +0000 (11:15 +0000)]
MFC r286770: Fix r286766 build with debug.

8 years agoMFC r286767: Fix minor mismerge sometimes earlier.
mav [Sat, 3 Oct 2015 11:15:01 +0000 (11:15 +0000)]
MFC r286767: Fix minor mismerge sometimes earlier.

8 years agoMFC r286766: 5817 change type of arcs_size from uint64_t to refcount_t
mav [Sat, 3 Oct 2015 11:14:05 +0000 (11:14 +0000)]
MFC r286766: 5817 change type of arcs_size from uint64_t to refcount_t

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@2fd872a734cf486007a8dba532cec52bfb4d40e5

As a way to make it more difficult to introduce bugs into the ARC, and to
make it easier to diagnose issues when bugs do creep in, it would be
beneficial to change the type of the arc_state_t's arcs_size field to be
a refcount_t instead of a uint64_t. This would allow us to make stricter
checks when incrementing and decrementing the value with debugging enabled,
but still fallback to simple, fast atomic operations when debugging is
disabled.

8 years agoMFC r286764: 6033 arc_adjust() should search MFU lists for oldest buffer
mav [Sat, 3 Oct 2015 11:13:01 +0000 (11:13 +0000)]
MFC r286764: 6033 arc_adjust() should search MFU lists for oldest buffer
when adjusting MFU size.

illumos/illumos-gate@31c46cf23cd1cf4d66390a983dc5072d7d299ba2

https://www.illumos.org/issues/6033
  When we're looking for the list containing oldest buffer we never
  actually look at the MFU lists even when we try to evict from MFU.
  looks like a copy paste error, the fix is here:

Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Reviewed by: Xin Li <delphij@delphij.net>
Reviewed by: Prakash Surya <me@prakashsurya.com>
Approved by: Matthew Ahrens <mahrens@delphix.com>
Author: Alek Pinchuk <alek@nexenta.com>
Obtained from:  illumos

8 years agoMFC r286763: 5497 lock contention on arcs_mtx
mav [Sat, 3 Oct 2015 11:11:56 +0000 (11:11 +0000)]
MFC r286763: 5497 lock contention on arcs_mtx

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@244781f10dcd82684fd8163c016540667842f203

This patch attempts to reduce lock contention on the current arc_state_t
mutexes. These mutexes are used liberally to protect the number of LRU
lists within the ARC (e.g. ARC_mru, ARC_mfu, etc). The granularity at
which these locks are acquired has been shown to greatly affect the
performance of highly concurrent, cached workloads.

8 years agoMFC r286762: Revert part of r205231, introducing multiple ARC state locks.
mav [Sat, 3 Oct 2015 11:10:54 +0000 (11:10 +0000)]
MFC r286762: Revert part of r205231, introducing multiple ARC state locks.

This local implementation will be replaced by one from Illumos to reduce
code divergence and make further merges easier.

8 years agoFix r288549 build on stable.
mav [Sat, 3 Oct 2015 09:22:21 +0000 (09:22 +0000)]
Fix r288549 build on stable.

For some reason this (odd) code builds on head, but not on stable.

8 years agoMFC r286712: 6096 ZFS_SMB_ACL_RENAME needs to cleanup better
mav [Sat, 3 Oct 2015 08:07:21 +0000 (08:07 +0000)]
MFC r286712: 6096 ZFS_SMB_ACL_RENAME needs to cleanup better

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Gordon Ross <gordon.w.ross@gmail.com>
Reviewed by: George Wilson <gwilson@zfsmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>

illumos/illumos-gate@8f5190a540d64d2debee6664bbc740e4c38f5b7f

8 years agoMFC r286710:
mav [Sat, 3 Oct 2015 08:06:29 +0000 (08:06 +0000)]
MFC r286710:
6093 zfsctl_shares_lookup should only VN_RELE() on zfs_zget() success

Reviewed by: Gordon Ross <gwr@nexenta.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Dan McDonald <danmcd@omniti.com>

illumos/illumos-gate@0f92170f1ec2737ee5a0e51b5f74093904811452

8 years agoMFC r286708: 5959 clean up per-dataset feature count code
mav [Sat, 3 Oct 2015 08:05:33 +0000 (08:05 +0000)]
MFC r286708: 5959 clean up per-dataset feature count code

Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@ca0cc3918a1789fa839194af2a9245f801a06b1a

A ZFS feature flags (large blocks) tracks its refcounts as the number of
datasets that have ever used the feature. Several features of this type
are planned to be added (new checksum functions). This code should be made
common infrastructure rather than duplicating the code for each feature.

8 years agoMFC r286705: 5960 zfs recv should prefetch indirect blocks
mav [Sat, 3 Oct 2015 08:03:36 +0000 (08:03 +0000)]
MFC r286705: 5960 zfs recv should prefetch indirect blocks
5925 zfs receive -o origin=

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Author: Paul Dagnelie <pcd@delphix.com>

While running 'zfs recv' we noticed that every 128th 8K block required a
read. We were seeing that restore_write() was calling dmu_tx_hold_write()
and the indirect block was not cached. We should prefetch upcoming indirect
blocks to avoid having to go to disk and blocking the restore_write().

Allow an incremental send stream to be received as a clone, even if the
stream does not mark it as a clone.

8 years agoMFC r286689: 5981 Deadlock in dmu_objset_find_dp
mav [Sat, 3 Oct 2015 07:59:25 +0000 (07:59 +0000)]
MFC r286689: 5981 Deadlock in dmu_objset_find_dp

illumos/illumos-gate@1d3f896f5469c69c1339890ec3d68e9feddb0343

https://www.illumos.org/issues/5981
  When dmu_objset_find_dp gets called with a read lock held, it fans out
  the work to the task queue. Each task in turn acquires its own read
  lock before calling the callback. If during this process anyone tries
  to a acquire a write lock, it will stall all read lock requests.Thus
  the tasks will never finish, the read lock of the caller will never
  get freed and the write lock never acquired.  deadlock.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Arne Jansen <jansen@webgods.de>

8 years agoMFC r286686: 5269 zpool import slow
mav [Sat, 3 Oct 2015 07:58:28 +0000 (07:58 +0000)]
MFC r286686: 5269 zpool import slow

illumos/illumos-gate@12380e1e701fda28c9e9f32d01cafb54af279eb5

https://www.illumos.org/issues/5269
  When importing a pool (at boot or with zpool import) with many
  filesystem, the process can take minutes. It doesn't matter whether
  the pool has been exported cleanly or uncleanly.  The problem is that
  each dataset has its own log chain. On import, all datasets have to be
  checked if there are logs to replay.  The idea is to speed up this
  process by paralellizing it.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Arne Jansen <jansen@webgods.de>

8 years agoMFC r286683: 5765 add support for estimating send stream size with
mav [Sat, 3 Oct 2015 07:57:32 +0000 (07:57 +0000)]
MFC r286683: 5765 add support for estimating send stream size with
lzc_send_space when source is a bookmark

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Albert Lee <trisk@nexenta.com>
Author: Max Grossman <max.grossman@delphix.com>

illumos/illumos-gate@643da460c8ca583e39ce053081754e24087f84c8

8 years agoMFC r286677: 5695 dmu_sync'ed holes do not retain birth time
mav [Sat, 3 Oct 2015 07:55:37 +0000 (07:55 +0000)]
MFC r286677: 5695 dmu_sync'ed holes do not retain birth time

illumos/illumos-gate@70163ac57e58ace1c5c94dfbe85dca5a974eff36

https://www.illumos.org/issues/5695
  In dmu_sync_ready(), a hole block pointer will have it's logical size
  explicitly set as it's necessary for replay purposes. To "undo" this,
  dmu_sync_done() will zero out any hole that it finds. This becomes a
  problem when using the "hole_birth" feature, as this will also wipe out
  any birth time that might have happened to be set on the hole.
  ...
  As a fix, the logic to zero out a hole is only applied to old style
  holes with a birth time of zero. Holes created with the "hole_birth"
  feature enabled will have a non-zero birth time, and will be skipped
  (thus preserving the ltime, type, and level information as well).
  In addition, zdb was updated to also print the ltime, type, and level
  information for these new style holes. Previously, only the logical
  birth time would be printed.

Author: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>

8 years agoMFC r286655: Fix set of sign extension bugs in r286625.
mav [Sat, 3 Oct 2015 07:53:56 +0000 (07:53 +0000)]
MFC r286655: Fix set of sign extension bugs in r286625.

8 years agoMFC r286647: Fix assertion panic caused by combination of r286598 and TRIM.
mav [Sat, 3 Oct 2015 07:53:08 +0000 (07:53 +0000)]
MFC r286647: Fix assertion panic caused by combination of r286598 and TRIM.

8 years agoMFC r286628: Fix r286625 build on i386.
mav [Sat, 3 Oct 2015 07:52:11 +0000 (07:52 +0000)]
MFC r286628: Fix r286625 build on i386.

8 years agoMFC r286626: Fix minor mismerge in r286574.
mav [Sat, 3 Oct 2015 07:51:09 +0000 (07:51 +0000)]
MFC r286626: Fix minor mismerge in r286574.

8 years agoMFC r286625:
mav [Sat, 3 Oct 2015 07:50:15 +0000 (07:50 +0000)]
MFC r286625:
5376 arc_kmem_reap_now() should not result in clearing arc_no_grow

Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Reviewed by: Richard Elling <richard.elling@richardelling.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@2ec99e3e987d8aa273f1e9ba2b983557d058198c

8 years agoMFC r286623: Remove extra lock, that IMO only creates potential problems now.
mav [Sat, 3 Oct 2015 07:49:16 +0000 (07:49 +0000)]
MFC r286623: Remove extra lock, that IMO only creates potential problems now.

8 years agoMFC r286605: 5812 assertion failed in zrl_tryenter(): zr_owner==NULL
mav [Sat, 3 Oct 2015 07:48:25 +0000 (07:48 +0000)]
MFC r286605: 5812 assertion failed in zrl_tryenter(): zr_owner==NULL

Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@8df173054ca442cd8845a7364c3edad9d6822351

8 years agoMFC r286603: 5810 zdb should print details of bpobj
mav [Sat, 3 Oct 2015 07:47:33 +0000 (07:47 +0000)]
MFC r286603: 5810 zdb should print details of bpobj

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@732885fca09e11183dd0ea69aaaab5588fb7dbff

8 years agoMFC r286600: 5808 spa_check_logs is not necessary on readonly pools
mav [Sat, 3 Oct 2015 07:46:03 +0000 (07:46 +0000)]
MFC r286600: 5808 spa_check_logs is not necessary on readonly pools

Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com>
Reviewed by: Simon Klinkert <simon.klinkert@gmail.com>
Reviewed by: Will Andrews <will@freebsd.org>
Approved by: Gordon Ross <gwr@nexenta.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@23367a2f2caec1ccb4d918bdd0f2fc2c9cadcd06

8 years agoMFC r286598: 5701 zpool list reports incorrect "alloc" value for cache devices
mav [Sat, 3 Oct 2015 07:45:12 +0000 (07:45 +0000)]
MFC r286598: 5701 zpool list reports incorrect "alloc" value for cache devices

8 years agoMFC r288281
alc [Sat, 3 Oct 2015 07:43:33 +0000 (07:43 +0000)]
MFC r288281
  The conversion of kmem_alloc_attr() from operating on a vm map to a vmem
  arena in r254025 introduced a bug in the case when an allocation is only
  partially successful.  Specifically, the vm object lock was not being
  acquired before freeing the allocated pages.  To address this bug, replace
  the existing code by a call to kmem_unback().

  Change the type of a variable in kmem_alloc_attr() so that an allocation
  of two or more gigabytes won't fail.

  Replace the error handling code in kmem_back() by a call to kmem_unback().

8 years agoMFC r286593: Local addition and mismerge fix for r286579.
mav [Sat, 3 Oct 2015 07:35:11 +0000 (07:35 +0000)]
MFC r286593: Local addition and mismerge fix for r286579.

8 years agoMFC r286589: 5820 verify failed in zio_done(): BP_EQUAL(bp, io_bp_orig)
mav [Sat, 3 Oct 2015 07:34:21 +0000 (07:34 +0000)]
MFC r286589: 5820 verify failed in zio_done(): BP_EQUAL(bp, io_bp_orig)

Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Approved by: Garrett D'Amore <garrett@damore.org>
Author: Matthew Ahrens <mahrens@delphix.com>

illumod/illumos-gate@34e8acef009195effafdcf6417aec385e241796e

8 years agoMFC r286587: 5746 more checksumming in zfs send
mav [Sat, 3 Oct 2015 07:33:27 +0000 (07:33 +0000)]
MFC r286587: 5746 more checksumming in zfs send

Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Albert Lee <trisk@omniti.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@98110f08fa182032082d98be2ddb9391fcd62bf1

8 years agoMFC r286579: 5313 Allow I/Os to be aggregated across ZIO priority classes
mav [Sat, 3 Oct 2015 07:32:34 +0000 (07:32 +0000)]
MFC r286579: 5313 Allow I/Os to be aggregated across ZIO priority classes
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: Will Andrews <willa@SpectraLogic.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

illumos/illumos-gate@fe319232d24f4ae183730a5a24a09423d8ab4429

8 years agoMFC r286578: Fix r286574 build in user-space.
mav [Sat, 3 Oct 2015 07:31:42 +0000 (07:31 +0000)]
MFC r286578: Fix r286574 build in user-space.

8 years agoMFC r286576: Fix r286570 build with debug.
mav [Sat, 3 Oct 2015 07:30:55 +0000 (07:30 +0000)]
MFC r286576: Fix r286570 build with debug.

8 years agoMFC r286575: 5056 ZFS deadlock on db_mtx and dn_holds
mav [Sat, 3 Oct 2015 07:29:56 +0000 (07:29 +0000)]
MFC r286575: 5056 ZFS deadlock on db_mtx and dn_holds

Reviewed by: Will Andrews <willa@spectralogic.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Justin Gibbs <justing@spectralogic.com>

illumos/illumos-gate@bc9014e6a81272073b9854d9f65dd59e18d18c35

8 years agoMFC r286574: 5445 Add more visibility via arcstats; specifically
mav [Sat, 3 Oct 2015 07:28:52 +0000 (07:28 +0000)]
MFC r286574: 5445 Add more visibility via arcstats; specifically
arc_state_t stats and differentiate between "data" and "metadata"

Reviewed by: Basil Crow <basil.crow@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Bayard Bell <bayard.bell@nexenta.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Prakash Surya <prakash.surya@delphix.com>

illumos/illumos-gate@4076b1bf41cfd9f968a33ed54a7ae76d9e996fe8

8 years agoMFC r286570: 5408 managing ZFS cache devices requires lots of RAM
mav [Sat, 3 Oct 2015 07:27:58 +0000 (07:27 +0000)]
MFC r286570: 5408 managing ZFS cache devices requires lots of RAM
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Don Brady <dev.fs.zfs@gmail.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Author: Chris Williamson <Chris.Williamson@delphix.com>

illumos/illumos-gate@89c86e32293a30cdd7af530c38b2073fee01411c

Currently, every buffer cached in the L2ARC is accompanied by a 240-byte
header in memory, leading to very high memory consumption when using very
large cache devices. These changes significantly reduce this overhead.

Currently:

L1-only header = 176 bytes
L1 + L2 or L2-only header = 176 bytes + 32 byte checksum + 32 byte l2hdr
    = 240 bytes

Memory-optimized:

L1-only header = 176 bytes
L1 + L2 header = 176 bytes + 32 byte checksum = 208 bytes
L2-only header = 96 bytes + 32 byte checksum = 128 bytes

So overall:

          Trunk  Optimized
        +-----------------+
L1-only | 176 B  | 176 B  | (same)
        +-----------------+
L1 & L2 | 240 B  | 208 B  | (saved 32 bytes)
        +-----------------+
L2-only | 240 B  | 128 B  | (saved 116 bytes)
        +-----------------+

For an average blocksize of 8KB, this means that for the L2ARC, the ratio
of metadata to data has gone down from about 2.92% to 1.56%.  For a
'storage optimized' EC2 instance with 1600GB of SSD and 60GB of RAM, this
means that we expect a completely full L2ARC to use (1600 GB * 0.0156) /
60GB = 41% of the available memory, down from 78%.

Relnotes: yes

8 years agoMFC r286556: Avoid 128K kmem allocations in mzap_upgrade()
mav [Sat, 3 Oct 2015 07:26:48 +0000 (07:26 +0000)]
MFC r286556: Avoid 128K kmem allocations in mzap_upgrade()

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Steven Hartland <killing@multiplay.co.uk>
Approved by: Rich Lowe <richlowe@richlowe.net>

illumos/illumos-gate@be3e2ab906b80af79c7b22885f279e45ad8fb995

8 years agoMFC r286554: 5769 Cast 'zfs bad bloc' to ULL for x86
mav [Sat, 3 Oct 2015 07:25:59 +0000 (07:25 +0000)]
MFC r286554: 5769 Cast 'zfs bad bloc' to ULL for x86

Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com>
Reviewed by: Richard PALO <richard@NetBSD.org>
Approved by: Dan McDonald <danmcd@omniti.com>

illumos/illumos-gate@8c76e0763bcf0029556e106377da859f6492a7ee

8 years agoMFC r286551: 5694 traverse_prefetcher does not prefetch enough
mav [Sat, 3 Oct 2015 07:25:05 +0000 (07:25 +0000)]
MFC r286551: 5694 traverse_prefetcher does not prefetch enough

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Garrett D'Amore <garrett@damore.org>
Author: George Wilson <george.wilson@delphix.com>

illumos/illumos-gate@34d7ce052c4565b078f73b95ccbd49274e98edaa

8 years agoMFC r286549:
mav [Sat, 3 Oct 2015 07:24:12 +0000 (07:24 +0000)]
MFC r286549:
5693 ztest fails in dbuf_verify: buf[i] == 0, due to dedup and bp_override

Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Matthew Ahrens <mahrens@delphix.com>

illumos/illumos-gate@7f7ace370074e350853da254c65688fd43ddc695

8 years agoMFC r286547:
mav [Sat, 3 Oct 2015 07:23:19 +0000 (07:23 +0000)]
MFC r286547:
5661 ZFS: "compression = on" should use lz4 if feature is enabled

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Xin LI <delphij@freebsd.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

illumos/illumos-gate@db1741f555ec79def5e9846e6bfd132248514ffe

8 years agoMFC r286545:
mav [Sat, 3 Oct 2015 07:22:24 +0000 (07:22 +0000)]
MFC r286545:
5630 stale bonus buffer in recycled dnode_t leads to data corruption

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

8 years agoMFC r286543: 5592 NULL pointer dereference in dsl_prop_notify_all_cb()
mav [Sat, 3 Oct 2015 07:21:27 +0000 (07:21 +0000)]
MFC r286543: 5592 NULL pointer dereference in dsl_prop_notify_all_cb()

Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Will Andrews <will@freebsd.org>
Approved by: Robert Mustacchi <rm@joyent.com>

illumos/illumos-gate@9d47dec0481d8cd53b2c1053c96bfa3f78357d6a

8 years agoMFC r286541: 5531 NULL pointer dereference in dsl_prop_get_ds()
mav [Sat, 3 Oct 2015 07:20:26 +0000 (07:20 +0000)]
MFC r286541: 5531 NULL pointer dereference in dsl_prop_get_ds()

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Bayard Bell <buffer.g.overflow@gmail.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

illumos/illumos-gate@e57a022b8f718889ffa92adbde47a8f08abcdb25

8 years agoMFC r286539:
mav [Sat, 3 Oct 2015 07:19:12 +0000 (07:19 +0000)]
MFC r286539:
5562 ZFS sa_handle's violate kmem invariants, debug kernels panic on boot

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Robert Mustacchi <rm@fingolfin.org>
Reviewed by: George Wilson <george@delphix.com>
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Justin T. Gibbs <justing@spectralogic.com>

illumos/illumos-gate@0fda3cc5c1c5a1d9bdea6d52637bef6e781549c9

8 years agoMFC r281109: Add DTrace probe to the new ARC reclaim cause added in r281026.
mav [Sat, 3 Oct 2015 07:17:45 +0000 (07:17 +0000)]
MFC r281109: Add DTrace probe to the new ARC reclaim cause added in r281026.

8 years agoMFC r284591 (by avg): illums compat: use flsl/flsll for highbit/highbit64
mav [Fri, 2 Oct 2015 20:13:56 +0000 (20:13 +0000)]
MFC r284591 (by avg): illums compat: use flsl/flsll for highbit/highbit64

Do that only when when fast inline versions are available.
At the moment that can be the case only in the kernel and not for all
platforms.

The original code uses the binary search and that's kept as a fallback.
This is a micro optimization.

8 years agoMFC r279996 (by smh): Allow zvol_geom_worker to process BIO_DELETE's
mav [Fri, 2 Oct 2015 20:09:16 +0000 (20:09 +0000)]
MFC r279996 (by smh): Allow zvol_geom_worker to process BIO_DELETE's

If zvol_geom_start is called with a BIO_DELETE from a thread which can
sleep it queues it for later processing by the zvol_geom_worker. The
zvol_geom_worker didn't have a delete case so would simply loose the bio
hence preventing the original caller from every completing. In addition
an other unknown types would suffer the same fate.

Allow zvol_geom_worker to process BIO_DELETE's via zvol_strategy and
return unsupported for all unknown bio types.

8 years agoMFC r277826 (by delphij):
mav [Fri, 2 Oct 2015 20:07:03 +0000 (20:07 +0000)]
MFC r277826 (by delphij):
Diff reduction with upstream.  The actual change was merged in r272483
already.

8 years agoMFC r277452 (by will): Fix arc__shrink DTrace probe's to_free argument.
mav [Fri, 2 Oct 2015 20:03:52 +0000 (20:03 +0000)]
MFC r277452 (by will): Fix arc__shrink DTrace probe's to_free argument.

Remove the unnecessary #ifdef _KERNEL, which did not differ in the true or
false cases.  Actually set the value of to_free before using it.

8 years agoMFC r275780 (by delphij):
mav [Fri, 2 Oct 2015 19:59:43 +0000 (19:59 +0000)]
MFC r275780 (by delphij):
Add a loader tunable, vfs.zfs.arc_meta_min, which controls how much metadata
ZFS should keep in ARC at minimum.

In arc_evict(), when doing recycle, take more factors into account by
applying the following policy:

  1. If no evictable data, evict metadata;
  2. If no evictable metadata, evict data;
  3. If we hit arc_meta_limit, evict metadata;
  4. If we haven't hit arc_meta_min, evict data;
  5* (Illumos only, not present in new FreeBSD code, yet) evict the oldest
     cached element from data and metadata.
     (FreeBSD) evict the data type specified by caller, which is the
     existing behavior.

Note that because of our splitted locks (implemented in r205231 to improve
scalability by reducing lock contention), implementing the fifth Illumos
behavior will not be cheap, so for now just implement the 1-4 and fall back
to current behavior for 5.

Illumos issue:
    5368 ARC should cache more metadata

8 years agoMFC r269117: Make sysctls under vfs.zfs.zfetch writeable.
mav [Fri, 2 Oct 2015 19:41:47 +0000 (19:41 +0000)]
MFC r269117: Make sysctls under vfs.zfs.zfetch writeable.

I don't see any reason for them to be read-only, while tuning them without
reboot is much more convenient for experiments.

8 years agoFix a regression with SA-15:24 patch that prevented NIS from
delphij [Fri, 2 Oct 2015 16:36:16 +0000 (16:36 +0000)]
Fix a regression with SA-15:24 patch that prevented NIS from
working.

8 years agoMFC r287830
hiren [Fri, 2 Oct 2015 16:30:54 +0000 (16:30 +0000)]
MFC r287830

Remove unnecessary tcp state transition call.

8 years agoMFC r288381:
bdrewery [Fri, 2 Oct 2015 16:22:21 +0000 (16:22 +0000)]
MFC r288381:

  All supported releases have the -m support from r186678, so remove the
  mention of it and reword this a bit to remove 'you'.

8 years agoMFC r288380:
bdrewery [Fri, 2 Oct 2015 16:21:14 +0000 (16:21 +0000)]
MFC r288380:

  Document the post-merge actions of calling tzsetup(8) and services_mkdb(8)
  added in r259134.

8 years agoMFC r283924
vangyzen [Fri, 2 Oct 2015 14:36:41 +0000 (14:36 +0000)]
MFC r283924

Provide vnode in memory map info for files on tmpfs

When providing memory map information to userland, populate the vnode pointer
for tmpfs files.  Set the memory mapping to appear as a vnode type, to match
FreeBSD 9 behavior.

This fixes the use of tmpfs files with the dtrace pid provider,
procstat -v, procfs, linprocfs, pmc (pmcstat), and ptrace (PT_VM_ENTRY).

Submitted by:   Eric Badger <eric@badgerio.us> (initial revision)
Obtained from:  Dell Inc.
PR:             198431

8 years agoMFC r281787
vangyzen [Fri, 2 Oct 2015 14:24:39 +0000 (14:24 +0000)]
MFC r281787

dmesg: accommodate message buffer growth between the sysctl calls

Allocate 12.5% extra space to avoid ENOMEM when the message buffer
is growing steadily.

Reported by:    Steve Wahl <steve_wahl@dell.com> (and tested)
Sponsored by:   Dell Inc.

8 years agoMFC r281785
vangyzen [Fri, 2 Oct 2015 14:21:07 +0000 (14:21 +0000)]
MFC r281785

Always send log(9) messages to the message buffer.

It is truer to the semantics of logging for messages to *always*
go to the message buffer, where they can eventually be collected
and, in fact, be put into a log file.

This restores the behavior prior to r70239, which seems to have
changed it inadvertently.

Submitted by:   Eric Badger <eric@badgerio.us>
Obtained from:  Dell Inc.

8 years agoMFC r280793
vangyzen [Fri, 2 Oct 2015 14:11:44 +0000 (14:11 +0000)]
MFC r280793

pmcstat.8: fix -a flag description; improve -m flag to match

The -a flag reads a file saved by -O, not -o.

The -m flag requires the -R flag.  Copy that paragraph from -a.

Sponsored by: Dell Inc.

8 years agoMFC r280792
vangyzen [Fri, 2 Oct 2015 13:48:32 +0000 (13:48 +0000)]
MFC r280792

Clean up some cosmetic nits in kern_umtx.c, found during recent work
in this area and by the Clang static analyzer.

Remove some dead assignments.

Fix a typo in a panic string.

Use umtx_pi_disown() instead of duplicate code.

Use an existing variable instead of curthread.

Approved by:    kib (mentor until recently)
Sponsored by:   Dell Inc.

8 years agoMFC r288216:
kib [Fri, 2 Oct 2015 05:27:12 +0000 (05:27 +0000)]
MFC r288216:
Use per-cpu values for base and last in tc_cpu_ticks().

8 years agoMFC r288374:
gjb [Fri, 2 Oct 2015 02:08:40 +0000 (02:08 +0000)]
MFC r288374:
  In addition to the ubldr file, also copy ubldr.bin to the
  MS-DOS partition.  This will help with transitioning to
  a single arm/armv6 userland build which could be used for
  all FreeBSD/armv6 images without UBLDR_LOADADDR being set
  for each board (ultimately requiring a separate buildworld
  for each currently).

Sponsored by: The FreeBSD Foundation

8 years agoMFC r288370:
gjb [Fri, 2 Oct 2015 02:06:36 +0000 (02:06 +0000)]
MFC r288370:
  In vm_copy_base(), turn off SU+J on the resultant filesystem,
  leaving only SU enabled.

Sponsored by: The FreeBSD Foundation

8 years agoMFC 287448:
jhb [Thu, 1 Oct 2015 22:19:41 +0000 (22:19 +0000)]
MFC 287448:
Add more mmap tests related to character devices.
- Add cdev-related tests for bad args.
- Add two simple tests cases for mapping /dev/zero that test for
  MAP_ANON-like behavior.

8 years agoMFC 286370:
jhb [Thu, 1 Oct 2015 22:17:27 +0000 (22:17 +0000)]
MFC 286370:
Add various tests to ensure that invalid arguments passed to mmap()
trigger failures.

Note: most of the tests that should provoke an EINVAL error do not
pass on stable/10 as stable/10 does not have the changes that added
more strict parameter checking to mmap().  Those changes will not be
merged to stable/10, so I have disabled them via #if 0 with a comment
explaining why.

8 years agoMFC 286369:
jhb [Thu, 1 Oct 2015 22:08:16 +0000 (22:08 +0000)]
MFC 286369:
Convert the map_at_zero test case to ATF.  In particular, this will
facilitate adding more mmap() tests.

8 years agoMFC 286177:
jhb [Thu, 1 Oct 2015 21:57:15 +0000 (21:57 +0000)]
MFC 286177:
Fix a couple of markup typos.

8 years agoMFC 286256:
jhb [Thu, 1 Oct 2015 21:54:43 +0000 (21:54 +0000)]
MFC 286256:
kgdb uses td_oncpu to determine if a thread is running and should use
a pcb from stoppcbs[] rather than the thread's PCB.  However, exited threads
retained td_oncpu from the last time they ran, and newborn threads had their
CPU fields cleared to zero during fork and thread creation since they are
in the set of fields zeroed when threads are setup.  To fix, explicitly
update the CPU fields for exiting threads in sched_throw() to reflect the
switch out and reset the CPU fields for new threads in sched_fork_thread()
to NOCPU.

8 years agoMFC 284175:
jhb [Thu, 1 Oct 2015 20:54:19 +0000 (20:54 +0000)]
MFC 284175:
Handle X2APIC entries in the MADT for APICs with an ID < 255.  At least one
BIOS has been seen to include such entries even though the relevant specs
require that X2APIC entries only be used for CPUs with an APIC ID >= 255.

This was tested on a system with "plain" local APIC entries in the MADT
to ensure no regressions, but it has not yet been tested on a system with
X2APIC entries in the MADT.  Currently such systems do not boot at all,
and with this change they might now boot correctly.

8 years agoMFC 283121:
jhb [Thu, 1 Oct 2015 20:49:10 +0000 (20:49 +0000)]
MFC 283121:
Use the proper mask when reloading sampling PMCs for Core CPUs.

8 years agoMFC 283624,283630:
jhb [Thu, 1 Oct 2015 17:09:20 +0000 (17:09 +0000)]
MFC 283624,283630:
Export a list of VM objects in the system via a sysctl.  The list can be
examined via 'vmstat -o'.  It can be used to determine which files are
using physical pages of memory and how much each is using.

8 years agoMFC r288341, r288345, r288347:
gjb [Thu, 1 Oct 2015 00:47:30 +0000 (00:47 +0000)]
MFC r288341, r288345, r288347:

r288341:
  Honor VMFORMATS and VMSIZE if set in release.conf. [1]

r288345:
  In followup to r288341, ensure VMFORMATS and VMSIZE are not
  set to empty values, which would result in nonintuitive build
  errors.

r288347:
  Append VMFORMATS and VMSIZE to RELEASE_RMAKEFLAGS only if
  WITH_VMIMAGES is set.

PR: 203420 [1]
Sponsored by: The FreeBSD Foundation

8 years agoMFC r287927:
delphij [Thu, 1 Oct 2015 00:44:45 +0000 (00:44 +0000)]
MFC r287927:

Use strlcpy() instead of strncpy() because subsequent mkstemps expects
the string be nul-terminated.

Reviewed by: neel

8 years agoMFC r288278:
markj [Wed, 30 Sep 2015 03:36:41 +0000 (03:36 +0000)]
MFC r288278:
Document the interface for applying advice up to the end of a file.

8 years agoMFC r288276:
markj [Wed, 30 Sep 2015 03:35:58 +0000 (03:35 +0000)]
MFC r288276:
Fix argument ordering in vn_printf().

8 years agoMFC r287806:
markj [Wed, 30 Sep 2015 03:33:28 +0000 (03:33 +0000)]
MFC r287806:
Preserve the device queue status before retrying a sense request in
chdone().

8 years agoMFC 269727:
jhb [Wed, 30 Sep 2015 00:11:06 +0000 (00:11 +0000)]
MFC 269727:
Update vmstat usage for last-argument count/wait parameters

Correct the usage in both the manpage and in usage() to indicate
that the wait interval and repetition count may be given either
with the respective -w/-c arguments, or as the final positional
arguments. [0]

The corresponding code to implement the positional arguments has
been conditional on the (always-enabled) BACKWARD_COMPATIBILITY
macro since the original 4.4-lite import.  It's no longer reasonable
to remove the functionality, so remove the macro and conditional
instead.

Note that multiple disks may be given on the command line.

While here, sort arguments and apply minor mdoc fixes.

PR: 184755 [0]

8 years agoMFC r288154:
bdrewery [Tue, 29 Sep 2015 22:00:03 +0000 (22:00 +0000)]
MFC r288154:

  Similar to r266147, don't define PROG in the test subdirs.