Raspberry Pi 3 make -j 3 issue

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
mhfrey
Posts: 11
Joined: Sunday 06 April 2014 2:26
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8160
Location: USA
Contact:

Raspberry Pi 3 make -j 3 issue

Post by mhfrey »

The Wiki recommends using make -j 3 when building from source on a Raspberry Pi 3. I have found this to be a problem because this uses all the memory and swap space and the build goes into swap death. Make -j 2 also has the same problem. Is anyone else seeing this or have I missed something in the Wiki?

Thanks for your help and comments.
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Raspberry Pi 3 make -j 3 issue

Post by waaren »

mhfrey wrote: Sunday 16 December 2018 22:58 The Wiki recommends using make -j 3 when building from source on a Raspberry Pi 3. I have found this to be a problem because this uses all the memory and swap space and the build goes into swap death. Make -j 2 also has the same problem. Is anyone else seeing this or have I missed something in the Wiki?

Thanks for your help and comments.
I had similar problems. What I do now on my development system is
stop all services not absolutely needed,

Code: Select all

        service bluetooth stop
        service cron stop
        service domoticz stop
        service domoticz.sh stop
        service fail2ban stop
        service kmod stop
        service lightdm stop
        service monit stop
        service mysql stop
        service nmbd stop
        service raspi-config stop
        service atd start
        service samba stop
        service smbd stop
        service triggerhappy stop
        service winbind stop
and make with only 1 processor

Code: Select all

make -j1 1>make.log 2>make.error
It takes a bit longer but it works on my systems.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
mhfrey
Posts: 11
Joined: Sunday 06 April 2014 2:26
Target OS: Raspberry Pi / ODroid
Domoticz version: v3.8160
Location: USA
Contact:

Re: Raspberry Pi 3 make -j 3 issue

Post by mhfrey »

Thanks for the reply, I guess I did not miss something. I agree make -j 1 will work, I have also found that make -j 2 will also eventually go into swap death.

The Wiki should probably be updated.

Cheers,
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Raspberry Pi 3 make -j 3 issue

Post by waaren »

mhfrey wrote: Sunday 16 December 2018 23:36 Thanks for the reply, I guess I did not miss something. I agree make -j 1 will work, I have also found that make -j 2 will also eventually go into swap death.

The Wiki should probably be updated.

Cheers,
I tried but giving a fatal exception. Might have something to do with the planned move of the forum. Will try again tomorrow but you should also be able to update the wiki or add something if you think it is missing / incorrect
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest