mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Remy Bohmer" <linux@bohmer.net>
To: "Haavard Skinnemoen" <hskinnemoen@atmel.com>
Cc: akpm@linux-foundation.org, LKML <linux-kernel@vger.kernel.org>,
	"David Brownell" <david-b@pacbell.net>,
	"David Brownell" <dbrownell@users.sourceforge.net>,
	"Nicolas Ferre" <nicolas.ferre@rfo.atmel.com>,
	"Andrew Victor" <linux@maxim.org.za>,
	"john stultz" <johnstul@us.ibm.com>,
	"Thomas Gleixner" <tglx@linutronix.de>
Subject: Re: [PATCH] atmel_tc clocksource/clockevent code
Date: Tue, 4 Mar 2008 20:42:17 +0100	[thread overview]
Message-ID: <3efb10970803041142l4a03dbb9uf11651d4cc7dde96@mail.gmail.com> (raw)
In-Reply-To: <1204636061-6275-2-git-send-email-hskinnemoen@atmel.com>

Hello Haavard,

Good work on improving this patch. I am very happy with the accurate
clocksource devices, I use the patches from David for quite some time
now.

But, I noticed this comment in the patch:

>  +/* For now, we always use the 32K clock ... this optimizes for NO_HZ,
>  + * because using one of the divided clocks would usually mean the
>  + * tick rate can never be less than several dozen Hz (vs 0.5 Hz).
>  + *
>  + * A divided clock could be good for high resolution timers, since
>  + * 30.5 usec resolution can seem "low".

I want to comment on that.
I noticed that on rm9200 the timer interrupt handler itself can cost
about 50us to more than 100usec in itself (measured through ETM
trace), combined with a worst case interrupt latency of about 75us.
So, a higher resolution than 30usec is useless on these cores, and
setting timers on a frequency that high will just choke the processor
in only handling timers...

To prevent applications to start timers too fast after each other, it
is even useful to limit the granularity of these timers, and to get
them aligned so that they can be handled on just 1 interrupt. (Hmm,
this sounds like the behavior of a ticking kernel ;-))

This is the reason why I stopped using the High-resolution timer
framework on these cores. It just overloads the CPU too much when
several applications use independent timers that are not in sync with
each other. A ticking kernel is therefor more CPU-load friendly...


Kind Regards,

Remy

  reply	other threads:[~2008-03-04 19:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 13:07 [PATCH] atmel_tc library Haavard Skinnemoen
2008-03-04 13:07 ` [PATCH] atmel_tc clocksource/clockevent code Haavard Skinnemoen
2008-03-04 19:42   ` Remy Bohmer [this message]
2008-03-04 20:47     ` David Brownell
2008-03-05 11:17       ` Remy Bohmer
2008-03-05 13:06         ` David Brownell
2008-03-05 16:45         ` Thomas Gleixner
2008-03-05 21:14           ` David Brownell
2008-03-05 22:35           ` Remy Bohmer
2008-03-05 22:52             ` Thomas Gleixner

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=3efb10970803041142l4a03dbb9uf11651d4cc7dde96@mail.gmail.com \
    --to=linux@bohmer.net \
    --cc=akpm@linux-foundation.org \
    --cc=david-b@pacbell.net \
    --cc=dbrownell@users.sourceforge.net \
    --cc=hskinnemoen@atmel.com \
    --cc=johnstul@us.ibm.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@maxim.org.za \
    --cc=nicolas.ferre@rfo.atmel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®