* [PATCH] swap prefetch: avoid repeating entry
@ 2007-03-07 7:14 Con Kolivas
2007-03-07 7:26 ` Andrew Morton
0 siblings, 1 reply; 2+ messages in thread
From: Con Kolivas @ 2007-03-07 7:14 UTC (permalink / raw)
To: Andrew Morton, linux-mm
I've been unable for 4 months to find someone to test this Andrew. I'm going
to assume it fixes the problem on numa=64 (or something like that) so please
apply it.
---
Avoid entering trickle_swap() when first initialising kprefetchd to prevent
endless loops.
Signed-off-by: Con Kolivas <kernel@kolivas.org>
---
mm/swap_prefetch.c | 4 ++++
1 file changed, 4 insertions(+)
Index: linux-2.6.21-rc2-mm2/mm/swap_prefetch.c
===================================================================
--- linux-2.6.21-rc2-mm2.orig/mm/swap_prefetch.c 2007-03-06 22:23:26.000000000 +1100
+++ linux-2.6.21-rc2-mm2/mm/swap_prefetch.c 2007-03-07 18:11:50.000000000 +1100
@@ -515,6 +515,10 @@ static int kprefetchd(void *__unused)
/* Set ioprio to lowest if supported by i/o scheduler */
sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
+ /* kprefetchd has nothing to do until it is woken up the first time */
+ set_current_state(TASK_INTERRUPTIBLE);
+ schedule();
+
do {
try_to_freeze();
--
-ck
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] swap prefetch: avoid repeating entry
2007-03-07 7:14 [PATCH] swap prefetch: avoid repeating entry Con Kolivas
@ 2007-03-07 7:26 ` Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2007-03-07 7:26 UTC (permalink / raw)
To: Con Kolivas; +Cc: linux-mm
On Wed, 7 Mar 2007 18:14:04 +1100 Con Kolivas <kernel@kolivas.org> wrote:
> I've been unable for 4 months to find someone to test this Andrew. I'm going
> to assume it fixes the problem on numa=64 (or something like that) so please
> apply it.
>
> ---
> Avoid entering trickle_swap() when first initialising kprefetchd to prevent
> endless loops.
>
> Signed-off-by: Con Kolivas <kernel@kolivas.org>
>
> ---
> mm/swap_prefetch.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> Index: linux-2.6.21-rc2-mm2/mm/swap_prefetch.c
> ===================================================================
> --- linux-2.6.21-rc2-mm2.orig/mm/swap_prefetch.c 2007-03-06 22:23:26.000000000 +1100
> +++ linux-2.6.21-rc2-mm2/mm/swap_prefetch.c 2007-03-07 18:11:50.000000000 +1100
> @@ -515,6 +515,10 @@ static int kprefetchd(void *__unused)
> /* Set ioprio to lowest if supported by i/o scheduler */
> sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
>
> + /* kprefetchd has nothing to do until it is woken up the first time */
> + set_current_state(TASK_INTERRUPTIBLE);
> + schedule();
> +
> do {
> try_to_freeze();
>
hm, yes, strange.
You can do poor-man's NUMA by setting CONFIG_NUMA_EMU and booting with
`numa=fake=16' Requires x86_64 and perhaps the fake-numa fixes in -mm.
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-07 7:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-07 7:14 [PATCH] swap prefetch: avoid repeating entry Con Kolivas
2007-03-07 7:26 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox