All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anders Blomdell <anders.blomdell@domain.hid>
To: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] How should rt_task_delete(NULL)  be used?
Date: Wed, 05 Mar 2008 08:44:06 +0100	[thread overview]
Message-ID: <47CE4F46.5020307@domain.hid> (raw)
In-Reply-To: <18381.50641.786735.609323@domain.hid>

Gilles Chanteperdrix wrote:
> Anders Blomdell wrote:
>  > Gilles Chanteperdrix wrote:
>  > > Anders Blomdell wrote:
>  > >  > Why does the following program grow it's VMSIZE? This is the output I get:
>  > >  > 
>  > >  > [child =  0,  0] VmSize:            1912 kB
>  > >  > ...
>  > >  > [child = 19, 19] VmSize:            3204 kB
>  > > 
>  > > Could you dump /proc/self/maps at the beginning and the end, to see
>  > > where the reserved memory comes from ?
>  > > 
>  > 
>  > Sligtly modified program (being sloppy seems to be the better choice, just
>  > returning without trying to cleanup self is cheaper, weird)...
> 
> It looks like proper thread cleanup is needed to reclaim the threads
> stack. Could you try the attached patch ?
[child =  0,  0] VmSize:            1960 kB
...
[child = 19, 19] VmSize:            1960 kB

Looks like it did the trick, great thanks!

Stay tuned for more problems :-)

/Anders

-- 
Anders Blomdell                  Email: anders.blomdell@domain.hid
Department of Automatic Control
Lund University                  Phone:    +46 46 222 4625
P.O. Box 118                     Fax:      +46 46 138118
SE-221 00 Lund, Sweden



      reply	other threads:[~2008-03-05  7:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-04 19:42 [Xenomai-help] How should rt_task_delete(NULL) be used? Anders Blomdell
2008-03-04 20:19 ` Gilles Chanteperdrix
2008-03-04 20:54   ` Anders Blomdell
2008-03-04 21:57     ` Gilles Chanteperdrix
2008-03-05  7:44       ` Anders Blomdell [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=47CE4F46.5020307@domain.hid \
    --to=anders.blomdell@domain.hid \
    --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.