Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Query the kernel about physical memory allocation and availability: (7 Items)
   
Query the kernel about physical memory allocation and availability  
hi all

is there a way to know the current state (allocation/fragmentation/availability) of the physical memory?

Something like "sin pmem" on old qnx4... but more complete about physical addresses if possible ;)

thanks
Davide
Re: Query the kernel about physical memory allocation and availability  
showmem -Dm
http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_utilities/s/showmem.html

use showmem:
showmem [options] - display memory information
-S          Show memory summary (free/used) for the system
-P          Show process/sharedlibrary/ summary for the system
-D[lshm]     Show detailed process information
             l = libraries/binaries
             s = stack
             h = heap
             m = memory mapping
-d file     Dump the raw map information to specified file
-v Increase the verbosity of the output



From: Davide Ancri <community-noreply@qnx.com<mailto:community-noreply@qnx.com>>;
Reply-To: <ostech-core_os@community.qnx.com<mailto:ostech-core_os@community.qnx.com>>;
Date: Fri, 7 Sep 2012 11:27:01 -0400
To: ostech-core_os <ostech-core_os@community.qnx.com<mailto:ostech-core_os@community.qnx.com>>;
Subject: Query the kernel about physical memory allocation and availability

hi all

is there a way to know the current state (allocation/fragmentation/availability) of the physical memory?

Something like "sin pmem" on old qnx4... but more complete about physical addresses if possible ;)

thanks
Davide



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post95445
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com<mailto:ostech
-core_os-unsubscribe@community.qnx.com>;

Attachment: HTML sf-attachment-mime4807 3.38 KB
RE: Query the kernel about physical memory allocation and availability  
6.5.0 Service Pack 1 has a much better doc for showmem:

http://www.qnx.com/developers/docs/6.5.0_sp1/topic/com.qnx.doc.neutrino_utilities/s/showmem.html?cp=13_13_21_15


Steve Reid (stever@qnx.com<mailto:stever@qnx.com>;)
Technical Editor
QNX Software Systems

From: Mate Szarvas [mailto:community-noreply@qnx.com]
Sent: Friday, September 07, 2012 11:28 AM
To: ostech-core_os@community.qnx.com
Subject: Re: Query the kernel about physical memory allocation and availability

showmem -Dm
http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.neutrino_utilities/s/showmem.html

use showmem:
showmem [options] - display memory information
-S          Show memory summary (free/used) for the system
-P          Show process/sharedlibrary/ summary for the system
-D[lshm]     Show detailed process information
             l = libraries/binaries
             s = stack
             h = heap
             m = memory mapping
-d file     Dump the raw map information to specified file
-v Increase the verbosity of the output



From: Davide Ancri <community-noreply@qnx.com<mailto:community-noreply@qnx.com>>;
Reply-To: <ostech-core_os@community.qnx.com<mailto:ostech-core_os@community.qnx.com>>;
Date: Fri, 7 Sep 2012 11:27:01 -0400
To: ostech-core_os <ostech-core_os@community.qnx.com<mailto:ostech-core_os@community.qnx.com>>;
Subject: Query the kernel about physical memory allocation and availability

hi all

is there a way to know the current state (allocation/fragmentation/availability) of the physical memory?

Something like "sin pmem" on old qnx4... but more complete about physical addresses if possible ;)

thanks
Davide



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post95445
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com<mailto:ostech
-core_os-unsubscribe@community.qnx.com>;

Attachment: HTML sf-attachment-mime4811 12.74 KB
Re: RE: Query the kernel about physical memory allocation and availability  
but I can;t see "-Dm" option there...

> 6.5.0 Service Pack 1 has a much better doc for showmem:
> 
> http://www.qnx.com/developers/docs/6.5.0_sp1/topic/com.qnx.doc.
> neutrino_utilities/s/showmem.html?cp=13_13_21_15
Re: Query the kernel about physical memory allocation and availability  
Great!

unfortunately, I forgot to say that I run qnx 6.4.1, where showmem is much more limited.

But I'm happy to know it have been improved ;)

thanks
Davide

> showmem -Dm
> http://www.qnx.com/developers/docs/6.5.0/index.jsp?topic=/com.qnx.doc.
> neutrino_utilities/s/showmem.html
Re: Query the kernel about physical memory allocation and availability  
Hi !

Any way to get source code or binary of "showmem" utility for AM335x BSP to try? Looks like not included...

Thank you,
Sergey
Re: Query the kernel about physical memory allocation and availability  
Hello Sergey,

The 'showmem' utility is included into the QNX SDP and located at QNX650\target\qnx6\armle-v7\usr\bin. You can add 
'showmem' into your BSP by using QNX Momentics / System Builder or just copy the binary file on SD card if you just want
 to experiment.

Best Regards,
Evgeny