All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: Antoine Durand <wanipof@gmail.com>
Cc: Xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] I-Pipe Tracer and linux ftrace
Date: Tue, 23 Jun 2015 16:42:01 +0200	[thread overview]
Message-ID: <55897039.6040902@siemens.com> (raw)
In-Reply-To: <CAOL1OyNELX_6g8fOSS8wuJ+6-TzrBXjoxn3wH-Gb8u-HKHFqSw@mail.gmail.com>

[restoring cc list]

On 2015-06-23 16:25, Antoine Durand wrote:
> I can "repair" the linux system time by forcing clock source from
> refined-jiffies to tsc
> 
> $ echo tsc >
> /sys/devices/system/clocksource/clocksource0/current_clocksource
> 
> Linux used refined-jiffies due to those messages at boot :
> 
> tsc: Fast TSC calibration using PIT
> tsc: Detected 2100.042 MHz processor
> PTP clock support registered
> Switched to clocksource refined-jiffies
> Switche to clocksource tsc
> rtc_cmos: setting system clock to 2015-06-23 17:28:56 UTC (1435080536)
> Clocksource tsc unstable (delta = 128069998 ns)
> Switched to clocksource refined-jiffies

jiffies - that is not good and explains the unstable timebase.

> 
> I don't know why.
> I've a modern core i7 CPU with constant_tsc flag (in /proc/cpuinfo)
> 
> 
> here are my HZ config:
> 
> CONFIG_NO_HZ_COMMON=y
> # CONFIG_HZ_PERIODIC is not set
> CONFIG_NO_HZ_IDLE=y
> CONFIG_NO_HZ=y

OK, CONFIG_NO_HZ, but that is set here as well. I was thinking of
NO_HZ_FULL when Lennart mentioned it. That's not tested and may cause
troubles.

> # CONFIG_RCU_FAST_NO_HZ is not set
> # CONFIG_HZ_100 is not set
> # CONFIG_HZ_250 is not set
> # CONFIG_HZ_300 is not set
> CONFIG_HZ_1000=y
> CONFIG_HZ=1000
> 

We don't have the full picture of your config yet: Do you use CPU
frequency scaling? Or some specific powersaving modes?

Jan

-- 
Siemens AG, Corporate Technology, CT RTC ITP SES-DE
Corporate Competence Center Embedded Linux


      parent reply	other threads:[~2015-06-23 14:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-22 16:06 [Xenomai] I-Pipe Tracer and linux ftrace Antoine Durand
2015-06-22 17:20 ` Jan Kiszka
2015-06-22 20:47   ` Antoine Durand
2015-06-23  6:19     ` Jan Kiszka
2015-06-23 10:09       ` Antoine Durand
2015-06-23 14:11         ` Lennart Sorensen
2015-06-23 14:15           ` Jan Kiszka
2015-06-23 14:27             ` Gilles Chanteperdrix
2015-06-23 14:41               ` Antoine Durand
2015-06-23 14:43                 ` Jan Kiszka
2015-06-23 14:46                 ` Gilles Chanteperdrix
2015-06-23 14:47                   ` Antoine Durand
2015-06-23 14:49                     ` Gilles Chanteperdrix
2015-06-23 14:59                       ` Jan Kiszka
2015-06-23 15:01                       ` Antoine Durand
2015-06-23 16:07                 ` Lennart Sorensen
2015-06-23 16:18                   ` Antoine Durand
2015-06-23 17:00                     ` Jan Kiszka
2015-06-23 17:23                       ` Jan Kiszka
2015-06-24  7:30                         ` Antoine Durand
     [not found]             ` <CAOL1OyNELX_6g8fOSS8wuJ+6-TzrBXjoxn3wH-Gb8u-HKHFqSw@mail.gmail.com>
2015-06-23 14:42               ` Jan Kiszka [this message]

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=55897039.6040902@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=wanipof@gmail.com \
    --cc=xenomai@xenomai.org \
    /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.