Project Home
Project Home
Source Code
Source Code
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Question about showmem: (3 Items)
   
Question about showmem  
I needed to monitor the use of our RAM in our QNX implementation since
we are about to reach the ceiling.  I have used pidin, sin, and now
showmem.  Showmem provides all the information I need for the process as
well as the threads but in all the tools I am shown more memory than
what I have (for example): 

 

# showmem -S

System RAM:       32M (      33554432)

Total Used:       38M (      40099840)

 Used Private:    34M (      36630528)

 Used Shared:   3388K (       3469312)

 

Actually in this instance Momentics is only reporting that 27M is being
used.  I have also gathered all the individual process memory in the
Momentics Memory Information in the System Information View but I was
looking for a quicker, easier, and more exact indicator of RAM usage.  I
understand about shared memory but I was wondering what is the best tool
to use (and how to use it) or how can I look more closely at the number
that I already have and get a better picture.

 

Thanks for any help.

 

Alan

 

AW: Question about showmem  
welcome in showmems' world ...
what exactly do you want to track?
-only current free mem?
-total mem consumption on a per process basis?
-only heap consumption of processes?
...

/hp


>-----Ursprüngliche Nachricht-----
>Von: Alan Strader [mailto:community-noreply@qnx.com] 
>Gesendet: Donnerstag, 20. November 2008 23:38
>An: general-toolchain
>Betreff: Question about showmem
>
>I needed to monitor the use of our RAM in our QNX 
>implementation since we are about to reach the ceiling.  I 
>have used pidin, sin, and now showmem.  Showmem provides all 
>the information I need for the process as well as the threads 
>but in all the tools I am shown more memory than what I have 
>(for example): 
>
> 
>
># showmem -S
>
>System RAM:       32M (      33554432)
>
>Total Used:       38M (      40099840)
>
> Used Private:    34M (      36630528)
>
> Used Shared:   3388K (       3469312)
>
> 
>
>Actually in this instance Momentics is only reporting that 27M 
>is being used.  I have also gathered all the individual 
>process memory in the Momentics Memory Information in the 
>System Information View but I was looking for a quicker, 
>easier, and more exact indicator of RAM usage.  I understand 
>about shared memory but I was wondering what is the best tool 
>to use (and how to use it) or how can I look more closely at 
>the number that I already have and get a better picture.
>
> 
>
>Thanks for any help.
>
> 
>
>Alan
>
> 
>
>
>
>_______________________________________________
>General
>http://community.qnx.com/sf/go/post17017
>
> 
 
*******************************************
Harman Becker Automotive Systems GmbH
Management Board: Dr. Klaus Blickle (Chairman), Dr. Udo Hüls, Michael Mauser, Regis Baudot
Chairman of the Supervisory Board: Ansgar Rempp | Domicile: Karlsbad | 
Local Court Mannheim: Register No. 361395

 
*******************************************
Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen. Wenn Sie nicht der richtige Adressat 
sind oder diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte sofort den Absender und loeschen Sie diese Mail
. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have 
received this e-mail in error) please notify the sender immediately and delete this e-mail. Any unauthorized copying, 
disclosure or distribution of the contents in this e-mail is strictly forbidden.
*******************************************
Re: AW: Question about showmem  
   I have been tracking the total RAM memory usage on a per process basis.  This gives me the heavy users so I can go 
back to software leads to possibly get the biggest reduction of memory usage up front.  All the tools (pidin, sin, and 
showmem) that I have been using gives me the same 8 processes to concentrate on.
   What I really would like to do is understand the numbers better that I am seeing with the tools.  Momentics is 
reporting that I have 27MB of RAM used yet the commnad line tools are not showing me the same numbers.  They are showing
 me numbers much much higher.  I have a Perl script tool that parses the output of pidin so I can look at the ROM and 
RAM estimates.  It calculates the data and the shared memory of each process accordingly by correctly grouping the Code,
 Data, and Stack (also looking at the overlapping of the shared memory).  I have even individually copied the individual
 process memory amounts in Momentics to compare against.

A