+ mm-implement-swap-prefetching-sched-batch.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     mm: swap prefetch sched batch

has been added to the -mm tree.  Its filename is

     mm-implement-swap-prefetching-sched-batch.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Con Kolivas <kernel@xxxxxxxxxxx>

kprefetchd is a latency insensitive ultra low priority task.  Set it to
SCHED_BATCH to obtain the benefit of this scheduling policy hint.

Signed-off-by: Con Kolivas <kernel@xxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 mm/swap_prefetch.c |    3 +++
 1 files changed, 3 insertions(+)

diff -puN mm/swap_prefetch.c~mm-implement-swap-prefetching-sched-batch mm/swap_prefetch.c
--- devel/mm/swap_prefetch.c~mm-implement-swap-prefetching-sched-batch	2006-05-10 23:09:25.000000000 -0700
+++ devel-akpm/mm/swap_prefetch.c	2006-05-10 23:09:25.000000000 -0700
@@ -505,6 +505,9 @@ static enum trickle_return trickle_swap(
 
 static int kprefetchd(void *__unused)
 {
+	struct sched_param param = { .sched_priority = 0 };
+
+	sched_setscheduler(current, SCHED_BATCH, &param);
 	set_user_nice(current, 19);
 	/* Set ioprio to lowest if supported by i/o scheduler */
 	sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE);
_

Patches currently in -mm which might be from kernel@xxxxxxxxxxx are

swsusp-rework-memory-shrinker-rev-2.patch
sched-implement-smpnice.patch
sched-store-weighted-load-on-up.patch
sched-add-discrete-weighted-cpu-load-function.patch
sched-prevent-high-load-weight-tasks-suppressing-balancing.patch
sched-improve-stability-of-smpnice-load-balancing.patch
sched-add-above-background-load-function.patch
mm-implement-swap-prefetching.patch
mm-implement-swap-prefetching-fix.patch
mm-implement-swap-prefetching-sched-batch.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux