On Mon, 15 Jan 2018 22:03:19 -0800, Dannaz Perth wrote:
> thanks for getting back on track mate.
>
Thats one of the joys of newsgroups: it pays to read what others have to
say. Even if it doesn't answer exactly what you asked, you may well see
something that turns out to be useful or throws a different light on your
problem.
> Here is a post of the latest screen shot.
>
> FYI. the Pi is only ever running Chromium and node-red.
> I have no other apps media programs and/or things running.
> I have team viewer installed but never actually fully opened.\
>
>
https://pasteboard.co/H39bm5R.png
>
> Look forward to your advise
>
Simple: get rid of Chromium and use a different browser. One that doesn't
hog CPU cycles the way Chromium is doing. Or, or run it on a separate
host.
This is obvious from the 'top' display: Chromium is using more than one
core all by itself: 29% of the power of the four cores, showing up as two
processes, one eating 110% of a core and the other thread eating 7% of
another core and both consuming 27% of the available RAM. This makes it
look as though you are running two copies of Chromium (1296 and 1999). If
so, WHY? If you're not running two copies, what are you doing to Chromium
to make it run as two processes?
Meanwhile node-red is quietly sitting in a corner, behaving itself and
doing its own thing while using just 5.3% of one core and 6.8% of
available RAM.
So the bottom line: Chromium is unsuited to monitoring node-red on an RPi
because of its excessive CPU usage and its apparent inability to spread
this load across all available cores.
Subsidiary points:
- By now you should know about the 'man' program, which is used to
display manpages. There is a manpage for every program and library
function installed on your RPi: a manpage described what the program/
function does and how to use it. Manpages are a standard feature in every
version of Linux.
- Do you know about the 'apropos' program? It compares a search term with
the summary line of every manpage and outputs a list of matching manpages.
It is very useful for finding programs and library functions that are
related to something you're trying to do. For instance, if you're
interested in handling times or time intervals measured in seconds, you'd
run "apropos seconds":
$ apropos seconds
DateTime::LeapSecond (3pm) - leap seconds table and utilities
sleep (3) - sleep for a specified number of seconds
time (2) - get time in seconds
ualarm (3) - schedule signal after given number of microseconds
usleep (1) - sleep some number of microseconds
$