[...]
> Here my new kswapd against pre-2.1.127-2. Tried it and kswapd works
> properly now (and now I can restore the system fine via SysRQ).
>
> Index: mm/vmscan.c
> ===================================================================
> RCS file: /var/cvs/linux/mm/vmscan.c,v
> retrieving revision 1.1.1.5
> diff -u -r1.1.1.5 vmscan.c
> --- vmscan.c 1998/10/27 07:42:59 1.1.1.5
> +++ linux/mm/vmscan.c 1998/10/27 08:19:30
> @@ -495,6 +495,30 @@
> printk ("Starting kswapd v%.*s\n", i, s);
> }
>
> +#define kswapd_renice(freemem) \
> + (kswapd_task->priority = kswapd_priority(freemem))
> +
> +#define kswapd_done(freemem)
> \
> + (freemem == 2 && buffer_under_max() && pgcache_under_max())
> +
> +#define kswapd_schedule() \
> + if (kswapd_task->need_resched) \
> + schedule();
Careful! Wrap this (and perhaps kswapd_renice above) in "do { ... } while(0)"
The rest, I'm just not qualified to comment on ;-)
-- Dr. Horst H. von Brand mailto:vonbrand@inf.utfsm.cl Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/