Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   cpu and ram measurement (http://www.chiefdelphi.com/forums/showthread.php?t=97844)

jwakeman 15-10-2011 09:07

cpu and ram measurement
 
I am interested in folks' opinions on the best (or easiest) ways to measure cpu usage and memory consumption by tasks on the cRIO. Do utilities (i.e. commands) already exist as part of the vxWorks image? Are there utilities that can be added for this purpose?

~Cory~ 16-10-2011 17:00

Re: cpu and ram measurement
 
May I ask why you want this information? The cRIO has enough power to handle what you want to do in first. If it doesn't, you are doing something wrong. If you are trying to make modifications to the vxWorks system, i would be careful to maintain compatibility with the FMS.

jhersh 16-10-2011 18:28

Re: cpu and ram measurement
 
Quote:

Originally Posted by jwakeman (Post 1081264)
I am interested in folks' opinions on the best (or easiest) ways to measure cpu usage and memory consumption by tasks on the cRIO. Do utilities (i.e. commands) already exist as part of the vxWorks image? Are there utilities that can be added for this purpose?

You can print the state of the memory in VxWorks by running the command memShow on the console. The CPU is a bit tougher. There is a spy API but it's kinda tedious.

-Joe

jwakeman 17-10-2011 09:48

Re: cpu and ram measurement
 
Thanks Joe. I found the documentation for spyLib here (http://www-kryo.desy.de/documents/vx...ef/spyLib.html) This looks like it would be sufficient (similar to the top command in Linux).

How to include these libs which are not part of the standard c-RIO image is still a little fuzzy to me. Do I just add them to the ni-rt.ini file somewhere? Do I have to actually download the spyLib shared library and place it on my c-RIO? Or is it already there just waiting to be turned on?

jhersh 17-10-2011 11:29

Re: cpu and ram measurement
 
Quote:

Originally Posted by jwakeman (Post 1081479)
How to include these libs which are not part of the standard c-RIO image is still a little fuzzy to me. Do I just add them to the ni-rt.ini file somewhere? Do I have to actually download the spyLib shared library and place it on my c-RIO? Or is it already there just waiting to be turned on?

They should be compiled into the kernel already.

-Joe


All times are GMT -5. The time now is 17:47.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi