public inbox for linux-rt-users@vger.kernel.org
 help / color / mirror / Atom feed
From: Stanislav Meduna <stano@meduna.org>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "linux-rt-users@vger.kernel.org" <linux-rt-users@vger.kernel.org>
Subject: Re: Realtime capable userspace?
Date: Sun, 14 Apr 2013 13:46:46 +0200	[thread overview]
Message-ID: <516A9726.9040801@meduna.org> (raw)
In-Reply-To: <516A8035.9040604@xenomai.org>

On 14.04.2013 12:08, Gilles Chanteperdrix wrote:

> PI mutexes are not sufficient to make malloc deterministic. I guess if
> you are looking for a deterministic malloc, you should have a look at TLSF.

Yup, I know that malloc from glibc is a complicated beast and should
be probably not used at all during hard realtime operation.

Right now my biggest problem is the possibility of priority inversion.
My time constraints are in the 20 - 50 ms range and I hope the malloc
itself - while not deterministic - is not unbounded / won't go to that
times. I am of course using mlockall and everything. OTOH a priority
inversion case is a sure recipe for missing the deadlines.

Thank you for the pointer to the TLSF, this is very interesting project
and I will surely investigate this.

> You can probably get the replacement malloc be used by glibc by using
> LD_PRELOAD techniques (but OK, it would be just a hack).

Yes, this is possible but is indeed quite a hack.

Thanks
-- 
                                      Stano


  reply	other threads:[~2013-04-14 11:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-14  9:01 Realtime capable userspace? Stanislav Meduna
2013-04-14 10:08 ` Gilles Chanteperdrix
2013-04-14 11:46   ` Stanislav Meduna [this message]
2013-04-14 11:55     ` Gilles Chanteperdrix
2013-04-14 12:20       ` Stanislav Meduna

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=516A9726.9040801@meduna.org \
    --to=stano@meduna.org \
    --cc=gilles.chanteperdrix@xenomai.org \
    --cc=linux-rt-users@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox