CVSROOT: /sources/hurd
Module name: hurd-l4
Changes by: Neal H. Walfield <neal> 08/02/15 15:44:11
Modified files:
viengoos : pager.h pager.c memory.c ChangeLog
Log message:
2008-02-15 Neal H. Walfield <[EMAIL PROTECTED]>
* pager.h: Include "memory.h", "zalloc.h", and "object.h".
(pager_collect): Take an additional argument goal and return an
integer.
(PAGER_LOW_WATER_MARK): New macro.
(PAGER_HIGH_WATER_MARK): Likewise.
(pager_collect_needed): New function.
(pager_query): Likewise.
* pager.c (LOW_WATER_MARK): Don't define.
(HIGH_WATER_MARK): Likewise.
(is_clean): New function.
(reclaim_from): New function. Broken out of pager_collect.
Correctly update statistics.
(pager_collect): Take an additional argument goal and return an
integer. Rewrite victim selection implementation.
* memory.c (memory_frame_allocate): Call page_query. If zalloc
fails, take from the available list. Add asserts. Don't clear
memory if we get memory from zalloc.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/viengoos/pager.h?cvsroot=hurd&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/viengoos/pager.c?cvsroot=hurd&r1=1.5&r2=1.6
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/viengoos/memory.c?cvsroot=hurd&r1=1.9&r2=1.10
http://cvs.savannah.gnu.org/viewcvs/hurd-l4/viengoos/ChangeLog?cvsroot=hurd&r1=1.136&r2=1.137