# CPU Performance of devices

**URL:** <https://forums.balena.io/t/cpu-performance-of-devices/765>\
**Category:** Product support\
**Tags:** terminal\
**Created:** [April 10, 2017, 11:47pm UTC](https://forums.balena.io/t/cpu-performance-of-devices/765 "2017-04-10T23:47:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iamsailorman](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Iamsailorman](https://forums.balena.io/u/Iamsailorman)\
**Post date:** [April 10, 2017, 11:47pm UTC](https://forums.balena.io/t/cpu-performance-of-devices/765/1 "2017-04-10T23:47:19Z")

</div>

Hi,  
I am running different applications(temperature sensor, motion sensor etc.) with Raspberry Pi2, RPi3 and Intel Edison boards. How can I know the CPU usage/performance of these applications?

I can get real time view of performance with top/htop commands in normal Linux but I am not sure how to do it with [Resin.io](http://Resin.io)

---

<div class="post-metadata">

**Author:** ![Iamsailorman](https://avatars.discourse-cdn.com/v4/letter/i/e36b37/32.png) [@Iamsailorman](https://forums.balena.io/u/Iamsailorman)\
**Post date:** [April 11, 2017, 7:31am UTC](https://forums.balena.io/t/cpu-performance-of-devices/765/2 "2017-04-11T07:31:55Z")

</div>

I am new to [Resin.io](http://Resin.io) and I didn’t know that I can access the terminal from dashboard. I am able to find CPU and memory performance from terminal with following commands.

sar -u 100 10 \> /home/pi/us\_cpu

sar -r 100 10 \> /home/pi/us\_mem

---

<div class="post-metadata">

**Author:** ![imrehg](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/imrehg/32/36_2.png) [@imrehg](https://forums.balena.io/u/imrehg)\
**Post date:** [April 11, 2017, 8:05am UTC](https://forums.balena.io/t/cpu-performance-of-devices/765/3 "2017-04-11T08:05:24Z")

</div>

Hi, welcome onboard! 😃

Yes, you can use the web terminal to connect within the container, and then use whatever tool’s you need (e.g. run `apt-get install htop` within there, and then just use `htop`, as you’ve mentioned. See more docs at [using the dashboard web terminall](https://docs.resin.io/runtime/runtime/#using-the-dashboard-web-terminal)

If that’s more convenient, you can also use the resin command line interface `resin-cli` to run a `resin ssh` command logging into your application container from (similar to the web terminal, but you can take advantage of your normal terminal on your development computer). See some more docs at [Using `resin ssh` from the cli](https://docs.resin.io/runtime/runtime/#using-resin-ssh-from-the-cli).

Let us know how it goes! (and what you find out:)

---

<div class="post-metadata">

**Author:** ![benoitguigal](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@benoitguigal](https://forums.balena.io/u/benoitguigal)\
**Post date:** [April 11, 2017, 9:47am UTC](https://forums.balena.io/t/cpu-performance-of-devices/765/4 "2017-04-11T09:47:51Z")

</div>

Hello lamsailorman,  
You might also consider using a monitoring tool like Datadog. There is an example docker image here [https://github.com/resin-io/docker-dd-agent](https://github.com/resin-io/docker-dd-agent).
