Re: [PATCH] fix free swap cache latency
From: Andrew Morton
Date: Thu Mar 16 2006 - 20:33:15 EST
Hugh Dickins <hugh@xxxxxxxxxxx> wrote:
>
> (*zap_work)--;
> continue;
> }
> +
> + (*zap_work) -= PAGE_SIZE;
Sometimes we subtract 1 from zap_work, sometimes PAGE_SIZE. It's in units
of bytes, so PAGE_SIZE is correct. Although it would make sense to
redefine it to be in units of PAGE_SIZE. What's up with that?
Even better, define it in units of "approximate number of touched
cachelines". After all, it is a sort-of-time-based thing.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/