Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4091

Troubleshooting • Re: SSH connection crash

$
0
0
Are there supposed to be five python DASH_stream.py processes running at the same time?
They are definitely different proccesses as they have different PIDs and times.
Unfortunately, htop is a little bit naughty about that. When it displays child threads, it shows the LWPID in the PID column. You can see this for yourself with something like:

Code:

murph@raspberrypi:~ $ ps -eLf | sed -n '1p;/timesync/p'UID          PID    PPID     LWP  C NLWP STIME TTY          TIME CMDsystemd+     480       1     480  0    2 Oct01 ?        00:00:00 /lib/systemd/systemd-timesyncdsystemd+     480       1     540  0    2 Oct01 ?        00:00:00 /lib/systemd/systemd-timesyncdmurph       6103    2425    6103  0    1 01:51 pts/0    00:00:00 sed -n 1p;/timesync/pmurph@raspberrypi:~ $ 
If you compare that against htop, you will see the LWP number under PID. Main threads/processes have their command in white, child threads in green. Just using timesyncd as an example, take your pick of green commands in htop and look for them in ps -eLf.

Statistics: Posted by Murph9000 — Wed Oct 02, 2024 12:43 am



Viewing all articles
Browse latest Browse all 4091

Trending Articles