Check RetroPie Performance with HTOP

If you ever been curious how well your raspberry pi is performing, this quick guide is for you. Installing htop is a really simple and a great way to see the type of performance you’re getting out of retropie or lakka.

RetroPie Parts List

Raspberry PI 3 Model BAvailable Here(The Main Computer)
Custom Cooling CaseAvailable Here(Fanless Cooling Case)
Micro SD CardAvailable Here(Minimum of 8GB)
Power SupplyAvailable Here(Minimum 5V 2.5A)
Game ControllerAvailable Here(Awesome Controller)

Installing htop in RetroPie

The first thing we need to do is make sure out Raspberry Pi is connected to the internet. Then we need to SSH into the raspberry pie. If you’re not sure how to do this check out our guides SSH into Retropie¬†.

Once logged in, issue the following commands to install htop.


pi@retropie:~ $ sudo apt-get update
Hit http://mirrordirector.raspbian.org jessie InRelease
Hit http://archive.raspberrypi.org jessie InRelease
Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
Hit http://archive.raspberrypi.org jessie/main armhf Packages           
Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages                                     
Hit http://archive.raspberrypi.org jessie/ui armhf Packages                                               
Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB                                   
Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en                                      
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB                                      
Ign http://archive.raspberrypi.org jessie/main Translation-en_GB                                          
Ign http://mirrordirector.raspbian.org jessie/main Translation-en 
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB                                  
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en                                     
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
Ign http://archive.raspberrypi.org jessie/main Translation-en     
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en  
Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB                             
Ign http://archive.raspberrypi.org jessie/ui Translation-en                                
Reading package lists... Done

You should now have an updated repository to access packages with. Now issue the following command to install htop.


pi@retropie:~ $ sudo apt-get install htop -y
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  ltrace
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 34 not upgraded.
Need to get 68.8 kB of archives.
After this operation, 135 kB of additional disk space will be used.
Get:1 http://mirrordirector.raspbian.org/raspbian/ jessie/main htop armhf 1.0.3-1 [68.8 kB]
Fetched 68.8 kB in 0s (81.2 kB/s)
Selecting previously unselected package htop.
(Reading database ... 86910 files and directories currently installed.)
Preparing to unpack .../htop_1.0.3-1_armhf.deb ...
Unpacking htop (1.0.3-1) ...
Processing triggers for mime-support (3.58) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up htop (1.0.3-1) ...

Once installed you can immediately run htop¬†without a reboot using the simple command “htop” below.


pi@retropie:~ $ htop

  1  [||                                                               1.0%]     Tasks: 34, 16 thr; 1 running
  2  [|||                                                              3.1%]     Load average: 0.35 0.37 0.45 
  3  [|||||||                                                          8.7%]     Uptime: 01:39:27
  4  [||                                                               1.9%]
  Mem[||||||||||||||||||||||||||||||||||||||||||                  101/735MB]
  Swp[                                                               0/99MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
 4433 pi         20   0  140M 32588 15720 S  0.0  4.3  0:35.64 attract
 4434 pi         20   0  140M 32588 15720 S  0.0  4.3  0:00.00 attract
 4435 pi         20   0  140M 32588 15720 S  0.0  4.3  0:00.00 attract
 4436 pi         20   0  140M 32588 15720 S  0.0  4.3  0:00.00 attract
29164 pi         20   0  140M 32588 15720 S  0.0  4.3  0:00.02 attract
29184 pi         20   0  140M 32588 15720 S  0.0  4.3  0:00.02 attract
 4429 pi         20   0  140M 32588 15720 S  0.0  4.3 17:26.39 attract
 6212 pi         20   0  100M 25156  7064 S  0.0  3.3  0:00.00 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6213 pi         20   0  100M 25156  7064 S  2.1  3.3  0:17.71 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6214 pi         20   0  100M 25156  7064 S  0.5  3.3  0:04.86 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6215 pi         20   0  100M 25156  7064 S  0.0  3.3  0:00.00 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6216 pi         20   0  100M 25156  7064 S  0.0  3.3  0:00.00 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6217 pi         20   0  100M 25156  7064 S  0.0  3.3  0:00.00 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6237 pi         20   0  100M 25156  7064 S  0.5  3.3  0:04.66 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
 6211 pi         20   0  100M 25156  7064 S 42.4  3.3  7:07.81 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-genesis-plus-
  756 pi         20   0 25188 21500  7072 S  0.0  2.9  0:05.57 /opt/retropie/supplementary/retropie-manager/bin/python /opt/retropie/supplementary/retropie-ma
  881 root       20   0 35636 12396 10708 S  0.0  1.6  0:00.48 /usr/sbin/smbd -D
  890 root       20   0 35636  5204  3516 S  0.0  0.7  0:00.04 /usr/sbin/smbd -D
  897 pi         20   0  7044  5140  2992 S  0.0  0.7  0:01.81 -bash
12393 root       20   0 12076  5124  4456 S  0.0  0.7  0:00.14 sshd: pi [priv]
12414 pi         20   0  7040  4928  2796 S  0.0  0.7  0:00.43 -bash
  863 root       20   0 22464  4524  3320 S  0.0  0.6  0:00.20 /usr/sbin/nmbd -D
  671 root       20   0  7864  4424  3968 S  0.0  0.6  0:00.07 /usr/sbin/sshd -D
    1 root       20   0 22896  3996  2728 S  0.0  0.5  0:02.77 /sbin/init
  723 ntp        20   0  5776  3672  3232 S  0.0  0.5  0:02.55 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 106:111
12412 pi         20   0 12076  3448  2788 S  0.0  0.5  0:00.01 sshd: pi@pts/0
  748 pi         20   0  4976  3392  3020 S  0.0  0.5  0:00.03 /lib/systemd/systemd --user
  451 root       20   0  7156  3312  2880 S  0.0  0.4  0:00.11 /sbin/wpa_supplicant -s -B -P /run/wpa_supplicant.wlan0.pid -i wlan0 -D nl80211,wext -c /etc/wp
  719 root       20   0  5008  3308  3076 S  0.0  0.4  0:00.03 /usr/lib/bluetooth/bluetoothd
 6022 pi         20   0  5152  3264  2548 S  0.0  0.4  0:00.15 bash /opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ segacd /home/pi/RetroPie/roms
12527 pi         20   0  5596  3188  2272 R  1.0  0.4  0:00.19 htop
  425 messagebu  20   0  5624  3128  2676 S  0.0  0.4  0:00.23 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  143 root       20   0  8728  2972  2704 S  0.0  0.4  0:00.88 /lib/systemd/systemd-journald
  729 root       20   0  6576  2936  2584 S  0.0  0.4  0:00.01 su -c /opt/retropie/supplementary/retropie-manager/bin/python /opt/retropie/supplementary/retro
F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

We hope this was helpful. You can use htop to see how much CPU a core or process is using on your system. This is helpful to see how well your Raspberry Pi and Retropie system is running.

You can also check out our guides on checking temperature with retropie and retropie controllers.