Re: [PATCH] slabasap-mm5_A2

Ed Tomlinson
2002-09-09T21:33:44Z

Hi Andrew,

Found three oops when checking this afternoon's log. Looks like *total_scanned can
be zero...

how about;

ratio = pages > *total_scanned ? pages / (*total_scanned | 1) : 1;

Ed

> + * NOTE: for now I do this for all zones. If we find this is too
> + * aggressive on large boxes we may want to exculude ZONE_HIGHMEM
> + */
> + ratio = (pages / *total_scanned) + 1;
> + shrink_dcache_memory(ratio, gfp_mask);
> + shrink_icache_memory(ratio, gfp_mask);