View topic - How to change default heap allocation size.

How to change default heap allocation size.

Read-only archive of qnx.rtos (Writing resources managers, and general discussion around the QNX Neutrino RTOS) at inn.qnx.com

How to change default heap allocation size.

Postby Janusz Ruszel » Tue Jan 20, 2004 3:09 am

How to change default heap allocation size (page size and number of pages)
under QNX 6.2.0?

-Janusz.
Janusz Ruszel
 

Re: How to change default heap allocation size.

Postby cdm » Tue Jan 20, 2004 5:58 pm

Janusz Ruszel <j.ruszel@notacom.com> wrote:
How to change default heap allocation size (page size and number of pages)
under QNX 6.2.0?


For calls to malloc()?

chris

--
Chris McKillop <cdm@qnx.com> "The faster I go, the behinder I get."
Software Engineer, QSSL -- Lewis Carroll --
http://qnx.wox.org/
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Re: How to change default heap allocation size.

Postby Janusz Ruszel » Tue Jan 20, 2004 8:16 pm

Is 16K the smallest chunk of memory for QNX heap grows up?
How to get a the amount of used heap from C++ aplication? (mallinfo() if so,
how to calculate current heap size, heap free space and heap used space)
-Janusz.

"Chris McKillop" <cdm@qnx.com> wrote in message
news:bujq7q$1sl$1@inn.qnx.com...
Janusz Ruszel <j.ruszel@notacom.com> wrote:
How to change default heap allocation size (page size and number of
pages)
under QNX 6.2.0?


For calls to malloc()?

chris

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

Janusz Ruszel
 

Re: How to change default heap allocation size.

Postby cdm » Wed Jan 21, 2004 2:38 am

Janusz Ruszel <janusz_ruszel@notvalid.com> wrote:
Is 16K the smallest chunk of memory for QNX heap grows up?
How to get a the amount of used heap from C++ aplication? (mallinfo() if so,
how to calculate current heap size, heap free space and heap used space)


You might want to take a look at the code to pidin on cvs.qnx.com. That will
let you do this programatically. You can also use the IDE to inspect running
processes for the same information.

chris

--
Chris McKillop <cdm@qnx.com> "The faster I go, the behinder I get."
Software Engineer, QSSL -- Lewis Carroll --
http://qnx.wox.org/
cdm
QNX Master
 
Posts: 789
Joined: Fri Jul 05, 2002 9:38 am

Re: How to change default heap allocation size.

Postby Janusz Ruszel » Thu Jan 22, 2004 7:31 pm

Also Igor's spin code is very helpful.
http://home.comcast.net/~kovalenko/qnx/ ... n-1.10.tgz

- Janusz.

"Chris McKillop" <cdm@qnx.com> wrote in message
news:bukomu$o0s$1@inn.qnx.com...
Janusz Ruszel <janusz_ruszel@notvalid.com> wrote:
Is 16K the smallest chunk of memory for QNX heap grows up?
How to get a the amount of used heap from C++ aplication? (mallinfo() if
so,
how to calculate current heap size, heap free space and heap used space)


You might want to take a look at the code to pidin on cvs.qnx.com. That
will
let you do this programatically. You can also use the IDE to inspect
running
processes for the same information.

chris

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

Janusz Ruszel
 


Return to qnx.rtos

Who is online

Users browsing this forum: No registered users and 4 guests