Add four new RCTL resources - readbps, readiops, writebps and writeiops,
authortrasz <trasz@FreeBSD.org>
Thu, 7 Apr 2016 04:23:25 +0000 (04:23 +0000)
committertrasz <trasz@FreeBSD.org>
Thu, 7 Apr 2016 04:23:25 +0000 (04:23 +0000)
commit825d80e01c65efad6bfe7302038a657bbc08e06a
tree38459686f8eedbb80701f99097b1b51ee3363aa8
parentcc1aaf5a1a88524a7d9ff817b98dcfb66049f5f8
Add four new RCTL resources - readbps, readiops, writebps and writeiops,
for limiting disk (actually filesystem) IO.

Note that in some cases these limits are not quite precise. It's ok,
as long as it's within some reasonable bounds.

Testing - and review of the code, in particular the VFS and VM parts - is
very welcome.

MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5080
17 files changed:
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c
sys/fs/ext2fs/ext2_bmap.c
sys/kern/kern_physio.c
sys/kern/kern_racct.c
sys/kern/kern_rctl.c
sys/kern/subr_trap.c
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/sys/proc.h
sys/sys/racct.h
sys/sys/rctl.h
sys/ufs/ffs/ffs_inode.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ufs/ufs_bmap.c
sys/vm/vm_fault.c
usr.bin/rctl/rctl.8