Go to Post We want to go out and build something right away. But it is better to think a little bit first. - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 15-10-2011, 09:07
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
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?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-10-2011, 17:00
~Cory~'s Avatar
~Cory~ ~Cory~ is offline
Student
AKA: Cory Rypkema
FRC #0706
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Worcester MA
Posts: 216
~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold~Cory~ is a splendid one to behold
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.
__________________
corin.rypkema.org
WPI Class of '17
'12 Dean's List Finalist, Mentor of 706 - Cyberhawks
Reply With Quote
  #3   Spotlight this post!  
Unread 16-10-2011, 18:28
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: cpu and ram measurement

Quote:
Originally Posted by jwakeman View Post
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
Reply With Quote
  #4   Spotlight this post!  
Unread 17-10-2011, 09:48
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
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?
Reply With Quote
  #5   Spotlight this post!  
Unread 17-10-2011, 11:29
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: cpu and ram measurement

Quote:
Originally Posted by jwakeman View Post
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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