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 Setup installation mechanism for <dev/raidframe/raidframevar.h> and 2001-10-04 16:04:16 +00:00
raidframeio.h Step 1 of the disentangling of RAIDframe's .h files: 2001-10-04 15:43:57 +00:00
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 Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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 Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_callback.c
rf_callback.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_chaindecluster.c
rf_chaindecluster.h Clean up some INDENT warnings. (yes, these have been there for a while!) 2001-01-26 04:14:14 +00:00
rf_copyback.c
rf_copyback.h
rf_cvscan.c
rf_cvscan.h Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_dag.h
rf_dagdegrd.c
rf_dagdegrd.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_dagdegwr.c
rf_dagdegwr.h Cleanup a bit. 1999-08-15 02:36:03 +00:00
rf_dagffrd.c
rf_dagffrd.h
rf_dagffwr.c
rf_dagffwr.h
rf_dagflags.h
rf_dagfuncs.c
rf_dagfuncs.h Nuke 'register' from some function prototypes. 2000-03-30 13:39:07 +00:00
rf_dagutils.c Correct misspellings of "failed". 2002-03-04 01:38:31 +00:00
rf_dagutils.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_debugMem.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_debugMem.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_debugprint.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_debugprint.h Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_decluster.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_decluster.h
rf_declusterPQ.c
rf_declusterPQ.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_desc.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_diskqueue.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_diskqueue.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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
rf_driver.h
rf_engine.c
rf_engine.h
rf_etimer.h
rf_evenodd_dagfuncs.c
rf_evenodd_dagfuncs.h Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_evenodd_dags.c
rf_evenodd_dags.h
rf_evenodd.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_evenodd.h
rf_fifo.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_fifo.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_freelist.h
rf_general.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_geniq.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_hist.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_interdecluster.c
rf_interdecluster.h
rf_invertq.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_invertq.h
rf_kintf.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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
rf_map.h
rf_mcpair.c
rf_mcpair.h
rf_memchunk.c
rf_memchunk.h
rf_netbsd.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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
rf_nwayxor.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_options.c
rf_options.h
rf_optnames.h
rf_paritylog.c
rf_paritylog.h
rf_paritylogDiskMgr.c
rf_paritylogDiskMgr.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_paritylogging.c
rf_paritylogging.h Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_parityloggingdags.c
rf_parityloggingdags.h
rf_parityscan.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_parityscan.h
rf_pq.c
rf_pq.h
rf_pqdeg.c
rf_pqdeg.h
rf_pqdegdags.c
rf_pqdegdags.h
rf_psstatus.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_psstatus.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_raid0.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid0.h
rf_raid1.c
rf_raid1.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_raid4.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_raid4.h Phase 2 of the RAIDframe cleanup. The source is now closer to KNF 1999-02-05 00:06:06 +00:00
rf_raid5_rotatedspare.c
rf_raid5_rotatedspare.h
rf_raid5.c
rf_raid5.h
rf_raid.h
rf_reconbuffer.c
rf_reconbuffer.h
rf_reconmap.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_reconmap.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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 Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_reconutil.c
rf_reconutil.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_revent.c
rf_revent.h
rf_shutdown.c
rf_shutdown.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_sstf.c add RCSIDs 2001-11-13 07:11:12 +00:00
rf_sstf.h
rf_states.c
rf_states.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
rf_stripelocks.c Bah.. Not sure how those ";"'s got missed :-( 2002-01-19 22:20:48 +00:00
rf_stripelocks.h Step 2 of the disentanglement. We now look to <dev/raidframe/*> for 2001-10-04 15:58:51 +00:00
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