Re: [Patch 2/8] Block I/O, swapin delays

From: Andrew Morton
Date: Thu Mar 30 2006 - 00:01:14 EST


Shailabh Nagar <nagar@xxxxxxxxxxxxxx> wrote:
>
> delayacct-blkio-swapin.patch
>
> Collect per-task block I/O delay statistics.
>
> Unlike earlier iterations of the delay accounting
> patches, now delays are only collected for the actual
> I/O waits rather than try and cover the delays seen in
> I/O submission paths.
>
> Account separately for block I/O delays
> incurred as a result of swapin page faults whose
> frequency can be affected by the task/process' rss limit.
> Hence swapin delays can act as feedback for rss limit changes
> independent of I/O priority changes.
>
> ..
>
> +#define PF_SWAPIN 0x02000000 /* I am doing a swap in */
>

Is there really no sane alternative to doing it this way?
-
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/