All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@free.fr>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] v3 heap mem-pool-size
Date: Mon, 11 May 2015 15:00:55 +0200	[thread overview]
Message-ID: <5550A807.1010504@free.fr> (raw)
In-Reply-To: <20150507153225.GD2099@hermes.click-hack.org>

On 07/05/2015 17:32, Gilles Chanteperdrix wrote:
> On Thu, May 07, 2015 at 03:44:29PM +0200, Stéphane ANCELOT wrote:
>> On 07/05/2015 11:07, Gilles Chanteperdrix wrote:
>>> On Thu, May 07, 2015 at 08:54:31AM +0200, Stéphane ANCELOT wrote:
>>>> Hi,
>>>>
>>>> Is there a better way to raise mem-pool-size other than specifying in
>>>> cmdline ?
>>>>
>>>>     0"007.389| WARNING: [main] heapobj_init() failed for 470 bytes, raise
>>>> --mem-pool-size?
>>> A command line option is nice, it allows you to do basically
>>> anything you want by calling your program from a script. What is it
>>> you want to do that can not be achieved this way?
>>>
>> It is a nice idea, however I understand everybody needs are not the same.
> You asked for a "better way", I just tried and guessed what it
> means, despite the fact that it was yet another unjustified critic
> of Xenomai. Maybe if the question had been precise like "is there a way
> to programmaticaly set "mem-pool-size", would you have get an answer
> to your question.
>
Hi,

In reply to the latest question :

"""What is it you want to do that can not be achieved this way? """

My last complete answer was :

"""
  It is a nice idea, however I understand everybody needs are not the same.

Regarding my application, I setup dynamically my heap once. But this 
heap size depends will depend on some external parameters and will vary. 
And the only way to know the size to allocate is to "count" the 
databytes in my C programing structures. Honestly, I am sure a computer 
will better do it than my mind.

eg. These external parameters may depend on how many motors in my 
machine, and so on.

"""

It bothers megetting these kinds of personal judgement in reply, 
furthermore out of topic and in a wrong context. Furthermore a waste of 
time.

I would suggest a bit of sagacity on both sides, as I do, e.g. trying to 
understand :
why we need to round up small heap sizes to at least 2048 bytes ?
why heaps are not allocated if I setup 0 size in rt_heap_alloc() ?
why I have to  setup mem-pool-size in xenomai v3 ?
and so on ....

I am pretty sure that there are good reasons , in some contexts. 
Unfortunately, not in my context, may be not in bob's or alice's context 
too....
Precisely, my last question was asking if either I need to make a 
program for computing estimate heap space needed and set it in cmdline,
or if there is a workaround to programmatically set cmdline 
mem-pool-size option?
And in the first case, I think there is unfortunately  some regression .

Regards,
Steph.












  reply	other threads:[~2015-05-11 13:00 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-07  6:54 [Xenomai] v3 heap mem-pool-size Stéphane ANCELOT
2015-05-07  9:07 ` Gilles Chanteperdrix
2015-05-07 13:14   ` Jeff Webb
2015-05-11 14:14     ` Philippe Gerum
2015-05-11 15:15       ` Stéphane ANCELOT
2015-05-11 15:57       ` Jeff Webb
2015-05-24  8:29     ` Philippe Gerum
2015-05-29  6:58       ` Stéphane ANCELOT
2015-05-07 13:44   ` Stéphane ANCELOT
2015-05-07 15:32     ` Gilles Chanteperdrix
2015-05-11 13:00       ` Stéphane ANCELOT [this message]
     [not found] <5566D83B.1020006@free.fr>
2015-05-28  9:44 ` Stéphane ANCELOT

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=5550A807.1010504@free.fr \
    --to=sancelot@free.fr \
    --cc=gilles.chanteperdrix@xenomai.org \
    --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.