View Single Post
  #10   Spotlight this post!  
Unread 25-03-2013, 16:47
Phalanx's Avatar
Phalanx Phalanx is online now
Formerly Team 1089 (Mercury)
AKA: Michael Reffler
FRC #5431 (Titan Robotics)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 1999
Location: Lewisville, TX (previously NJ)
Posts: 384
Phalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond reputePhalanx has a reputation beyond repute
Re: JVM Pegs CRIO at 100% CPU Regardless of Code

Quote:
Originally Posted by Tom Bottiglieri View Post
Another thing to watch out for is SmartDashboard stuff. We had a SmartDashboard :: putData in one of our controller classes (that runs iteratively in a separate thread) which pegged us near 100%. Calling this 50 times less per second (aka 50HZ to 0Hz) brought us from near 100% CPU usage to ~50%.
Thanks Tom, We'll look at that as we are using the SmartDashboard.

Quote:
Originally Posted by Ether View Post
This caught my eye.

Why couldn't you instrument each thread in your code to read how long each thread takes to execute and whether or not it's being scheduled at the expected rate.


Thanks Ether, Yes we can do that, if we need to. Just didn't want to resort to doing that if we didn't have too.
__________________
Don't just ask the experts, become one!
Leadership is not about ability. It's about responsibility!
Diagonally Parked in a Parallel Universe. It's okay we do Quantum Physics


Reply With Quote