Multi-Core System Monitor

by jaszhix
UUID: multicore-sys-monitor@ccadeptic23
Score: 18
Last edited: 10 hours ago
Last commit: 6d6aa95e434457bab5c248fd128154dd5bfa2091

Displays in realtime the cpu usage for each core/cpu and overall memory usage.

You must install the gir1.2-gtop-2.0 package to use this applet.

Instructions for upgrading to Cinnamon 3.4

Uninstall the applet from Applet Settings, delete ~/.local/share/cinnamon/applets/multicore-sys-monitor@ccadeptic23 and ~/.cinnamon/configs/multicore-sys-monitor@ccadeptic23. Then reinstall from Applet Settings, so it re-downloads it.

The below instructions are outdated. You can customize the color scheme in the applet's settings app.

How to Configure Colors (in prefs.json)

Edit config file in called prefs.json. Also backup the file, and only do it if you feel comfortable. There are three values that control the color of the applet that all use arrays in the settings format:

[r, b, g, a] r (red): 0-1.0 g (green): 0-1.0 b (blue): 0-1.0 a (alpha): 0-1.0

The three propteries using these values are BackgroundColor, ColorsMem, and ColorsCPUs.

ColorsCPUs requires a little more explanation. It is an array of arrays. The first level is the CPU number that will use that color. For example, if you have two CPUs where the first one is red, and the second one is green, your ColorsCPUs entry would be:

"ColorsCPUs": [[1, 0, 0, 1], [0, 1, 0, 1]]

The ColorsMem property is also a matrix like this, but instead of the CPU number, each of the sub arrays are for different parts of the memory utilization. The first row is the memory that is "used up", meaning it is not available for a program to use. This is the value the system monitor shows as the memory percentage. The second value is buffered memory, the third is cached memory, and the fourth is free memory.

For example, If you wanted the used up memory to be red, the buffered memory to be green, the cached memory to be blue, and the free memory to be white, the ColorsMem property's value would be:

"ColorsMem": [[1, 0, 0, 1], [0, 1, 0, 1], [0, 0, 1, 1], [1, 1, 1, 1]]

If you want free memory to be transparent, make the fourth entry all 0 values.

If you have more CPUs than colors defined in the config file, then the colors will repeat over the remaining CPU cores. This behavior happens with the memory colors as well. Add more arrays if you want to specify them.

View the original author's changelog.

Log In To Comment!

29 Comments

dhdurgee
dhdurgee-2 weeks ago
I separate my data from my boot partition, so only the boot(root) partition displays on my system. I assume there is a way to add my data partition, but I see no way to add it in the preferences. I assume that it can be added by editing your prefs.json, but I have no documentation on how to do so. Would the additional disk display in the same area as the root? If so, I would need to change colors to distinguish them from one another.

I am in the process of recovering from a hard drive failure. It would have been great if had been an indicator of some sort in my cinnamon panel telling me how healthy my hard drive is. I understand that such data is available from the drive via S.M.A.R.T, but from what I have seen you can drown in details there and it takes understanding of the data to determine the state of the drive.

I would like to see a simple colored dot in the disk display colored green if the drive has no problems at all, yellow if there are signs of problems developing and red if the data on the disk is in danger of loss.

Any variant on this would be acceptable and would have warned me to buy an new drive and clone the current one prior to failure.

I am unaware of any other applet with such a feature and yours appears to be a good fit, so please consider this added function.

Dave
Jan Pohanka
Jan Pohanka-1 month ago
Hi Jason,
I can confirm issue with height settings. It is no respected at all on my Arch linux box.
When I enable bluetooth I also have issues with glibtop spammig my .xsession-errors file with
...
glibtop(c=15403): [WARNING] Failed to open "/sys/class/net/80:96:B1:8F:D6:CA/statistics/rx_bytes": Adresář nebo soubor neexistuje
glibtop(c=15403): [WARNING] Failed to open "/sys/class/net/80:96:B1:8F:D6:CA/statistics/tx_bytes": Adresář nebo soubor neexistuje
...

thanks
Martin Raqua
Martin Raqua-1 month ago
Hi Jason,

since the last update (I updated recently, don't really it often) current version does not respect height setting. Height of applet never changes, whatever I set it to. I have the same behavior on Mint 18.2 and Arch Linux. Since I set my panel to be a bit smaller that default, this applet is now too big.
Thanks.
Peter Curtis
Peter Curtis-2 months ago
Jason, I have been using the applet for many years and I appreciate your active involvement on this great applet.

The applet is still working perfectly but I have recently noticed it is gradually filling up .xsession-errors on my machine until it reaches the file size limit. dmesg looks clean. I am using Mint 18.2/Cinnamon 3.4.6 and I have done a remove and reinstall of the applet clearing folders as suggested. Following repeated 2400 times.

glibtop(c=4329): [WARNING] Failed to open "/sys/class/net/08:3D:88:DA:A7:A5/statistics/tx_errors": No such file or directory
glibtop(c=4329): [WARNING] Failed to open "/sys/class/net/08:3D:88:DA:A7:A5/statistics/collisions": No such file or directory
glibtop(c=4329): [WARNING] Failed to open "/sys/class/net/08:3D:88:DA:A7:A5/statistics/rx_packets": No such file or directory
glibtop(c=4329): [WARNING] Failed to open "/sys/class/net/08:3D:88:DA:A7:A5/statistics/tx_packets": No such file or directory
glib

--- MDM: .xsession-errors output limit reached. No more output will be written. ---
--- Set 'LimitSessionOutput=false' in the [debug] section of /etc/mdm/mdm.conf to disable this limit. ---

I can open an issue if you want but I suspect above will be enough for you.
Jason Hicks
Jason Hicks-1 month ago
I've seen this too, I did change the network device handling, but not the API calls. I'll experiment a little bit.
Thomas Leahy
Thomas Leahy-2 months ago
One minor complaint, not even really a complaint, that has driven me bonkers since I first used this applet; the pie chart for memory usage.

I like having a short history and can see if there is a misbehaving app (or my own dumbness) has caused a memory usage spike.

Could you please either change it or give the option to use a plotted graph like the network and disk monitors use?

Thanks and thanks for the great monitoring applet!
Flo
Flo-3 months ago
Disk I/O is not working at all for me. Any idea why ?
Jason Hicks
Jason Hicks-3 months ago
No, it works for me. Open an issue and include the output of inxi -F && dmesg | grep -i error
Boo
Boo-4 months ago
Worked for me Jakub, thanks!
Jakub Římal
Jakub Římal-4 months ago
It looks like the mint control panel is installing an older version so just just remove Multi-Core System Monitor in mint control panel, download zip manually from this site and unzip it to ~/.local/share/cinnamon/applets. :)
Bobavince
Bobavince-1 month ago
Did work for me, right now. Thank a lot ! :)
zerobedience
zerobedience-4 months ago
That's not working for me.

Linux minty 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Version: 3.4.4+sonya
-------------------------------------
info t=2017-07-13T12:57:15.837Z Cinnamon.AppSystem.get_default() started in 128 ms
info t=2017-07-13T12:57:15.840Z loading default theme
info t=2017-07-13T12:57:15.898Z PlacesManager: Updating devices
info t=2017-07-13T12:57:15.980Z loaded at Thu Jul 13 2017 07:57:15 GMT-0500 (CDT)
info t=2017-07-13T12:57:16.255Z Loaded applet menu@cinnamon.org in 273 ms
info t=2017-07-13T12:57:16.267Z Loaded applet show-desktop@cinnamon.org in 11 ms
info t=2017-07-13T12:57:16.346Z Role locked: panellauncher
info t=2017-07-13T12:57:16.346Z Loaded applet panel-launchers@cinnamon.org in 78 ms
info t=2017-07-13T12:57:16.361Z Loaded applet window-list@cinnamon.org in 14 ms
info t=2017-07-13T12:57:16.372Z Role locked: notifications
info t=2017-07-13T12:57:16.375Z Loaded applet notifications@cinnamon.org in 12 ms
info t=2017-07-13T12:57:16.391Z Loaded applet keyboard@cinnamon.org in 16 ms
info t=2017-07-13T12:57:16.425Z Loaded applet sound@cinnamon.org in 33 ms
info t=2017-07-13T12:57:16.440Z Loaded applet power@cinnamon.org in 14 ms
info t=2017-07-13T12:57:16.447Z Loaded applet systray@cinnamon.org in 6 ms
info t=2017-07-13T12:57:16.465Z Loaded applet calendar@cinnamon.org in 17 ms
info t=2017-07-13T12:57:16.476Z Loaded applet expo@cinnamon.org in 11 ms
info t=2017-07-13T12:57:16.477Z AppletManager.init() started in 497 ms
info t=2017-07-13T12:57:16.479Z Cinnamon took 783 ms to start
info t=2017-07-13T12:57:17.180Z Adding systray: redshift (24x24px)
info t=2017-07-13T12:57:17.181Z Adding systray: network (24x24px)
info t=2017-07-13T12:57:46.693Z Adding systray: psensor (24x24px)
info t=2017-07-13T13:07:42.171Z Adding systray: mintupdate.py (24x24px)
info t=2017-07-13T13:19:40.354Z Adding systray: mintupdate.py (24x24px)
info t=2017-07-13T13:19:40.366Z Adding systray: network (24x24px)
info t=2017-07-13T13:19:40.371Z Adding systray: psensor (24x24px)
info t=2017-07-13T13:19:40.388Z Adding systray: redshift (24x24px)
info t=2017-07-13T13:35:07.662Z Adding systray: network (24x24px)
info t=2017-07-13T13:35:07.695Z Adding systray: psensor (24x24px)
info t=2017-07-13T13:35:07.699Z Adding systray: redshift (24x24px)
error t=2017-07-13T13:36:44.832Z Applet is not defined
trace t=2017-07-13T13:36:44.832Z
<----------------
@/home/user/.local/share/cinnamon/applets/multicore-sys-monitor@ccadeptic23/applet.js:60:2
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:155:13
Extension@/usr/share/cinnamon/js/ui/extension.js:116:5
loadExtension@/usr/share/cinnamon/js/ui/extension.js:449:25
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:236:13
----------------&gt;
error t=2017-07-13T13:36:44.832Z [Applet "multicore-sys-monitor@ccadeptic23"]: Error importing applet.js from multicore-sys-monitor@ccadeptic23
error t=2017-07-13T13:36:44.833Z Could not load applet multicore-sys-monitor@ccadeptic23
info t=2017-07-13T13:36:44.864Z Adding systray: network (24x24px)
info t=2017-07-13T13:36:44.867Z Adding systray: psensor (24x24px)
info t=2017-07-13T13:36:44.869Z Adding systray: redshift (24x24px)
info t=2017-07-13T13:36:44.875Z Adding systray: network (24x24px)
info t=2017-07-13T13:36:44.894Z Adding systray: psensor (24x24px)
info t=2017-07-13T13:36:44.899Z Adding systray: redshift (24x24px)
---------------------------------
initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
syndaemon: no process found
/etc/mdm/Xsession: Beginning session setup...
localuser:user being added to access control list
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
[cinnamon-settings-daemon-smartcard] Failed to start: no suitable smartcard driver could be found
Cjs-Message: JS LOG: About to start Cinnamon
St-Message: cogl npot texture sizes SUPPORTED
Cjs-Message: JS LOG: Cinnamon started at Thu Jul 13 2017 07:57:15 GMT-0500 (CDT)
openGL version 3.1 detected (GL3 Cogl Driver)

(nm-applet:2384): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

(redshift-gtk:2387): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
mintUpdate: no process found

(psensor:2967): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed

(mintUpdate.py:2909): Gdk-CRITICAL **: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x3c00003 (Authentica)
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x6600085 (glass.log )
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x6600085 (.xsession-)
Jakub Římal
Jakub Římal-4 months ago
Does not work after the upgrade to 18.2. "Instructions for upgrading to Cinnamon 3.4" doesn't help.
Boo
Boo-4 months ago
This applet does not work anymore since 18.2 update.

Here is my glass.log :

info t=2017-07-09T09:15:28.529Z Cinnamon.AppSystem.get_default() started in 745 ms
info t=2017-07-09T09:15:28.537Z loading user theme: /usr/share/themes/Arc-Dark/cinnamon/cinnamon.css
info t=2017-07-09T09:15:28.565Z added icon directory: /usr/share/themes/Arc-Dark/cinnamon
info t=2017-07-09T09:15:28.621Z PlacesManager: Updating devices
info t=2017-07-09T09:15:28.639Z loaded at Sun Jul 09 2017 11:15:28 GMT+0200 (CEST)
info t=2017-07-09T09:15:29.432Z Loaded applet menu@cinnamon.org in 786 ms
info t=2017-07-09T09:15:29.728Z Role locked: panellauncher
info t=2017-07-09T09:15:29.728Z Loaded applet IcingTaskManager@json in 295 ms
info t=2017-07-09T09:15:29.846Z Role locked: notifications
info t=2017-07-09T09:15:29.849Z Loaded applet notifications@cinnamon.org in 120 ms
info t=2017-07-09T09:15:29.918Z feeds@jonbrettdev.wordpress.com :: Logging set at info
info t=2017-07-09T09:15:29.930Z Loaded applet feeds@jonbrettdev.wordpress.com in 80 ms
info t=2017-07-09T09:15:30.006Z Loaded applet spacer@cinnamon.org in 75 ms
info t=2017-07-09T09:15:30.028Z Loaded applet keyboard@cinnamon.org in 21 ms
info t=2017-07-09T09:15:30.115Z Loaded applet user@cinnamon.org in 86 ms
info t=2017-07-09T09:15:30.303Z Loaded applet network@cinnamon.org in 188 ms
info t=2017-07-09T09:15:30.511Z Loaded applet sound@cinnamon.org in 207 ms
info t=2017-07-09T09:15:30.628Z Loaded applet power@cinnamon.org in 116 ms
info t=2017-07-09T09:15:30.641Z Loaded applet systray@cinnamon.org in 12 ms
info t=2017-07-09T09:15:30.761Z Loaded applet calendar@cinnamon.org in 119 ms
info t=2017-07-09T09:15:30.770Z Loaded applet windows-quick-list@cinnamon.org in 7 ms
info t=2017-07-09T09:15:30.770Z AppletManager.init() started in 2131 ms
info t=2017-07-09T09:15:30.772Z Cinnamon took 3229 ms to start
info t=2017-07-09T09:15:31.589Z Hiding systray: network
info t=2017-07-09T09:15:31.591Z Adding systray: redshift (24x24px)
info t=2017-07-09T09:15:32.813Z Adding systray: blueberry-tray.py (24x24px)
info t=2017-07-09T11:44:27.985Z PlacesManager: Updating devices
error t=2017-07-09T11:53:36.705Z Applet is not defined
trace t=2017-07-09T11:53:36.706Z
<----------------
@/home/sephir/.local/share/cinnamon/applets/multicore-sys-monitor@ccadeptic23/applet.js:60:2
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:155:13
Extension@/usr/share/cinnamon/js/ui/extension.js:116:5
loadExtension@/usr/share/cinnamon/js/ui/extension.js:449:25
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:236:13
----------------&gt;
error t=2017-07-09T11:53:36.706Z [Applet "multicore-sys-monitor@ccadeptic23"]: Error importing applet.js from multicore-sys-monitor@ccadeptic23
error t=2017-07-09T11:53:36.707Z Could not load applet multicore-sys-monitor@ccadeptic23
info t=2017-07-09T11:53:36.922Z Hiding systray: network
info t=2017-07-09T11:53:36.935Z Adding systray: redshift (24x24px)
info t=2017-07-09T11:53:36.938Z Adding systray: blueberry-tray.py (24x24px)
info t=2017-07-09T11:53:36.952Z Hiding systray: network
info t=2017-07-09T11:53:36.955Z Adding systray: redshift (24x24px)
info t=2017-07-09T11:53:36.959Z Adding systray: blueberry-tray.py (24x24px)
error t=2017-07-09T11:54:59.165Z Applet is not defined
trace t=2017-07-09T11:54:59.165Z
<----------------
@/home/sephir/.local/share/cinnamon/applets/multicore-sys-monitor@ccadeptic23/applet.js:60:2
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:155:13
Extension@/usr/share/cinnamon/js/ui/extension.js:116:5
loadExtension@/usr/share/cinnamon/js/ui/extension.js:449:25
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:236:13
----------------&gt;
error t=2017-07-09T11:54:59.165Z [Applet "multicore-sys-monitor@ccadeptic23"]: Error importing applet.js from multicore-sys-monitor@ccadeptic23
error t=2017-07-09T11:54:59.165Z Could not load applet multicore-sys-monitor@ccadeptic23
info t=2017-07-09T11:54:59.167Z Hiding systray: network
info t=2017-07-09T11:54:59.168Z Adding systray: redshift (24x24px)
info t=2017-07-09T11:54:59.169Z Adding systray: blueberry-tray.py (24x24px)
info t=2017-07-09T11:54:59.227Z Hiding systray: network
info t=2017-07-09T11:54:59.230Z Adding systray: redshift (24x24px)
info t=2017-07-09T11:54:59.231Z Adding systray: blueberry-tray.py (24x24px)
Bobavince
Bobavince-4 months ago
Hi !

Small problem here, with Cinnamon installed on my Arch.
The Applet manager say this applet could be slow-down or block the system.

Here is what's inside of glass.log :

info t=2017-06-25T08:12:31.250Z Loaded applet calendar@cinnamon.org in 300 ms
error t=2017-06-25T08:12:31.412Z Applet is not defined
trace t=2017-06-25T08:12:31.412Z
<----------------

(...)

error t=2017-06-25T08:12:31.412Z [Applet "multicore-sys-monitor@ccadeptic23"]: Error importing applet.js from multicore-sys-monitor@ccadeptic23
error t=2017-06-25T08:12:31.413Z Could not load applet multicore-sys-monitor@ccadeptic23
info t=2017-06-25T08:12:31.413Z AppletManager.init() started in 4199 ms
info t=2017-06-25T08:12:31.418Z Cinnamon took 18873 ms to start
info t=2017-06-25T08:12:32.156Z Hiding systray: network
info t=2017-06-25T08:33:56.758Z Hiding systray: network
error t=2017-06-25T08:34:13.485Z Applet is not defined
trace t=2017-06-25T08:34:13.486Z

Here is the complete file : http://piratepad.net/VvLMO3bzyw

Do you have an answer ? :)
andreashohl82
andreashohl82-5 months ago
Version 1.5, which is currently the latest one, seems not to be compatible with Cinnamon 3.4.1.
Is there a way to make it compatible?
Jason Hicks
Jason Hicks-5 months ago
The changelog info is from the original author. The newest version is 1.6 which does support 3.4. Please check for an update in System Settings -> Applets.
Tobias Gaertner
Tobias Gaertner-5 months ago
same here Version 1.6 stopped working.
Jason Hicks
Jason Hicks-5 months ago
WammKD's bug report has been reproduced and patched. Please check for an update.
WammKD
WammKD-5 months ago
I think your latest upgrade may've broken something (leastwise, on my machine). Trying to add the applet errors out and the error message given in glass.log is "error t=2017-06-04T01:19:19.277Z Mainloop.idle_add_full is not a function".

I'm running Linux Mint 18, version 3.0.7. If there's any further info. you might need or tests to run, let me know and I'm more than happy to help.
Thiago Ponte
Thiago Ponte-5 months ago
Working great! I missed this applet.
angelo
angelo-5 months ago
great - thanks a lot!
bthery
bthery-6 months ago
Great applet.

Feature request, I'd love to be able to specify a refresh rate greater than 1 second (1000ms) in the GUI.
When running Mint in a VM I don't need to have a very accurate current CPU or memory load.
Jefferson Davis
Jefferson Davis-6 months ago
Cinnamon now at version 3.4.0
Jefferson Davis
Jefferson Davis-6 months ago
And, it's been fixed, apparently. Try removing it from the installed apps, go to online list, refresh, and reinstall.

It also appears cinnamon itself was updated, so perhaps that's part of it?
Jefferson Davis
Jefferson Davis-6 months ago
George Cohn I'm running Ubuntu 16.04 LTS. For the time being I'm using an oldie but goodie, gkrellm. But I'd rather use something more integrated with Cinnamon.
George Cohn
George Cohn-6 months ago
FWIW I'm getting the same failure with Cinnamon 3.2.8 as Jefferson Davis
Jefferson Davis
Jefferson Davis-6 months ago
Cinnamon 3.2.8 gags on almost every monitor app, including this one, which I've used for some time. Any thoughts?

error t=2017-05-04T16:37:21.976Z [Applet "multicore-sys-monitor@ccadeptic23"]: Error importing applet.js from multicore-sys-monitor@ccadeptic23
error t=2017-05-04T16:37:21.976Z Could not load applet multicore-sys-monitor@ccadeptic23
Sergedel
Sergedel-6 months ago
When installing new version, the custom prefs.json file is deleted and replaced by default prefs. It's a bug or a feature?