All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Petr Cervenka" <grugh@domain.hid>
To: jan.kiszka@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Hang at glibc time() function call
Date: Mon, 01 Dec 2008 11:28:14 +0100	[thread overview]
Message-ID: <200812011128.20250@domain.hid> (raw)
In-Reply-To: <493099C6.1070807@domain.hid>


>Could not it be that the highest priority task is using all the CPU?

No, it's highly unprobable. The task runs at is should.

>Is the low priority task also mapped as Xenomai task? In that case
>calling standard Linux time services can be lethal:

Yes, the task is mapped as Xenomai task, because it waits on real-time queue with some timeout.

>
>If the Linux clocksource is TSC or HPET, glibc will use a syscall-less
>variant for time of day reading. That variant has two properties:
>
>A) It doesn't switch Xenomai task into secondary mode like ordinary
>   syscalls do.
>
>B) It can deadlock with the Linux kernel, leaving the caller spinning
>   forever so that Linux is no longer executed.

Hmm, probably my cause.

Meanwhile I replaced the glibc time() function call with rt_timer_read and it seems to work fine now (for 3 days).

Thank you for you support.
Petr




      reply	other threads:[~2008-12-01 10:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200811281535.7647@domain.hid>
     [not found] ` <200811281536.819@domain.hid>
     [not found]   ` <200811281537.16959@domain.hid>
     [not found]     ` <200811281538.1680@domain.hid>
     [not found]       ` <200811281539.441@domain.hid>
     [not found]         ` <200811281540.19192@domain.hid>
     [not found]           ` <200811281541.22553@domain.hid>
     [not found]             ` <200811281542.10754@domain.hid>
2008-11-28 14:42               ` [Xenomai-help] Hang at glibc time() function call Petr Cervenka
2008-11-28 16:01                 ` Gilles Chanteperdrix
2008-11-29  1:24                 ` Jan Kiszka
2008-12-01 10:28                   ` Petr Cervenka [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=200812011128.20250@domain.hid \
    --to=grugh@domain.hid \
    --cc=jan.kiszka@domain.hid \
    --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.