/[pkg-src]/trunk/kernel26-magellan/patches-2.6.16-r12/0033-2.6.16-mm-implement-swap-prefetching-sched-batch.patch |
Annotation of /trunk/kernel26-magellan/patches-2.6.16-r12/0033-2.6.16-mm-implement-swap-prefetching-sched-batch.patch
Parent Directory | Revision Log
Revision 72 -
(hide annotations)
(download)
Mon Jun 5 09:25:38 2006 UTC (18 years, 4 months ago) by niro
File size: 3506 byte(s)
Mon Jun 5 09:25:38 2006 UTC (18 years, 4 months ago) by niro
File size: 3506 byte(s)
ver bump to 2.6.16-r12: - updated to linux-2.6.16.19 - updated to ck11
1 | niro | 72 | From akpm@osdl.org Thu May 11 16:09:29 2006 |
2 | Return-Path: <akpm@osdl.org> | ||
3 | X-Original-To: kernel@kolivas.org | ||
4 | Delivered-To: kernel@kolivas.org | ||
5 | Received: from bhhdoa.org.au (bhhdoa.org.au [65.98.99.88]) | ||
6 | by mail.kolivas.org (Postfix) with ESMTP id CB51FC5CF4 | ||
7 | for <kernel@kolivas.org>; Thu, 11 May 2006 16:12:18 +1000 (EST) | ||
8 | Received: from smtp.osdl.org (smtp.osdl.org [65.172.181.4]) | ||
9 | by bhhdoa.org.au (Postfix) with ESMTP id 5ECD0516E6 | ||
10 | for <kernel@kolivas.org>; Thu, 11 May 2006 14:06:35 +1000 (EST) | ||
11 | Received: from shell0.pdx.osdl.net (fw.osdl.org [65.172.181.6]) | ||
12 | by smtp.osdl.org (8.12.8/8.12.8) with ESMTP id k4B6CFtH002262 | ||
13 | (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); | ||
14 | Wed, 10 May 2006 23:12:16 -0700 | ||
15 | Received: from localhost.localdomain (shell0.pdx.osdl.net [10.9.0.31]) | ||
16 | by shell0.pdx.osdl.net (8.13.1/8.11.6) with ESMTP id k4B6CFPG005351; | ||
17 | Wed, 10 May 2006 23:12:15 -0700 | ||
18 | Message-Id: <200605110612.k4B6CFPG005351@shell0.pdx.osdl.net> | ||
19 | Subject: + mm-implement-swap-prefetching-sched-batch.patch added to -mm tree | ||
20 | To: kernel@kolivas.org, | ||
21 | mm-commits@vger.kernel.org | ||
22 | From: akpm@osdl.org | ||
23 | Date: Wed, 10 May 2006 23:09:29 -0700 | ||
24 | X-Spam-Status: No, hits=1.088 required=5 tests=NO_REAL_NAME | ||
25 | X-Spam-Level: * | ||
26 | X-Spam-Checker-Version: SpamAssassin 2.63-osdl_revision__1.74__ | ||
27 | X-MIMEDefang-Filter: osdl$Revision: 1.1 $ | ||
28 | X-Scanned-By: MIMEDefang 2.36 | ||
29 | X-DSPAM-Result: Whitelisted | ||
30 | X-DSPAM-Confidence: 0.9997 | ||
31 | X-DSPAM-Probability: 0.0000 | ||
32 | X-DSPAM-Signature: 4462d5c3152591063112884 | ||
33 | X-DSPAM-Factors: 27, | ||
34 | prefetch+static, 0.00010, | ||
35 | sched+param, 0.00010, | ||
36 | current+Set, 0.00010, | ||
37 | sched+add, 0.00010, | ||
38 | sched+add, 0.00010, | ||
39 | weighted+cpu, 0.00010, | ||
40 | CLASS+IDLE, 0.00010, | ||
41 | devel+mm, 0.00010, | ||
42 | add+above, 0.00010, | ||
43 | scheduling+policy, 0.00010, | ||
44 | sched+store, 0.00010, | ||
45 | prevent+high, 0.00010, | ||
46 | shrinker, 0.00010, | ||
47 | high+load, 0.00010, | ||
48 | sched+batch, 0.00010, | ||
49 | sched+batch, 0.00010, | ||
50 | scheduler+sys, 0.00010, | ||
51 | implement+smpnice, 0.00010, | ||
52 | setscheduler, 0.00010, | ||
53 | lowest+if, 0.00010, | ||
54 | suppressing, 0.00010, | ||
55 | sched+prevent, 0.00010, | ||
56 | store+weighted, 0.00010, | ||
57 | sched+setscheduler, 0.00010, | ||
58 | See+to, 0.00010, | ||
59 | stability+of, 0.00010, | ||
60 | to+lowest, 0.00010 | ||
61 | X-Length: 4065 | ||
62 | X-KMail-EncryptionState: | ||
63 | X-KMail-SignatureState: | ||
64 | X-KMail-MDN-Sent: | ||
65 | X-UID: 10562 | ||
66 | Status: RO | ||
67 | X-Status: OC | ||
68 | |||
69 | |||
70 | The patch titled | ||
71 | |||
72 | mm: swap prefetch sched batch | ||
73 | |||
74 | has been added to the -mm tree. Its filename is | ||
75 | |||
76 | mm-implement-swap-prefetching-sched-batch.patch | ||
77 | |||
78 | See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find | ||
79 | out what to do about this | ||
80 | |||
81 | |||
82 | From: Con Kolivas <kernel@kolivas.org> | ||
83 | |||
84 | kprefetchd is a latency insensitive ultra low priority task. Set it to | ||
85 | SCHED_BATCH to obtain the benefit of this scheduling policy hint. | ||
86 | |||
87 | Signed-off-by: Con Kolivas <kernel@kolivas.org> | ||
88 | Signed-off-by: Andrew Morton <akpm@osdl.org> | ||
89 | --- | ||
90 | |||
91 | mm/swap_prefetch.c | 3 +++ | ||
92 | 1 files changed, 3 insertions(+) | ||
93 | |||
94 | Index: linux-2.6.16-ck11/mm/swap_prefetch.c | ||
95 | =================================================================== | ||
96 | --- linux-2.6.16-ck11.orig/mm/swap_prefetch.c 2006-05-21 12:20:18.000000000 +1000 | ||
97 | +++ linux-2.6.16-ck11/mm/swap_prefetch.c 2006-05-21 12:24:07.000000000 +1000 | ||
98 | @@ -549,6 +549,9 @@ static enum trickle_return trickle_swap( | ||
99 | |||
100 | static int kprefetchd(void *__unused) | ||
101 | { | ||
102 | + struct sched_param param = { .sched_priority = 0 }; | ||
103 | + | ||
104 | + sched_setscheduler(current, SCHED_BATCH, ¶m); | ||
105 | set_user_nice(current, 19); | ||
106 | /* Set ioprio to lowest if supported by i/o scheduler */ | ||
107 | sys_ioprio_set(IOPRIO_WHO_PROCESS, 0, IOPRIO_CLASS_IDLE); |