All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Hocko <mhocko@suse.cz>
To: Don Zickus <dzickus@redhat.com>
Cc: linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Frederic Weisbecker <fweisbec@gmail.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: [RFC -v3 2/2] watchdog: update watchdog_tresh properly
Date: Tue, 23 Jul 2013 16:07:29 +0200	[thread overview]
Message-ID: <20130723140729.GH8677@dhcp22.suse.cz> (raw)
In-Reply-To: <20130723135334.GF126784@redhat.com>

On Tue 23-07-13 09:53:34, Don Zickus wrote:
> On Mon, Jul 22, 2013 at 04:32:46PM +0200, Michal Hocko wrote:
> > The nmi one is disabled and then reinitialized from scratch. This
> > has an unpleasant side effect that the allocation of the new event might
> > fail theoretically so the hard lockup detector would be disabled for
> > such cpus. On the other hand such a memory allocation failure is very
> > unlikely because the original event is deallocated right before.
> > It would be much nicer if we just changed perf event period but there
> > doesn't seem to be any API to do that right now.
> > It is also unfortunate that perf_event_alloc uses GFP_KERNEL allocation
> > unconditionally so we cannot use on_each_cpu() and do the same thing
> > from the per-cpu context. The update from the current CPU should be
> > safe because perf_event_disable removes the event atomically before
> > it clears the per-cpu watchdog_ev so it cannot change anything under
> > running handler feet.
> 
> I guess I don't have a problem with this.  I was hoping to have more
> shared code with the regular stop/start routines but with the pmu bit
> locking (to share pmus with oprofile), you really need to unregister
> everything to stop the lockup detector.  This makes it a little too heavy
> for a restart routine like this.

I am not sure I understand the above. Regular stop/start is about all
the machinery, I have tried to reduce the restarting to bare minimum.
Do you find the current version heavier than the full disable_all &&
enable_all?

> The only odd thing is I can't figure out which version you were using to
> apply this patch.  I can't find old_thresh (though I understand the idea
> of it).

current Linus tree (linux-next - 20130723 - has it as well AFAICS)
 
> Cheers,
> Don
-- 
Michal Hocko
SUSE Labs

  reply	other threads:[~2013-07-23 14:07 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-19  9:04 [RFC 1/2] watchdog: update watchdog attributes atomically Michal Hocko
2013-07-19  9:04 ` [RFC 2/2] watchdog: update watchdog_tresh properly Michal Hocko
2013-07-19 16:08   ` Don Zickus
2013-07-19 16:37     ` Michal Hocko
2013-07-19 18:05       ` Don Zickus
2013-07-20  8:42         ` Michal Hocko
2013-07-22 11:45   ` [RFC -v2 " Michal Hocko
2013-07-22 12:47     ` Michal Hocko
2013-07-22 14:32     ` [RFC -v3 " Michal Hocko
2013-07-23 13:53       ` Don Zickus
2013-07-23 14:07         ` Michal Hocko [this message]
2013-07-23 14:44           ` Don Zickus
2013-07-23 14:51             ` Michal Hocko
2013-07-19 16:10 ` [RFC 1/2] watchdog: update watchdog attributes atomically Don Zickus
2013-07-19 16:33   ` Michal Hocko
2013-07-23 13:56     ` Don Zickus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130723140729.GH8677@dhcp22.suse.cz \
    --to=mhocko@suse.cz \
    --cc=akpm@linux-foundation.org \
    --cc=dzickus@redhat.com \
    --cc=fweisbec@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.