NetBSD/sys/dev/raidframe
thorpej a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
..
Makefile
raidframeio.h
raidframevar.h
rf_acctrace.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_acctrace.h
rf_alloclist.c Cleanup some whitespace that indent got wrong a long time ago. 2001-11-20 02:37:29 +00:00
rf_alloclist.h
rf_archs.h Let's not bother building a number of infrequently used RAID types. 2002-01-19 02:50:54 +00:00
rf_aselect.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_aselect.h
rf_callback.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_callback.h
rf_chaindecluster.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_chaindecluster.h
rf_copyback.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
rf_copyback.h
rf_cvscan.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_cvscan.h
rf_dag.h
rf_dagdegrd.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_dagdegrd.h
rf_dagdegwr.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_dagdegwr.h
rf_dagffrd.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_dagffrd.h
rf_dagffwr.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_dagffwr.h
rf_dagflags.h
rf_dagfuncs.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_dagfuncs.h
rf_dagutils.c Correct misspellings of "failed". 2002-03-04 01:38:31 +00:00
rf_dagutils.h
rf_debugMem.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_debugMem.h
rf_debugprint.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_debugprint.h
rf_decluster.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_decluster.h
rf_declusterPQ.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_declusterPQ.h
rf_desc.h
rf_diskqueue.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_diskqueue.h
rf_disks.c don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
rf_disks.h
rf_driver.c #if 0 rf_SetReconfiguredMode() since it is unused now, but may be 2002-01-07 01:58:03 +00:00
rf_driver.h #if 0 rf_SetReconfiguredMode() since it is unused now, but may be 2002-01-07 01:58:03 +00:00
rf_engine.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_engine.h
rf_etimer.h
rf_evenodd.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_evenodd.h
rf_evenodd_dagfuncs.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_evenodd_dagfuncs.h
rf_evenodd_dags.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_evenodd_dags.h
rf_fifo.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_fifo.h
rf_freelist.h
rf_general.h
rf_geniq.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_hist.h
rf_interdecluster.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_interdecluster.h
rf_invertq.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_invertq.h
rf_kintf.h
rf_layout.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_layout.h More #if 0's bite the dust. 2001-10-05 15:41:23 +00:00
rf_map.c Revert previous. Need to be more careful with what gets chopped out. 2002-01-07 05:30:53 +00:00
rf_map.h
rf_mcpair.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_mcpair.h
rf_memchunk.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_memchunk.h
rf_netbsd.h
rf_netbsdkintf.c Pool deals fairly well with physical memory shortage, but it doesn't 2002-03-08 20:48:27 +00:00
rf_nwayxor.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_nwayxor.h
rf_options.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_options.h
rf_optnames.h
rf_paritylog.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_paritylog.h
rf_paritylogDiskMgr.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_paritylogDiskMgr.h
rf_paritylogging.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_paritylogging.h
rf_parityloggingdags.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_parityloggingdags.h
rf_parityscan.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_parityscan.h
rf_pq.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_pq.h
rf_pqdeg.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_pqdeg.h
rf_pqdegdags.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_pqdegdags.h
rf_psstatus.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_psstatus.h
rf_raid.h
rf_raid0.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid0.h
rf_raid1.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid1.h
rf_raid4.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid4.h
rf_raid5.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid5.h
rf_raid5_rotatedspare.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid5_rotatedspare.h
rf_reconbuffer.c Move a bunch of debugging stuff to be only used if DEBUG is turned on. 2002-01-09 03:10:19 +00:00
rf_reconbuffer.h
rf_reconmap.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_reconmap.h
rf_reconstruct.c Move a bunch of debugging stuff to be only used if DEBUG is turned on. 2002-01-09 03:10:19 +00:00
rf_reconstruct.h
rf_reconutil.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_reconutil.h
rf_revent.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_revent.h
rf_shutdown.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_shutdown.h
rf_sstf.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_sstf.h
rf_states.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_states.h
rf_stripelocks.c Bah.. Not sure how those ";"'s got missed :-( 2002-01-19 22:20:48 +00:00
rf_stripelocks.h
rf_strutils.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_threadstuff.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_threadstuff.h
rf_utils.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_utils.h