Back out a portion of the last commit. DFLTPHYS and MAXPHYS cannot

be set by a kernel conf option due to the struct buf structural
    dependancy (sizing of b_pages[]) creating a conflict with modules
    (which are not compiled with kernel config options overrides).

    We'll be able to sysctl these two later on when the buffer subsystem
    is revamped.
This commit is contained in:
Matthew Dillon 1999-09-22 05:48:31 +00:00
parent 92e13d2a9c
commit 8b22cebb2c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51532
6 changed files with 3 additions and 47 deletions

View file

@ -101,13 +101,8 @@
#ifndef BLKDEV_IOSIZE
#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */
#endif
#ifndef DFLTPHYS
#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */
#endif
#ifndef MAXPHYS
#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */
#endif
#define CLSIZE 1
#define CLSIZELOG2 0

View file

@ -60,20 +60,9 @@ options DFLDSIZ="(256*1024*1024)"
# BLKDEV_IOSIZE sets the default block size used in user block
# device I/O. Note that this value will be overriden by the label
# when specifying a block device from a label with a non-0
# partition blocksize
#
# DFLTPHYS is the default maximum physical I/O transaction size
# and is used mostly by the clustering code. It must be a
# multiple of the system page size.
#
# MAXPHYS is the absolute maximum physical I/O transaction size.
# It must be a multiple of the system page size.
#
# In general you should not modify either DFLTPHYS or MAXPHYS.
# partition blocksize. The default is PAGE_SIZE.
#
options BLKDEV_IOSIZE=8192
options DFLTPHYS="(64*1024)"
options MAXPHYS="(128*1024)"
# Options for the VM subsystem
#options PQ_NOOPT # No coloring

View file

@ -289,8 +289,6 @@ INVARIANTS opt_global.h
SIMPLELOCK_DEBUG opt_global.h
VFS_BIO_DEBUG opt_global.h
BLKDEV_IOSIZE opt_global.h
DFLTPHYS opt_global.h
MAXPHYS opt_global.h
# These are VM related options
VM_KMEM_SIZE opt_vm.h

View file

@ -60,20 +60,9 @@ options DFLDSIZ="(256*1024*1024)"
# BLKDEV_IOSIZE sets the default block size used in user block
# device I/O. Note that this value will be overriden by the label
# when specifying a block device from a label with a non-0
# partition blocksize
#
# DFLTPHYS is the default maximum physical I/O transaction size
# and is used mostly by the clustering code. It must be a
# multiple of the system page size.
#
# MAXPHYS is the absolute maximum physical I/O transaction size.
# It must be a multiple of the system page size.
#
# In general you should not modify either DFLTPHYS or MAXPHYS.
# partition blocksize. The default is PAGE_SIZE.
#
options BLKDEV_IOSIZE=8192
options DFLTPHYS="(64*1024)"
options MAXPHYS="(128*1024)"
# Options for the VM subsystem
#options PQ_NOOPT # No coloring

View file

@ -60,20 +60,9 @@ options DFLDSIZ="(256*1024*1024)"
# BLKDEV_IOSIZE sets the default block size used in user block
# device I/O. Note that this value will be overriden by the label
# when specifying a block device from a label with a non-0
# partition blocksize
#
# DFLTPHYS is the default maximum physical I/O transaction size
# and is used mostly by the clustering code. It must be a
# multiple of the system page size.
#
# MAXPHYS is the absolute maximum physical I/O transaction size.
# It must be a multiple of the system page size.
#
# In general you should not modify either DFLTPHYS or MAXPHYS.
# partition blocksize. The default is PAGE_SIZE.
#
options BLKDEV_IOSIZE=8192
options DFLTPHYS="(64*1024)"
options MAXPHYS="(128*1024)"
# Options for the VM subsystem
#options PQ_NOOPT # No coloring

View file

@ -94,12 +94,8 @@
#ifndef BLKDEV_IOSIZE
#define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */
#endif
#ifndef DFLTPHYS
#define DFLTPHYS (64 * 1024) /* default max raw I/O transfer size */
#endif
#ifndef MAXPHYS
#define MAXPHYS (128 * 1024) /* max raw I/O transfer size */
#endif
#define IOPAGES 2 /* pages of i/o permission bitmap */
#define UPAGES 2 /* pages of u-area */