v2.6.22.1-rt5
Subsystems (2)
we are pleased to announce the v2.6.22.1-rt5 kernel (collected and assembled by Thomas), which can be downloaded from the usual place:
http://redhat.com/~mingo/realtime-preempt/
more info about the -rt patchset can be found in the RT wiki:
Changes since -rt4:
- MM fix: PCP pages locking (Peter Zijlstra)
- yield() fix: remove stale RCU-unlock (Daniel Walker)
- dont do check_pgt_cache() in idle (found by Daniel Walker)
- moved 8 patches, created 6 new patches out of larger patches to make the -rt queue more bisectable (Daniel Walker)
- cleanup (Daniel Walker)
- fix the latency tracer under paravirt
to build a 2.6.22.1-rt5 tree, the following patches should be applied:
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.1.tar.bz2
http://redhat.com/~mingo/realtime-preempt/patch-2.6.22.1-rt5
Ingo
Quoted 24 lines · Ingo Molnar
we are pleased to announce the v2.6.22.1-rt5 kernel (collected and assembled by Thomas), which can be downloaded from the usual place:
http://redhat.com/~mingo/realtime-preempt/
more info about the -rt patchset can be found in the RT wiki:
Changes since -rt4:
- MM fix: PCP pages locking (Peter Zijlstra)
-
yield()fix: remove stale RCU-unlock (Daniel Walker)- dont do
check_pgt_cache()in idle (found by Daniel Walker)- moved 8 patches, created 6 new patches out of larger patches to make the -rt queue more bisectable (Daniel Walker)
- cleanup (Daniel Walker)
- fix the latency tracer under paravirt
Quoted 7 lines
to build a 2.6.22.1-rt5 tree, the following patches should be applied:
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.1.tar.bz2
http://redhat.com/~mingo/realtime-preempt/patch-2.6.22.1-rt5Ingo
-
Maybe I was too quick, but make all on is failing here:
...
In file included from arch/i386/mm/pgtable.c:16:include/linux/quicklist.h: In function ‘quicklist_alloc’:include/linux/quicklist.h:50: warning: unused variable ‘q’ include/linux/quicklist.h: In function ‘__quicklist_free’:include/linux/quicklist.h:79: error: ‘per_cpu__quicklist’ undeclared (first use in this function)include/linux/quicklist.h:79: error: (Each undeclared identifier is reported only onceinclude/linux/quicklist.h:79: error: for each function it appears in.) include/linux/quicklist.h:79: warning: type defaults to ‘int’ in declaration of ‘type name’include/linux/quicklist.h:79: error: invalid type argument of ‘unary *’ make[1]: *** [arch/i386/mm/pgtable.o] Error 1
make: *** [arch/i386/mm] Error 2
...
.config is from previous -rt4:
http://www.rncbc.org/datahub/config-2.6.22.1-rt4.0
Bye now.
Signature · 2 lines
rncbc aka Rui Nuno Capela [email protected]
Quoted 35 lines · Rui Nuno Capela
Quoted 24 lines · Ingo Molnar
we are pleased to announce the v2.6.22.1-rt5 kernel (collected and assembled by Thomas), which can be downloaded from the usual place:
http://redhat.com/~mingo/realtime-preempt/
more info about the -rt patchset can be found in the RT wiki:
Changes since -rt4:
- MM fix: PCP pages locking (Peter Zijlstra)
-
yield()fix: remove stale RCU-unlock (Daniel Walker)- dont do
check_pgt_cache()in idle (found by Daniel Walker)- moved 8 patches, created 6 new patches out of larger patches to make the -rt queue more bisectable (Daniel Walker)
- cleanup (Daniel Walker)
- fix the latency tracer under paravirt
Quoted 7 lines
to build a 2.6.22.1-rt5 tree, the following patches should be applied:
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.22.1.tar.bz2
http://redhat.com/~mingo/realtime-preempt/patch-2.6.22.1-rt5Ingo
-Maybe I was too quick, but
make allon is failing here:
Quoted 15 lines
...
In file included fromarch/i386/mm/pgtable.c:16:include/linux/quicklist.h: In function ‘quicklist_alloc’:include/linux/quicklist.h:50: warning: unused variable ‘q’include/linux/quicklist.h: In function ‘__quicklist_free’:include/linux/quicklist.h:79: error: ‘per_cpu__quicklist’ undeclared (first use in this function)include/linux/quicklist.h:79: error: (Each undeclared identifier is reported only onceinclude/linux/quicklist.h:79: error: for each function it appears in.)include/linux/quicklist.h:79: warning: type defaults to ‘int’ in declaration of ‘type name’include/linux/quicklist.h:79: error: invalid type argument of ‘unary *’ make[1]: *** [arch/i386/mm/pgtable.o] Error 1
make: *** [arch/i386/mm] Error 2
Yeah, the quicklist patch wasn't fully tested .. The delta patch below is what I had to change to get it working ..
include/linux/quicklist.h +3 -3
@@ -47,7 +47,6 @@static inline void *quicklist_alloc (int nr,gfp_t flags,void (*ctor)(void *)) { -struct quicklist *q;void **p =NULL ;int cpu;
@@ -66,6 +65,7 @@static inline void __quicklist_free (int nr,void (*dtor)(void *),void *p,struct page *page) { +int cpu;struct quicklist *q;int nid =page_to_nid (page);
@@ -76,11 +76,11 @@return ; } - q = &get_cpu_var (quicklist)[nr]; + q = &get_cpu_var_locked (quicklist, &cpu)[nr]; *(void **)p = q->page; q->page = p; q->nr_pages++; -put_cpu_var (quicklist); +put_cpu_var_locked (quicklist, cpu); }static inline void quicklist_free (int nr,void (*dtor)(void *),void *pp)
mm/quicklist.c +1 -1
@@ -80,7 +80,7 @@struct quicklist *ql, *q;for_each_online_cpu (cpu) { - ql =per_cpu (quicklist, cpu); + ql =per_cpu_var_locked (quicklist, cpu);for (q = ql; q < ql +CONFIG_NR_QUICK ; q++) count += q->nr_pages; }
Quoted 2 lines · Daniel Walker
Yeah, the quicklist patch wasn't fully tested .. The delta patch below is what I had to change to get it working ..
My bad. I pushed the wrong queue to Ingo.
-ENOTENOUGHSLEEP
This is the delta. We'll do a -rt6 tomorrow morning.
tglx
arch/i386/kernel/hpet.c +0 -1
@@ -9,7 +9,6 @@#include <linux/pm.h> #include <asm/fixmap.h> -#include <asm/i8253.h> #include <asm/hpet.h> #include <asm/i8253.h> #include <asm/io.h>
arch/i386/kernel/process.c +0 -1
@@ -189,7 +189,6 @@ void cpu_idle(void)tick_nohz_stop_sched_tick (); -check_pgt_cache ();rmb (); idle = pm_idle;
include/asm-generic/bug.h +0 -12
@@ -92,16 +92,4 @@ struct bug_entry {# define WARN_ON_NONRT (condition) WARN_ON(condition)#endif -#ifdef CONFIG_PREEMPT_RT -# define BUG_ON_RT (c) BUG_ON(c) -# define BUG_ON_NONRT (c) do { } while (0) -# define WARN_ON_RT (condition) WARN_ON(condition) -# define WARN_ON_NONRT (condition) do { } while (0) -#else -# define BUG_ON_RT (c) do { } while (0) -# define BUG_ON_NONRT (c) BUG_ON(c) -# define WARN_ON_RT (condition) do { } while (0) -# define WARN_ON_NONRT (condition) WARN_ON(condition) -#endif -#endif
kernel/sched.c +0 -1
@@ -4924,7 +4924,6 @@ asmlinkage long sys_sched_yield(void)* no need to preempt or enable interrupts: */ spin_unlock_no_resched (&rq->lock); -rcu_read_unlock ();__schedule ();
kernel/softirq.c +0 -2
@@ -102,7 +102,6 @@ static void wakeup_softirqd(int softirq)if (unlikely (!tsk))return ; -#if 1 #if defined(CONFIG_PREEMPT_SOFTIRQS ) && defined(CONFIG_PREEMPT_HARDIRQS )/* * Optimization: if we are in a hardirq thread context, and
@@ -117,7 +116,6 @@ static void wakeup_softirqd(int softirq) (tsk->normal_prio == current->normal_prio)) return;#endif -#endif /* * Wake up the softirq task: */
include/linux/quicklist.h +15 -4
@@ -18,7 +18,7 @@ struct quicklist {int nr_pages; }; -DECLARE_PER_CPU(struct quicklist, quicklist)[CONFIG_NR_QUICK]; +DECLARE_PER_CPU_LOCKED(struct quicklist, quicklist)[CONFIG_NR_QUICK];/* * The two key functions quicklist_alloc and quicklist_free are inline so
@@ -30,19 +30,30 @@ DECLARE_PER_CPU(struct quicklist, quickl* The fast patch in quicklist_alloc touched only a per cpu cacheline and * the first cacheline of the page itself. There is minmal overhead involved. */ -static inline void *quicklist_alloc (int nr,gfp_t flags,void (*ctor)(void *)) +static inline void *__quicklist_alloc (int cpu,int nr,gfp_t flags,void (*ctor)(void *)) {struct quicklist *q;void **p =NULL ; - q =&get_cpu_var (quicklist)[nr]; + q = &__get_cpu_var_locked (quicklist, cpu)[nr]; p = q->page;if (likely (p)) { q->page = p[0 ]; p[0 ] =NULL ; q->nr_pages--; } -put_cpu_var (quicklist); +return p; +} + +static inline void *quicklist_alloc (int nr,gfp_t flags,void (*ctor)(void *)) +{ +struct quicklist *q; +void **p =NULL ; +int cpu; + + (void )get_cpu_var_locked (quicklist, &cpu)[nr]; + p =__quicklist_alloc (cpu, nr, flags, ctor); +put_cpu_var_locked (quicklist, cpu);if (likely (p))return p;
mm/quicklist.c +5 -4
@@ -19,7 +19,7 @@#include <linux/module.h> #include <linux/quicklist.h> -DEFINE_PER_CPU(struct quicklist, quicklist)[CONFIG_NR_QUICK]; +DEFINE_PER_CPU_LOCKED(struct quicklist, quicklist)[CONFIG_NR_QUICK];#define FRACTION_OF_NODE_MEM 16
@@ -51,8 +51,9 @@ void quicklist_trim(int nr, void (*dtor) {long pages_to_free;struct quicklist *q; +int cpu; - q = &get_cpu_var (quicklist)[nr]; + q = &get_cpu_var_locked (quicklist, &cpu)[nr];if (q->nr_pages > min_pages) { pages_to_free =min_pages_to_free (q, min_pages, max_free);
@@ -61,7 +62,7 @@ void quicklist_trim(int nr, void (*dtor)* We pass a gfp_t of 0 to quicklist_alloc here * because we will never call into the page allocator. */ -void *p =quicklist_alloc (nr,0 ,NULL ); +void *p =__quicklist_alloc (cpu, nr,0 ,NULL );if (dtor)dtor (p);
@@ -69,7 +70,7 @@ void quicklist_trim(int nr, void (*dtor) pages_to_free--; } } -put_cpu_var (quicklist); +put_cpu_var_locked (quicklist, cpu); }unsigned long quicklist_total_size (void )
Quoted 9 lines · Thomas Gleixner
Quoted 2 lines · Daniel Walker
Yeah, the quicklist patch wasn't fully tested .. The delta patch below is what I had to change to get it working ..
My bad. I pushed the wrong queue to Ingo.
-ENOTENOUGHSLEEPThis is the delta. We'll do a -rt6 tomorrow morning.
-EWAYNOTENOUGHSLEEP
I sent out the wrong delta. /me goes to sleep and fixes tomorrow.
tglx
Quoted 1 line · Rui Nuno Capela
Maybe I was too quick, but
make allon is failing here:
does -rt6 work better?
Ingo
Quoted 5 lines · Ingo Molnar
Quoted 1 line · Rui Nuno Capela
Maybe I was too quick, but
make allon is failing here:does -rt6 work better?
Hmmm, -rt6 seems to be gone... was about to download it and it dissapeared.
-- Fernando
Quoted 9 lines · Fernando Lopez-Lezcano
Quoted 5 lines · Ingo Molnar
Quoted 1 line · Rui Nuno Capela
Maybe I was too quick, but
make allon is failing here:does -rt6 work better?
Hmmm, -rt6 seems to be gone... was about to download it and it dissapeared.
Never mind, I see it migrated back to the main page. -- Fernando
Quoted 4 lines · Fernando Lopez-Lezcano
Quoted 3 lines · Fernando Lopez-Lezcano
Quoted 2 lines · Ingo Molnar
* Rui Nuno Capela <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Maybe I was too quick, but
make allon is failing here:does -rt6 work better?
Hmmm, -rt6 seems to be gone... was about to download it and it dissapeared.
Never mind, I see it migrated back to the main page.
apparently you caught that 3 seconds window where the .23-rc1-rt1 release script moved old patches into the older/ directory :-)
Ingo
Quoted 10 lines · Ingo Molnar
Quoted 8 lines · Fernando Lopez-Lezcano
Quoted 7 lines · Fernando Lopez-Lezcano
Quoted 5 lines · Ingo Molnar
Quoted 1 line · Rui Nuno Capela
Maybe I was too quick, but
make allon is failing here:does -rt6 work better?
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
Hmmm, -rt6 seems to be gone... was about to download it and it dissapeared.
Never mind, I see it migrated back to the main page.
apparently you caught that 3 seconds window where the .23-rc1-rt1 release script moved old patches into the older/ directory :-)
Yup, good timing... :-) Hard to do again... (BTW, will you keep 2.6.22.x patches going for a while?) -- Fernando
Quoted 5 lines · Fernando Lopez-Lezcano
Quoted 2 lines
apparently you caught that 3 seconds window where the .23-rc1-rt1 release script moved old patches into the older/ directory :-)
Yup, good timing... :-) Hard to do again... (BTW, will you keep 2.6.22.x patches going for a while?)
yeah, that's the plan: to keep .22-rt updated until .23 is released. (Thomas agrees with that approach too)
Ingo
Quoted 10 lines · Ingo Molnar
Quoted 5 lines · Fernando Lopez-Lezcano
Quoted 2 lines
apparently you caught that 3 seconds window where the .23-rc1-rt1 release script moved old patches into the older/ directory :-)
Yup, good timing... :-) Hard to do again... (BTW, will you keep 2.6.22.x patches going for a while?)
yeah, that's the plan: to keep .22-rt updated until .23 is released. (Thomas agrees with that approach too)
Thank you thank you to all involved! That's very good news... -- Fernando
Hi,
Quoted 1 line · Ingo Molnar
Quoted 1 line · Fernando Lopez-Lezcano
[...]
Quoted 4 lines
Quoted 1 line
(BTW, will you keep 2.6.22.x patches going for a while?)
yeah, that's the plan: to keep .22-rt updated until .23 is released. (Thomas agrees with that approach too)
When .23 will be released could you explain changes for every following -rt release in more detailed fashion, please? For whom is interested to keep .22 updated also when .23 is released.
Thanks.
Ciao,
Alessio