Skip to content

Optimize storage_subprocess.py #1314

@mhagnumdw

Description

@mhagnumdw

I'm using Viseron with docker on a very modest piece of hardware, an Orange Pi Zero 3 with 1.5 GB of RAM, only recording (no transcoding), with go2rtc configured.

I have 9 cameras and I record the low-resolution stream. It works well.

I've set the recording configuration for each ffmpeg.camera, I don't use tiers, like this:

ffmpeg:
  camera:
    cam_portao:
      name: cam_portao
      host: 127.0.0.1
      port: 8554
      path: /cam_portao
      rtsp_transport: tcp
      audio_codec: null
      record_only: true
      recorder:
        audio_codec: null
        continuous_recording: true
        continuous:
          max_size:
            gb: 20

Since it's a fairly modest hardware setup, I've been observing the processes, and there's one called viseron_storage_subprocess_578 that's by far the biggest CPU and memory consumer. Right now it's constantly consuming 15% of CPU and 25% of memory. These numbers fluctuate, but it always consumes significantly more resources than the other processes.

Is there any significant optimization that can be done?

Tks for the project!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions