process mem. consumption in QNX 62

I wonder if any of you gurus out there can help a newbie out.



My application uses execlp() to start a series of processes.

And I am confused about why QNX is showing more memory consumption in one
particular process than I thought it would consume.

In the process that is started by execlp(), i calculated all the sizes of
malloc()s and mmap() calls from its debug output, and it turned out to be
about 222k. However after startup, I saw it sitting around 1000k under
“spin”

my execlp() calls is very straight forward, execlp(“name.x”,arg0, arg1,
NULL);

I have not ruled out is some other mistakes of my own, but it is my initial
findings, Is there something I did wrong here?

Or there is something about QNX that I dont know.

Thanks for answering my question. =)

Verify spin’s output with that of “pidin mem”.

chris

Arthur Yung <ayung@tex.telusa.com> wrote:

I wonder if any of you gurus out there can help a newbie out.



My application uses execlp() to start a series of processes.

And I am confused about why QNX is showing more memory consumption in one
particular process than I thought it would consume.

In the process that is started by execlp(), i calculated all the sizes of
malloc()s and mmap() calls from its debug output, and it turned out to be
about 222k. However after startup, I saw it sitting around 1000k under
“spin”

my execlp() calls is very straight forward, execlp(“name.x”,arg0, arg1,
NULL);

I have not ruled out is some other mistakes of my own, but it is my initial
findings, Is there something I did wrong here?

Or there is something about QNX that I dont know.

Thanks for answering my question. =)


Chris McKillop <cdm@qnx.com> “The faster I go, the behinder I get.”
Software Engineer, QSSL – Lewis Carroll –
http://qnx.wox.org/