[PATCH 14/14] rcu: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Lockdep now has an integrated IRQs disabled/enabled sanity check. Just use it instead of the ad-hoc RCU version. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel/rcu/tree.c| 16 kernel/rcu

[PATCH 10/14] irq_work: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

[PATCH 08/14] perf: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

[PATCH 02/14] irq: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

[PATCH 05/14] hrtimer: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

[PATCH 03/14] workqueue: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney Cc: Tejun Heo

[PATCH 06/14] smp: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

[PATCH 04/14] nohz: Use lockdep to assert IRQs are disabled/enabled

2017-10-19 Thread Frederic Weisbecker
Use lockdep to check that IRQs are enabled or disabled as expected. This way the sanity check only shows overhead when concurrency correctness debug code is enabled. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Cc: Paul E. McKenney --- kernel

Re: [tip:sched/core] sched/isolation: Document the isolcpus= flags

2017-10-27 Thread Frederic Weisbecker
2017-10-27 15:58 UTC+02:00, Peter Zijlstra : > On Fri, Oct 27, 2017 at 05:06:25AM -0700, tip-bot for Frederic Weisbecker > wrote: >> +isolcpus= [KNL,SMP] Isolate a given set of CPUs from disturbance. >> +Format: [flag-list,] >> + >> +

Re: [tip:sched/core] sched/isolation: Document the isolcpus= flags

2017-10-27 Thread Frederic Weisbecker
2017-10-27 19:06 UTC+02:00, Ingo Molnar : > > * Frederic Weisbecker wrote: > >> 2017-10-27 15:58 UTC+02:00, Peter Zijlstra : >> > On Fri, Oct 27, 2017 at 05:06:25AM -0700, tip-bot for Frederic >> > Weisbecker >> > wrote: >> >> + isol

Re: [tip:sched/core] sched/isolation: Document the isolcpus= flags

2017-10-27 Thread Frederic Weisbecker
2017-10-27 20:21 UTC+02:00, Ingo Molnar : > > * Frederic Weisbecker wrote: > >> 2017-10-27 19:06 UTC+02:00, Ingo Molnar : >> > >> > * Frederic Weisbecker wrote: >> > >> >> 2017-10-27 15:58 UTC+02:00, Peter Zijlstra : >> >>

[PATCH] irq_work: Don't reinvent the wheel but use existing llist API

2017-10-30 Thread Frederic Weisbecker
From: Byungchul Park Although llist provides proper APIs, they are not used. Make them used. Signed-off-by: Byungchul Park Cc: Peter Zijlstra Signed-off-by: Frederic Weisbecker --- kernel/irq_work.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/kernel/irq_work.c b

[PATCH v7] housekeeping: Document isolcpus flags

2017-10-30 Thread Frederic Weisbecker
Document the latest updates on the isolcpus boot option. While at it, let's also fix the details about the preferred way to isolate a set of CPUs from the scheduler general domains. Cpusets offer a much better interface to achieve that. Signed-off-by: Frederic Weisbecker Cc: Chris Metcal

Re: [PATCH RESEND] sched/nohz: Affine unpinned timers to housekeepers

2015-08-28 Thread Frederic Weisbecker
On Fri, Aug 28, 2015 at 10:32:59AM +0200, Ingo Molnar wrote: > > * Frederic Weisbecker wrote: > > > On Tue, Aug 25, 2015 at 10:29:04AM +0200, Ingo Molnar wrote: > > > > > > * Frederic Weisbecker wrote: > > > > > > > On Mon, Aug 24, 20

Re: [PATCH 1/3] x86/perf/hw_breakpoint: Disallow kernel breakpoints unless kprobe-safe

2015-09-01 Thread Frederic Weisbecker
2015-08-05 1:29 GMT+02:00 平松雅巳 / HIRAMATU,MASAMI : > Hi, > >> From: Frederic Weisbecker [mailto:fweis...@gmail.com] >> >> On Thu, Jul 30, 2015 at 08:32:40PM -0700, Andy Lutomirski wrote: >> > Code on the kprobe blacklist doesn't want unexpected int3 >

[PATCH 1/2] nohz: Affine unpinned timers to housekeepers

2015-09-01 Thread Frederic Weisbecker
: Frederic Weisbecker --- include/linux/tick.h | 9 + kernel/sched/core.c | 7 +-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/include/linux/tick.h b/include/linux/tick.h index 48d901f..e312219 100644 --- a/include/linux/tick.h +++ b/include/linux/tick.h @@ -147,11 +147,20

[GIT PULL] sched/nohz: Affine unpinned timers to housekeepers

2015-09-01 Thread Frederic Weisbecker
urbed (testing showed great results). * Enforce assertion to make sure that we have housekeepers to handle unbound timers, workqueues, timekeepers. Also improve the related comments. --- Thanks, Frederic --- Frederic Weisbecker (1): nohz: Assert existing housekeepers when nohz full en

[PATCH 2/2] nohz: Assert existing housekeepers when nohz full enabled

2015-09-01 Thread Frederic Weisbecker
mprove the comments on housekeeper offlining prevention. Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Vatika Harlalka Cc: Chris Metcalf Cc: Thomas Gleixner Cc: Preeti U Murthy Cc: Christoph Lameter Cc: Paul E . McKenney Signed-off-by: Frederic Weisbecker --- kernel/time/tick-sched.c | 15

Re: [PATCH 1/2] nohz: Affine unpinned timers to housekeepers

2015-09-01 Thread Frederic Weisbecker
On Tue, Sep 01, 2015 at 07:14:13PM +, Jiang, Yunhong wrote: > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c > > index 8b864ec..0902e4d 100644 > > --- a/kernel/sched/core.c > > +++ b/kernel/sched/core.c > > @@ -623,18 +623,21 @@ int get_nohz_timer_target(void) > > int i, cpu = smp

[PATCH] nohz: Revert "nohz: Set isolcpus when nohz_full is set"

2015-10-12 Thread Frederic Weisbecker
oph Lameter Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Dave Jones Cc: Oleg Nesterov Cc: Paul E. McKenney Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Alexey Dobriyan Cc: Andrew Morton Signed-off-by: Frederic Weisbecker --- kernel/sched/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-12 Thread Frederic Weisbecker
rruth > Cc: David Ahern > Cc: Frederic Weisbecker > Cc: Jiri Olsa > Cc: Namhyung Kim > Cc: Stephane Eranian > Cc: Wang Nan > Link: https://www.youtube.com/watch?v=nXaxk27zwlk > Link: http://lkml.kernel.org/n/tip-v8lq36aispvdwgxdmt9p9...@git.kernel.org > Signed-of

Re: [PATCH] nohz: Revert "nohz: Set isolcpus when nohz_full is set"

2015-10-12 Thread Frederic Weisbecker
On Mon, Oct 12, 2015 at 08:32:02AM -0700, Paul E. McKenney wrote: > On Mon, Oct 12, 2015 at 05:21:23PM +0200, Frederic Weisbecker wrote: > > This reverts commit 8cb9764fc88b41db11f251e8b2a0d006578b7eb4. > > > > We assumed that nohz full users always want scheduler isolation

Re: [PATCH] nohz: Revert "nohz: Set isolcpus when nohz_full is set"

2015-10-12 Thread Frederic Weisbecker
On Mon, Oct 12, 2015 at 12:55:24PM -0400, Chris Metcalf wrote: > On 10/12/2015 12:53 PM, Paul E. McKenney wrote: > > Is it worth starting to think about grouping things under the > "task isolation" model somehow? "task_isolation_cpus=1-31" > or some such for this, and then that just sets up the n

Re: [PATCH v3 2/2] sched: consider missed ticks when updating global cpu load

2015-10-12 Thread Frederic Weisbecker
On Mon, Oct 05, 2015 at 10:15:55AM +0200, Peter Zijlstra wrote: > On Sun, Oct 04, 2015 at 03:58:19PM +0900, Byungchul Park wrote: > > anyway, it's wrong for update_process_times() to assume 1 tick because > > tick_irq_exit() -> tick_nohz_irq_exit() -> tick_nohz_full_update_tick() > > -> tick_nohz_r

Re: [PATCH] nohz: Revert "nohz: Set isolcpus when nohz_full is set"

2015-10-12 Thread Frederic Weisbecker
On Mon, Oct 12, 2015 at 12:45:08PM -0500, Christoph Lameter wrote: > On Mon, 12 Oct 2015, Frederic Weisbecker wrote: > > > But yeah if you guys want to create a new parameter that gathers nohz > > and isolcpus I think we can. > > Could we also add the rcu settings? Ye

Re: [PATCH] nohz: Revert "nohz: Set isolcpus when nohz_full is set"

2015-10-12 Thread Frederic Weisbecker
On Mon, Oct 12, 2015 at 10:52:08AM -0700, Paul E. McKenney wrote: > On Mon, Oct 12, 2015 at 12:45:08PM -0500, Christoph Lameter wrote: > > On Mon, 12 Oct 2015, Frederic Weisbecker wrote: > > > > > But yeah if you guys want to create a new parameter that gathers nohz >

Re: [PATCH v3 2/2] sched: consider missed ticks when updating global cpu load

2015-10-13 Thread Frederic Weisbecker
On Tue, Oct 13, 2015 at 09:04:36AM +0200, Peter Zijlstra wrote: > On Mon, Oct 12, 2015 at 07:45:35PM +0200, Frederic Weisbecker wrote: > > > I think it will take more than a single patch to rework all of > > > update_process_times(). And we should also ask Thomas for his opini

Re: [PATCH v3 2/2] sched: consider missed ticks when updating global cpu load

2015-10-13 Thread Frederic Weisbecker
On Tue, Oct 13, 2015 at 05:37:18PM +0900, Byungchul Park wrote: > > > find out the pending updates from update_process_times() itself and pass > > > it to scheduler_tick() which is the one interested in it. > > > > tick_nohz_handler() calls tick_sched_handler() ?! > > > > And tick_nohz_handler()

[Regression full nohz] [PATCH] x86: Don't call context tracking APIs on IRQs

2015-10-13 Thread Frederic Weisbecker
unning, breaking the static key optimizations. This could be optimized with pulling irq_enter/exit to low level irq code but that requires more thoughts. Signed-off-by: Frederic Weisbecker --- arch/x86/entry/common.c | 11 ++- arch/x86/entry/entry_64.S | 11 ++- 2 files ch

Re: [PATCH v2 0/4] timer: Improve itimers scalability

2015-10-15 Thread Frederic Weisbecker
On Wed, Oct 14, 2015 at 05:18:27PM -0400, George Spelvin wrote: > I'm going to give 4/4 a closer look to see if the races with timer > expiration make more sense to me than last time around. > (E.g. do CPU time signals even work in CONFIG_NO_HZ_FULL?) Those enqueued with timer_settime() do work. B

Re: [PATCH 1/1] Revert "kmod: handle UMH_WAIT_PROC from system unbound workqueue"

2015-10-15 Thread Frederic Weisbecker
On Wed, Oct 14, 2015 at 08:52:09PM +0200, Oleg Nesterov wrote: > This reverts commit bb304a5c6fc63d8506cd9741a3a5f35b73605625. > > Because this patch leads to kthread zombies. > > call_usermodehelper_exec_sync() does fork() + wait() with "unignored" > SIGCHLD. What we have missed is that this wor

Re: [PATCH 1/1] Revert "kmod: handle UMH_WAIT_PROC from system unbound workqueue"

2015-10-15 Thread Frederic Weisbecker
On Thu, Oct 15, 2015 at 05:18:19PM +0200, Oleg Nesterov wrote: > On 10/15, Frederic Weisbecker wrote: > > > > On Wed, Oct 14, 2015 at 08:52:09PM +0200, Oleg Nesterov wrote: > > > This reverts commit bb304a5c6fc63d8506cd9741a3a5f35b73605625. > > > > > > B

Re: [PATCH 0/1] kmod: don't run async usermode helper as a child of kworker thread

2015-10-15 Thread Frederic Weisbecker
On Thu, Oct 15, 2015 at 04:37:57PM +0200, Oleg Nesterov wrote: > call_usermodehelper_exec_sync() does fork() + wait() with "unignored" > SIGCHLD. What we have missed is that this worker thread can have other > children previously forked by call_usermodehelper_exec_work() without > UMH_WAIT_PROC.

Re: [PATCH 0/1] kmod: don't run async usermode helper as a child of kworker thread

2015-10-15 Thread Frederic Weisbecker
On Thu, Oct 15, 2015 at 06:32:17PM +0200, Oleg Nesterov wrote: > On 10/15, Frederic Weisbecker wrote: > > > > On Thu, Oct 15, 2015 at 04:37:57PM +0200, Oleg Nesterov wrote: > > > call_usermodehelper_exec_sync() does fork() + wait() with "unignored" > > >

Re: [Regression full nohz] [PATCH] x86: Don't call context tracking APIs on IRQs

2015-10-16 Thread Frederic Weisbecker
On Tue, Oct 13, 2015 at 09:31:14AM -0700, Andy Lutomirski wrote: > On Tue, Oct 13, 2015 at 9:01 AM, Frederic Weisbecker > wrote: > > From: Frederic Weisbecker > > Date: Sat, 3 Oct 2015 01:18:09 +0200 > > Subject: [PATCH] x86: Don't call context tracking APIs on I

Re: [Ksummit-discuss] [BELATED CORE TOPIC] context tracking / nohz / RCU state

2015-10-16 Thread Frederic Weisbecker
On Mon, Oct 12, 2015 at 01:40:05PM -0700, Paul E. McKenney wrote: > On Mon, Oct 12, 2015 at 02:40:51PM -0400, Theodore Ts'o wrote: > > This thread had fairly intense discussion for two days, but then went dead. > > > > Do folks think this is worth discussing at the kernel summit? > > I am very in

Re: [PATCH v8 08/14] nohz_full: allow disabling the 1Hz minimum tick at boot

2015-10-20 Thread Frederic Weisbecker
On Tue, Oct 20, 2015 at 04:36:06PM -0400, Chris Metcalf wrote: > While the current fallback to 1-second tick is still required for > a number of kernel accounting tasks (e.g. vruntime, load balancing > data, and load accounting), it's useful to be able to disable it > for testing purposes. Paul Mc

Re: [PATCH v8 08/14] nohz_full: allow disabling the 1Hz minimum tick at boot

2015-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2015 at 09:28:04AM -0500, Christoph Lameter wrote: > On Tue, 20 Oct 2015, Frederic Weisbecker wrote: > > > There have been proposals to disable/tune the 1 Hz tick via debugfs which > > I Nacked because once you give such an opportunity to the users, they > >

Re: [PATCH v8 04/14] task_isolation: add initial support

2015-10-21 Thread Frederic Weisbecker
On Tue, Oct 20, 2015 at 04:36:02PM -0400, Chris Metcalf wrote: > diff --git a/kernel/isolation.c b/kernel/isolation.c > new file mode 100644 > index ..9a73235db0bb > --- /dev/null > +++ b/kernel/isolation.c > @@ -0,0 +1,78 @@ > +/* > + * linux/kernel/isolation.c > + * > + * Implementa

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2015 at 02:21:12AM +, Chandler Carruth wrote: > On Tue, Oct 20, 2015 at 3:06 AM Arnaldo Carvalho de Melo < > arnaldo.m...@gmail.com> wrote: > > > > IMHO changing that order is not a good idea. Unless many users complained > > > about it. > > > > Perhaps there are not that many

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-21 Thread Frederic Weisbecker
On Wed, Oct 21, 2015 at 05:09:08PM +0900, Namhyung Kim wrote: > On Tue, Oct 20, 2015 at 07:21:16PM +0200, Frederic Weisbecker wrote: > > Well, I would prefer to hear from regular users than random twitter > > followers. > > I could be wrong so lets ask some users first. >

Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled

2015-10-22 Thread Frederic Weisbecker
On Thu, Oct 22, 2015 at 03:28:50PM +0900, Namhyung Kim wrote: > The caller callchain order is useful with --children option since it can > show 'overview' style output, but other commands which don't use > --children feature like 'perf script' or even 'perf report/top' without > --children are be

Re: [RFC/PATCH 3/3] perf tools: Defaults to 'caller' callchain order only if --children is enabled

2015-10-22 Thread Frederic Weisbecker
w 'overview' style output, but other commands which don't use > >> --children feature like 'perf script' or even 'perf report/top' without > >> --children are better to keep caller order. > > Oops, there's a typo: s/caller order/c

Re: [PATCH v4 2/2] sched: consider missed ticks in full NOHZ

2015-10-22 Thread Frederic Weisbecker
On Wed, Oct 14, 2015 at 06:47:36PM +0900, byungchul.p...@lge.com wrote: > From: Byungchul Park > > Even though the cpu is non-idle when its tick is stoped in full NOHZ, > current "update_cpu_load" code considers as if the cpu has been idle > unconditionally. It's wrong. This patch makes the "upda

Re: [PATCH 2/2] perf tools: Improve call graph documents and help messages

2015-10-22 Thread Frederic Weisbecker
On Thu, Oct 22, 2015 at 11:28:32PM +0900, Namhyung Kim wrote: > The --call-graph option is complex so we should provide better guide for > users. Also change help message to be consistent with config option > names. Now perf top will show help like below: > > $ perf top --call-graph > Erro

Re: Warning in irq_work_queue_on()

2015-09-02 Thread Frederic Weisbecker
On Wed, Sep 02, 2015 at 03:44:05PM -0400, Tejun Heo wrote: > (cc'ing peterz) > > Ooh, this is from irq_work which doesn't have much to do with > workqueue. Peter? > > On Mon, Aug 24, 2015 at 05:16:11PM -0700, Paul E. McKenney wrote: > > Hello, Tejun, > > > > As discussed last week, I am getting

Re: Warning in irq_work_queue_on()

2015-09-02 Thread Frederic Weisbecker
On Thu, Sep 03, 2015 at 12:24:27AM +0200, Peter Zijlstra wrote: > On Wed, Sep 02, 2015 at 11:50:22PM +0200, Frederic Weisbecker wrote: > > > > [ 875.703227] [] tick_nohz_full_kick_cpu+0x44/0x50 > > > > It happens in nohz full, but I'm not sure the guilty is nohz

Re: Warning in irq_work_queue_on()

2015-09-04 Thread Frederic Weisbecker
On Thu, Sep 03, 2015 at 09:58:40AM +0200, Peter Zijlstra wrote: > On Thu, Sep 03, 2015 at 02:03:51AM +0200, Frederic Weisbecker wrote: > > On Thu, Sep 03, 2015 at 12:24:27AM +0200, Peter Zijlstra wrote: > > > On Wed, Sep 02, 2015 at 11:50:22PM +0200, Frederi

Re: [PATCH 1/2] nohz: Affine unpinned timers to housekeepers

2015-09-04 Thread Frederic Weisbecker
On Fri, Sep 04, 2015 at 11:56:33AM -0400, Luiz Capitulino wrote: > On Tue, 1 Sep 2015 22:47:24 +0200 > Frederic Weisbecker wrote: > > > On Tue, Sep 01, 2015 at 07:14:13PM +, Jiang, Yunhong wrote: > > > > diff --git a/kernel/sched/core.c b/kernel/sched/core.c >

Re: [Ksummit-discuss] [BELATED CORE TOPIC] context tracking / nohz / RCU state

2015-10-19 Thread Frederic Weisbecker
On Sat, Oct 17, 2015 at 03:45:00PM -0400, Theodore Ts'o wrote: > On Fri, Oct 16, 2015 at 07:02:58PM +0200, Frederic Weisbecker wrote: > > On Mon, Oct 12, 2015 at 01:40:05PM -0700, Paul E. McKenney wrote: > > > On Mon, Oct 12, 2015 at 02:40:51PM -0400, Theodore Ts'o wr

Re: [PATCH] rcu: remove rcu_user_hooks_switch

2015-10-19 Thread Frederic Weisbecker
On Mon, Oct 19, 2015 at 03:59:07PM -0700, Paul E. McKenney wrote: > On Mon, Oct 19, 2015 at 02:45:02PM -0700, Yang Shi wrote: > > It is not invoked by anyone now, just remove it. > > > > Signed-off-by: Yang Shi > > We should check with Frederic -- any plans to use this, Frederic? > It was last t

[PATCH] posix-cpu-timers: Merge running and checking_timer state in one field

2015-10-19 Thread Frederic Weisbecker
Peter Zijlstra Cc: Ingo Molnar Cc: Thomas Gleixner Signed-off-by: Frederic Weisbecker --- include/linux/init_task.h | 3 +-- include/linux/sched.h | 19 +++ kernel/fork.c | 2 +- kernel/sched/stats.h | 2 +- kernel/time/posix-cpu-tim

Re: [PATCH] posix-cpu-timers: Merge running and checking_timer state in one field

2015-10-19 Thread Frederic Weisbecker
On Mon, Oct 19, 2015 at 05:41:08PM -0700, Davidlohr Bueso wrote: > On Tue, 20 Oct 2015, Frederic Weisbecker wrote: > > >- * @checking_timer: true when a thread in the group is in the > >- * process of checking for thread group timers. > >- * >

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-20 Thread Frederic Weisbecker
On Tue, Oct 20, 2015 at 09:00:34AM -0300, Arnaldo Carvalho de Melo wrote: > Em Mon, Oct 19, 2015 at 05:16:53PM -0700, Brendan Gregg escreveu: > So are you advocating different defaults, one for --stdio (callee), > another for --tui, --gtk (caller)? > > This is all configurable via ~/.perfconfig :-

Re: [PATCH 13/16] perf callchain: Switch default to 'graph,0.5,caller'

2015-10-20 Thread Frederic Weisbecker
On Tue, Oct 20, 2015 at 10:06:51AM -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Oct 20, 2015 at 02:19:50PM +0200, Frederic Weisbecker escreveu: > > On Tue, Oct 20, 2015 at 09:00:34AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Mon, Oct 19, 2015 at 05:16:53PM -0700, Bren

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-22 Thread Frederic Weisbecker
On Thu, Oct 22, 2015 at 04:31:44PM -0400, Chris Metcalf wrote: > On 10/21/2015 08:39 AM, Peter Zijlstra wrote: > >Can you *please* start a new thread with each posting? > > > >This is absolutely unmanageable. > > I've been explicitly threading the multiple patch series on purpose > due to this tex

Re: [PATCH v8 00/14] support "task_isolation" mode for nohz_full

2015-10-23 Thread Frederic Weisbecker
On Fri, Oct 23, 2015 at 10:49:51AM +0200, Peter Zijlstra wrote: > On Fri, Oct 23, 2015 at 04:33:02AM +0200, Frederic Weisbecker wrote: > > I personally (and I think this is the general LKML behaviour) use > > in-reply-to > > when I post a single patch that is a fix

Re: [PATCH v7 02/11] task_isolation: add initial support

2015-10-01 Thread Frederic Weisbecker
On Mon, Sep 28, 2015 at 11:17:17AM -0400, Chris Metcalf wrote: > diff --git a/include/linux/isolation.h b/include/linux/isolation.h > new file mode 100644 > index ..fd04011b1c1e > --- /dev/null > +++ b/include/linux/isolation.h > @@ -0,0 +1,24 @@ > +/* > + * Task isolation related globa

Re: [PATCH v7 02/11] task_isolation: add initial support

2015-10-01 Thread Frederic Weisbecker
On Thu, Oct 01, 2015 at 02:18:42PM +0200, Thomas Gleixner wrote: > On Thu, 1 Oct 2015, Frederic Weisbecker wrote: > > On Mon, Sep 28, 2015 at 11:17:17AM -0400, Chris Metcalf wrote: > > > + > > > + while (READ_ONCE(dev->next_event.tv64) != KTIME_MAX) { > > &

Re: [PATCH v7 06/11] nohz: task_isolation: allow tick to be fully disabled

2015-10-01 Thread Frederic Weisbecker
t; without this commit it won't be possible to use the task_isolation > > mode at all. > > > > Removing the 1-second cap was previously discussed (see link > > below) and Thomas Gleixner observed that vruntime, load balancing > > data, load accounting, and other t

Re: [PATCH v2 01/12] sched: Simplify INIT_PREEMPT_COUNT

2015-10-01 Thread Frederic Weisbecker
gt; > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Frederic Weisbecker -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v2 06/12] sched: Stop setting PREEMPT_ACTIVE

2015-10-01 Thread Frederic Weisbecker
On Wed, Sep 30, 2015 at 09:10:41AM +0200, Peter Zijlstra wrote: > Now that nothing tests for PREEMPT_ACTIVE anymore, stop setting it. > > Reviewed-by: Thomas Gleixner > Reviewed-by: Steven Rostedt > Signed-off-by: Peter Zijlstra (Intel) Great news! Reviewed-by: Frederic We

Re: [PATCH v2 08/12] sched: Simplify preempt_count tests

2015-10-01 Thread Frederic Weisbecker
On Wed, Sep 30, 2015 at 09:10:43AM +0200, Peter Zijlstra wrote: > Since we stopped setting PREEMPT_ACTIVE, there is no need to mask it > out of preempt_count() tests. > > Reviewed-by: Thomas Gleixner > Reviewed-by: Steven Rostedt > Signed-off-by: Peter Zijlstra (Intel) Rev

Re: [PATCH v2 09/12] sched, x86: Kill saved_preempt_count

2015-10-01 Thread Frederic Weisbecker
Thomas Gleixner > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Frederic Weisbecker Good news as well. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.or

Re: [PATCH v2 10/12] sched: Kill PREEMPT_ACTIVE

2015-10-01 Thread Frederic Weisbecker
On Wed, Sep 30, 2015 at 09:10:45AM +0200, Peter Zijlstra wrote: > Its unused, kill the definition. > > Reviewed-by: Thomas Gleixner > Reviewed-by: Steven Rostedt > Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Frederic Weisbecker -- To unsubscribe from this list

Re: 4.2.2: NR_CPUS effectively being 1 bug

2015-10-03 Thread Frederic Weisbecker
On Sat, Oct 03, 2015 at 02:04:44PM +0200, Mike Galbraith wrote: > On Sat, 2015-10-03 at 10:52 +0200, Ingo Molnar wrote: > > Ok, looks like a patch with good intentions but bad effects. Mind sending a > > revert > > patch, changelogged, signed off? > > No. They know. The reason for this patch i

[PATCH v2] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-08-03 Thread Frederic Weisbecker
a Gleixner Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Ingo Molnar --- kernel/softirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/softirq.c b/kernel/softirq.c index 900dcfe..0980a81 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -386,7 +386,7

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-08-27 Thread Frederic Weisbecker
On Fri, Aug 24, 2018 at 07:06:32PM +0200, Heiner Kallweit wrote: > On 24.08.2018 16:30, Frederic Weisbecker wrote: > >> Can you try the one I posted in this thread: > >> > >> > >> https://lkml.kernel.org/r/alpine.deb.2.21.1808240851420.1...@nanos.tec

Re: [PATCH stable] tick/nohz: Prevent bogus softirq pending warning

2018-08-30 Thread Frederic Weisbecker
y: Grygorii Strashko > Reported-by: John Crispin > Signed-off-by: Thomas Gleixner > Tested-by: Grygorii Strashko > Tested-by: John Crispin Acked-by: Frederic Weisbecker Thanks for cooking the patch!

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-08-23 Thread Frederic Weisbecker
On Thu, Aug 16, 2018 at 08:13:03AM +0200, Heiner Kallweit wrote: > Recently I started to get warning "NOHZ: local_softirq_pending 202" and > I think it's related to mentioned commit (didn't bisect it yet). > See log from suspending. > > I have no reason to think the fix is wrong, it may just have

Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-08-24 Thread Frederic Weisbecker
On Fri, Aug 24, 2018 at 09:01:02AM +0200, Thomas Gleixner wrote: > On Fri, 24 Aug 2018, Greg KH wrote: > > On Thu, Aug 23, 2018 at 05:57:06PM -0500, Grygorii Strashko wrote: > > > This patch was back ported to the Stable linux-4.14.y and It causes > > > regression - > > > flood of "NOHZ: local_so

Re: Fix 80d20d35af1e ("nohz: Fix local_timer_softirq_pending()") may have revealed another problem

2018-08-24 Thread Frederic Weisbecker
On Fri, Aug 24, 2018 at 10:01:35AM +0200, Thomas Gleixner wrote: > On Fri, 24 Aug 2018, Heiner Kallweit wrote: > > On 24.08.2018 06:12, Frederic Weisbecker wrote: > > > On Thu, Aug 16, 2018 at 08:13:03AM +0200, Heiner Kallweit wrote: > > >> Recently

Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-08-24 Thread Frederic Weisbecker
On Fri, Aug 24, 2018 at 11:10:44AM -0500, Grygorii Strashko wrote: > Yes. i do not see local_softirq_pending messages any more > > But one question, just to clarify, after patch "nohz: Fix missing tick reprog > while interrupting inline timer softirq" > the tick_nohz_irq_exit() will be called few

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-18 Thread Frederic Weisbecker
On Wed, Jul 18, 2018 at 01:17:00PM -0700, Paul E. McKenney wrote: > On Wed, Jul 18, 2018 at 09:41:05PM +0200, David Woodhouse wrote: > > > > > > On Wed, 2018-07-18 at 09:37 -0700, Paul E. McKenney wrote: > > > On Wed, Jul 18, 2018 at 06:01:51PM +0200, David Woodhouse wrote: > > > > > > > > On We

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-18 Thread Frederic Weisbecker
On Wed, Jul 11, 2018 at 06:03:42PM +0100, David Woodhouse wrote: > On Wed, 2018-07-11 at 09:49 -0700, Paul E. McKenney wrote: > > And here is an updated v4.15 patch with Marius's Reported-by and David's > > fix to my lost exclamation point. > > Thanks. Are you sending the original version of that

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Thu, Jul 19, 2018 at 09:20:33AM +0200, David Woodhouse wrote: > On Thu, 2018-07-19 at 08:45 +0200, Christian Borntraeger wrote: > > > > > My thought would be something like this: > > >  > > >   if (context_tracking_cpu_is_enabled()) > > >   rcu_kvm_enter(); > > >   else > >

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Wed, Jul 18, 2018 at 08:11:52PM -0700, Paul E. McKenney wrote: > On Thu, Jul 19, 2018 at 02:32:06AM +0200, Frederic Weisbecker wrote: > > On Wed, Jul 11, 2018 at 06:03:42PM +0100, David Woodhouse wrote: > > > On Wed, 2018-07-11 at 09:49 -0700, Paul E. McKenney wrote: >

Re: [RFC] Make need_resched() return true when rcu_urgent_qs requested

2018-07-19 Thread Frederic Weisbecker
On Thu, Jul 19, 2018 at 08:16:47AM +0200, David Woodhouse wrote: > > > On Wed, 2018-07-18 at 20:11 -0700, Paul E. McKenney wrote: > > > > > That is interesting. As I replied to Paul, we are already calling > > > rcu_user_enter/exit() on guest_enter/exit_irqsoff(). So I'm wondering why > > > you'

Re: [PATCH] nohz: Fix local_timer_softirq_pending()

2018-07-31 Thread Frederic Weisbecker
So the test checks for the wrong bit. > > Use BIT(TIMER_SOFTIRQ) instead. > > Fixes: 5d62c183f9e9 ("nohz: Prevent a timer interrupt storm in > tick_nohz_stop_sched_tick()") > Signed-off-by: Anna-Maria Gleixner Acked-by: Frederic Weisbecker Thanks!

[PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-07-31 Thread Frederic Weisbecker
if we are in a hardirq interrupting softirq. We can still figure out a way later to restore this optimization while excluding inline softirq processing. Reported-by: Anna-Maria Gleixner Signed-off-by: Frederic Weisbecker Cc: Thomas Gleixner Cc: Ingo Molnar --- kernel/softirq.c | 2 +- 1

Re: [PATCH] nohz: Fix missing tick reprog while interrupting inline timer softirq

2018-08-01 Thread Frederic Weisbecker
On Wed, Aug 01, 2018 at 07:46:10PM +0200, Thomas Gleixner wrote: > On Wed, 1 Aug 2018, Frederic Weisbecker wrote: > > Before updating the full nohz tick or the idle time on IRQ exit, we > > check first if we are not in a nesting interrupt, whether the inner > > interrupt is

Re: [PATCH] nohz: don't kick non-idle CPUs in tick_nohz_full_kick_cpu()

2018-07-23 Thread Frederic Weisbecker
On Fri, Jul 20, 2018 at 07:24:00PM +0200, Thomas Gleixner wrote: > On Thu, 19 Jul 2018, Yury Norov wrote: > > While here. I just wonder, on my system IRQs are sent to nohz_full CPUs > > at every incoming ssh connection. The trace is like this: > > [ 206.835533] Call trace: > > [ 206.848411] [] du

Re: [RFC PATCH 0/4] softirq: Per vector threading v3

2018-01-23 Thread Frederic Weisbecker
On Tue, Jan 23, 2018 at 01:24:24PM -0500, David Miller wrote: > From: Linus Torvalds > Date: Tue, 23 Jan 2018 09:42:32 -0800 > > > But I wonder if the test triggers the "lets run lots of workqueue > > threads", and then the single-threaded user space just gets blown out > > of the water by many k

Re: [RFC PATCH 0/4] softirq: Per vector threading v3

2018-01-23 Thread Frederic Weisbecker
2018-01-24 2:57 UTC+01:00, Frederic Weisbecker : > On Tue, Jan 23, 2018 at 01:24:24PM -0500, David Miller wrote: >> From: Linus Torvalds >> Date: Tue, 23 Jan 2018 09:42:32 -0800 >> >> > But I wonder if the test triggers the "lets run lots of workqueue >>

Re: [RFC PATCH 0/4] softirq: Per vector threading v3

2018-01-23 Thread Frederic Weisbecker
On Tue, Jan 23, 2018 at 12:32:13PM +, Dmitry Safonov wrote: > On Tue, 2018-01-23 at 11:13 +0100, Paolo Abeni wrote: > > Hi, > > > > On Fri, 2018-01-19 at 16:46 +0100, Frederic Weisbecker wrote: > > > As per Linus suggestion, this take doesn't limit the n

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-10 Thread Frederic Weisbecker
On Wed, Jan 10, 2018 at 06:13:01PM -0800, Linus Torvalds wrote: > So just saying "hey, ksoftirq is runnable - but maybe not running > _now"" and ignoring softirqs entirely is just stupid. Even if we could > easily do another small bunch of them, at least the non-networking > ones. > > So maybe tha

Re: [PATCH v4 01/36] timers: Use static keys for migrate_enable/nohz_active

2018-01-10 Thread Frederic Weisbecker
On Thu, Dec 21, 2017 at 11:41:30AM +0100, Anna-Maria Gleixner wrote: > From: Thomas Gleixner > > The members migrate_enable and nohz_active in the timer/hrtimer per CPU > bases have been introduced to avoid accessing global variables for these > decisions. > > Still that results in a (cache hot)

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-10 Thread Frederic Weisbecker
On Wed, Jan 10, 2018 at 08:19:49PM -0800, Linus Torvalds wrote: > On Wed, Jan 10, 2018 at 7:22 PM, Frederic Weisbecker > wrote: > > > > Makes sense, but I think you need to keep the TASK_RUNNING check. > > Yes, good point. > > > So perhaps it should be: > >

Re: [PATCH v4 02/36] hrtimer: Correct blantanly wrong comment

2018-01-11 Thread Frederic Weisbecker
t; > Reported-by: Anna-Maria Gleixner > Signed-off-by: Thomas Gleixner > Signed-off-by: Anna-Maria Gleixner Reviewed-by: Frederic Weisbecker

[RFC PATCH 1/2] softirq: Account time and iteration stats per vector

2018-01-11 Thread Frederic Weisbecker
ached Suggested-by: Linus Torvalds Signed-off-by: Frederic Weisbecker Cc: Dmitry Safonov Cc: Eric Dumazet Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Andrew Morton Cc: David Miller Cc: Hannes Frederic Sowa Cc: Ingo Molnar Cc: Levin Alexander Cc: Paolo Abeni Cc: Paul E. McKenney Cc: Radu Rende

[RFC PATCH 0/2] softirq: Per vector threading

2018-01-11 Thread Frederic Weisbecker
et the big picture. It probably won't come free given the clock reads around softirq callbacks. git://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git softirq/poc HEAD: 0e982634115283710d0801048e5a316def26f31d Thanks, Frederic --- Frederic Weisbecker (2)

[RFC PATCH 2/2] softirq: Per vector thread deferment

2018-01-11 Thread Frederic Weisbecker
ksoftirqd is not removed as it is still needed for threaded IRQs mode. Suggested-by: Linus Torvalds Signed-off-by: Frederic Weisbecker Cc: Dmitry Safonov Cc: Eric Dumazet Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Andrew Morton Cc: David Miller Cc: Hannes Frederic Sowa Cc: Ingo Molnar Cc

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-11 Thread Frederic Weisbecker
On Thu, Jan 11, 2018 at 09:13:42PM +, Dmitry Safonov wrote: > On Thu, 2018-01-11 at 12:53 -0800, Eric Dumazet wrote: > > On Thu, Jan 11, 2018 at 12:46 PM, Dmitry Safonov > > wrote: > > > On Thu, 2018-01-11 at 12:40 -0800, Linus Torvalds wrote: > > > > On Thu, Jan 11, 2018 at 12:34 PM, Dmitry S

Re: [RFC PATCH 2/2] softirq: Per vector thread deferment

2018-01-11 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 06:35:54AM +0100, Frederic Weisbecker wrote: > Some softirq vectors can be more CPU hungry than others. Especially > networking may sometimes deal with packet storm and need more CPU than > IRQ tail can offer without inducing scheduler latencies. In this case >

Re: [RFC PATCH 1/2] softirq: Account time and iteration stats per vector

2018-01-12 Thread Frederic Weisbecker
On Thu, Jan 11, 2018 at 10:22:58PM -0800, Eric Dumazet wrote: > > asmlinkage __visible void __softirq_entry __do_softirq(void) > > { > > - unsigned long end = jiffies + MAX_SOFTIRQ_TIME; > > + struct softirq_stat *sstat = this_cpu_ptr(&softirq_stat_cpu); > > unsigned long old_

Re: [RFC PATCH 2/2] softirq: Per vector thread deferment

2018-01-12 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 10:07:25AM +0100, Paolo Abeni wrote: > On Fri, 2018-01-12 at 06:35 +0100, Frederic Weisbecker wrote: > > Some softirq vectors can be more CPU hungry than others. Especially > > networking may sometimes deal with packet storm and need more CPU than > &g

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-12 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 06:23:08AM +0100, Mike Galbraith wrote: > On Thu, 2018-01-11 at 12:22 -0800, Linus Torvalds wrote: > > On Thu, Jan 11, 2018 at 12:16 PM, Eric Dumazet wrote: > > > > > > Note that when I implemented TCP Small queues, I did experiments between > > > using a work queue or a ta

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-12 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 04:15:04PM +0100, Mike Galbraith wrote: > On Fri, 2018-01-12 at 15:58 +0100, Frederic Weisbecker wrote: > > On Fri, Jan 12, 2018 at 06:23:08AM +0100, Mike Galbraith wrote: > > > On Thu, 2018-01-11 at 12:22 -0800, Linus Torvalds wrote: > > > >

Re: [RFC PATCH 1/2] softirq: Account time and iteration stats per vector

2018-01-12 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 10:12:32AM -0800, Linus Torvalds wrote: > On Fri, Jan 12, 2018 at 6:34 AM, Frederic Weisbecker > wrote: > > > > That's right. But I thought it was bit large for the stack: > > > > struct { > > u64 time; > >

Re: [RFC 1/2] softirq: Defer net rx/tx processing to ksoftirqd context

2018-01-12 Thread Frederic Weisbecker
On Fri, Jan 12, 2018 at 08:28:06PM +0100, Thomas Gleixner wrote: > On Fri, 12 Jan 2018, Linus Torvalds wrote: > > On Fri, Jan 12, 2018 at 9:44 AM, Mike Galbraith wrote: > > > > > > Nah, a misunderstanding happened. RT that still offers full threading > > > creates per-softirq threads per cpu. Th

<    10   11   12   13   14   15   16   17   18   19   >