Search the web
Sign In
New User? Sign Up
mpatrol · mpatrol library discussion group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Embedded program does not run correctly   Message List  
Reply | Forward Message #1098 of 1198 |
Re: Embedded program does not run correctly

Hi,

As long as you don't use the following mpatrol options, then your
program's heap will be reasonably compact, as you'd expect:

NOFREE, OFLOWSIZE, PAGEALLOC

However, the library will still use quite a lot of memory for its
internal record-keeping, such as symbolic stack traces, profiling,
tracing, etc. You don't really have any control over whether mpatrol
reads symbols or not, but you could always recompile the library to
disable that, probably saving quite a lot of memory but losing that
capability. The following options will increase the amount of memory
mpatrol uses internally:

PROF, TRACE, USEDEBUG

You mention that the program should "log on further and not stop when
not being loaded completely". Is it stopping because you're running
out of memory? How much memory do you have available on your embedded
system? What is the OS that it's running on? Is it an embedded Linux
such as ucLinux?

Remember that you don't need to log everything from mpatrol. If there
is an error, mpatrol will log it automatically. If the log file is
being placed in a ram disk on your system then cutting the size of the
log file might give you more memory to run your program.

Graeme.

--- In mpatrol@yahoogroups.com, "fsoenmez" <fsoenmez@...> wrote:
>
> Hi,
>
> on our PowerPC we start our software with mpatrol, which creates a
> very big logfile (105 MB). The memory allocation grows to big (twice
> as big as usually). The program should log on further and not stop
> when not being loaded completely.
>
> Does anybody have an idea how it can be avoided that the program stops
> and needs such a big memory allocation?
> What do you suggest to get an acceptable result?
>
> Kind regards & thank you
>
> Fahri
>





Mon May 12, 2008 8:46 am

graemeroy
Offline Offline
Send Email Send Email

Forward
Message #1098 of 1198 |
Expand Messages Author Sort by Date

Hi, on our PowerPC we start our software with mpatrol, which creates a very big logfile (105 MB). The memory allocation grows to big (twice as big as usually)....
fsoenmez
Offline Send Email
May 12, 2008
8:20 am

Hi, As long as you don't use the following mpatrol options, then your program's heap will be reasonably compact, as you'd expect: NOFREE, OFLOWSIZE, PAGEALLOC ...
Graeme Roy
graemeroy
Offline Send Email
May 12, 2008
8:46 am

Hi Graeme, thanks much for your response. This is our system: CPU: MPC5200B RAM: 64 MB = 32 MB RAM + 32 MB Filesystem OS: Elinos glibc 2.3.4 We translated the...
fsoenmez
Offline Send Email
May 15, 2008
1:16 pm

Hi Fahri, You don't have much physical memory on your chip, so you won't have very much available to your process after the operating system eats some of it ...
Graeme Roy
graemeroy
Offline Send Email
May 16, 2008
11:11 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help