Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High CPU Usage After Reboot Until Service is Restarted #287

Closed
xantrk opened this issue Jan 23, 2025 · 2 comments
Closed

High CPU Usage After Reboot Until Service is Restarted #287

xantrk opened this issue Jan 23, 2025 · 2 comments
Labels
bug Something isn't working not an Issue

Comments

@xantrk
Copy link

xantrk commented Jan 23, 2025

What happened

Crowsnest Uses 30% CPU Until Service is Restarted

Whenever I reboot my mainsailOS raspberry Pi, I find CPU usage to around 30%. When I just restart crowsnest via UI or via systemctl restart crowsnest, it drops to just 1-2 percent. This causes my rPi to thermal throttle otherwise. Any ideas? High CPU usage sticks and persistent until service is restarted. No matter if it's idle, feed being active/inactive and regardsless of mjpeg or other codecs being used.

Fresh reboot:
Image

After issuing systemctl restart crowsnest
Image

#### crowsnest.conf
#### This is a typical default config.
#### Also used as default in mainsail / MainsailOS
#### See:
#### https://github.com/mainsail-crew/crowsnest/blob/master/README.md
#### for details to configure to your needs.


#####################################################################
####                                                            #####
####      Information about ports and according URL's           #####
####                                                            #####
#####################################################################
####                                                            #####
####    Port 8080 equals /webcam/?action=[stream/snapshot]      #####
####    Port 8081 equals /webcam2/?action=[stream/snapshot]     #####
####    Port 8082 equals /webcam3/?action=[stream/snapshot]     #####
####    Port 8083 equals /webcam4/?action=[stream/snapshot]     #####
####                                                            #####
####    Note: These ports are default for most Mainsail         #####
####    installations. To use any other port would involve      #####
####    changing the proxy configuration or using directly      #####
####    http://<ip>:<port>/?action=[stream/snapshot]            #####
####                                                            #####
#####################################################################
####    RTSP Stream URL: ( if enabled and supported )           #####
####    rtsp://<ip>:<rtsp_port>/stream.h264                     #####
#####################################################################


[crowsnest]
log_path: /home/furka/printer_data/logs/crowsnest.log
log_level: verbose                      # Valid Options are quiet/verbose/debug
delete_log: false                       # Deletes log on every restart, if set to true
no_proxy: false

[cam 1]
# mode: ustreamer                         # ustreamer - Provides mjpg and snapshots. (All devices)
mode: camera-streamer                                        # camera-streamer - Provides webrtc, mjpg and snapshots. (rpi + Raspi OS based only)
enable_rtsp: false                      # If camera-streamer is used, this enables also usage of an rtsp server
# enable_rtsp: true
rtsp_port: 8554                         # Set different ports for each device!
port: 8080                              # HTTP/MJPG Stream/Snapshot Port
device: /dev/video0                     # See Log for available ...
resolution: 1280x720                     # widthxheight format
max_fps: 20                             # If Hardware Supports this it will be forced, otherwise ignored/coerced.
#custom_flags:                          # You can run the Stream Services with custom flags.
# custom_flags: --format=YUYV
#v4l2ctl:                               # Add v4l2-ctl parameters to setup your camera, see Log what your cam is capable of.
v4l2ctl: sharpness=4,contrast=6

crowsnest (2).log

What did you expect to happen

Low CPU usage similar to after service manually restarted.

How to reproduce

Reboot host. (Raspberry Pi 3B)
Wait until mainsail boots
------ High CPU usage until service is restarted-----
...
..
Restart service
--Low/Normal CPU usage from this point onwards---

Additional information

No response

@xantrk xantrk added the bug Something isn't working label Jan 23, 2025
@mryel00
Copy link
Member

mryel00 commented Jan 23, 2025

Not reproducable on my end. Please join our Discord or the Discussions to further troubleshoot.

Copy link

Ahoi!

It looks like this ticket is a request for help (or similar).
Many helpful people will not see your message here and you are
unlikely to get a useful response.

We use the Github Issue-Tracker only for development related
topics, like feature requests, bug reports etc. To get help,
please join our Discord-Server or ask in Github Discussions:

This ticket will be automatically closed.

Fair wind and a following sea!
~ Your friendly MainsailGithubBot

PS: I'm just an automated script, not a real sailor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working not an Issue
Projects
None yet
Development

No branches or pull requests

2 participants