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

Raspberry Pi OS • unresponsive application running on single core

$
0
0
Hi

I am trying to run Autopilot for Quadcopter on my Pi 4. My application is single thread created in C/C++

I created a service for my application as follow:

Code:

[Unit]Description=My auto-pilotAfter=systemd-modules-load.service[Service]Type=simpleExecStart=/home/pi/autoPilotRestart=on-failureCPUAffinity=3[Install]WantedBy=multi-user.target
I also isolated one core to run only my application:

Code:

$ cat /boot/firmware/cmdline.txtconsole=tty1 root=PARTUUID=657dbd5b-02 rootfstype=ext4 fsck.repair=yes rootwait isolcpus=3

everything runs perfectly till I connect to my Pi_4 via SSH and execute:

Code:

$ htop
then everything become sluggish and unresponsive.

any reason for this ?

Statistics: Posted by akhodeir — Thu Dec 19, 2024 6:03 pm — Replies 0 — Views 16



Viewing all articles
Browse latest Browse all 4625

Trending Articles