Page 1 of 1
Raspberry Pi 3 make -j 3 issue
Posted: Sunday 16 December 2018 22:58
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.
Re: Raspberry Pi 3 make -j 3 issue
Posted: Sunday 16 December 2018 23:10
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
It takes a bit longer but it works on my systems.
Re: Raspberry Pi 3 make -j 3 issue
Posted: Sunday 16 December 2018 23:36
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,
Re: Raspberry Pi 3 make -j 3 issue
Posted: Monday 17 December 2018 0:13
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