This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2HG: how to remove systemd

Part Number: TDA2HG

Hi,

My software version: visionSDK3.08.

I am doing startup optimization recently, I used earlyboot to reduce uboot startup time.

But now, after the kernel starts, the systemd starts too many processes that are temporarily unused.

It takes up a lot of cpu runtime, causing our application cann't run quickly.

I want to manually control the startup sequence and put time-consuming services after our application runs stably.

How to remove systemd from VSDK?

  • Hi,

    I have two methods of optimization.

    1) We need to find out the last executed systemd service during boot time. After finding the last service, we can edit all un-wanted services as below

    After=$(LAST_SERVICE)

    Now un-wanted services will run in the end.


    2) Why don't you invoke your application before systemd service?


    Thanks
    Gaviraju
  • Hi,

    I will try to make our application run before systemd.

    but in our project, there are many processes started by systemd that are not used, for example:
    systemd-timesyncd, systemd-networkd, systemd-journald, systemd-udevd.

    These will always run in the system and occupy system resources.

    Thanks.

  • Hi,

    You can disable or stop the un-wanted service, the command is

    • systemctl disable systemd-journald   (This command for disabling the service)
    • systemctl stopsystemd-journald         (This command for stoping the service)

     


    you can enable or start the service, the command is

    • systemctl enable systemd-journald    (This command for enabling the disabled service)
    • systemctl start systemd-journald        (This command for starting the stopped service)

    Use the above example command according to your requirement.

    Thanks

    Gaviraju