RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Any drawbacks to changing default makeflags from -j2 to -j4 in system.sh on RPi3?

    Scheduled Pinned Locked Moved Help and Support
    build makeflags
    7 Posts 3 Posters 859 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • stooS
      stoo
      last edited by

      Apologies if this is a stupid question:

      Are there any drawbacks to changing default makeflags from -j2 to -j4 in system.sh on RPi3 to make builds faster?

      mituM 1 Reply Last reply Reply Quote 0
      • mituM
        mitu Global Moderator @stoo
        last edited by

        @stoo More compilation jobs means more memory used - which could mean digging into swap and spilling the memory overhead on the card - and full CPU usage. So the drawback will be that the compilation might not be faster and I think you'd need some kind of cooling if you're doing this frequently.
        Is there a reason to compile instead of using the binary packages ?

        1 Reply Last reply Reply Quote 0
        • stooS
          stoo
          last edited by stoo

          I'm attempting to modify ScummVM to pseudo-dynamically assign controller buttons based on the connected controller.

          Ok, looks like my RPi3 can't handle a 1350mhz CPU clock, even with active cooling. Dropped back to 1300 and the build is progressing fine with -j4.

          It was stable at 1350 until I tried -j4, which I guess means it wasn't really stable at all. Good to know.

          It certainly seems to be building faster now and memory use is hovering in the 50-60% range and doesn't appear to be hitting swap at all. Obviously that's dependent on what you're building, but if all I have to worry about is memory usage and heat the drawbacks seem minimal.

          Thanks, mitu.

          1 Reply Last reply Reply Quote 0
          • Z
            zerojay
            last edited by

            If something breaks, don't ask for support without trying with -j2 first.

            stooS 1 Reply Last reply Reply Quote 0
            • stooS
              stoo @zerojay
              last edited by

              @zerojay OH NOES I USED -j 9000 AND NOW ALL MY BUILDZ ARE BROKEN HELP PLZ MY PI IS ON FIRE AAAAAHHHH

              Z 1 Reply Last reply Reply Quote 0
              • Z
                zerojay @stoo
                last edited by

                @stoo said in Any drawbacks to changing default makeflags from -j2 to -j4 in system.sh on RPi3?:

                @zerojay OH NOES I USED -j 9000 AND NOW ALL MY BUILDZ ARE BROKEN HELP PLZ MY PI IS ON FIRE AAAAAHHHH

                Welcome to Gentoo.

                stooS 1 Reply Last reply Reply Quote 0
                • stooS
                  stoo @zerojay
                  last edited by stoo

                  @zerojay lol, here's a pointless story:

                  About 12 years ago I was just messing around, trying to build Gentoo on a (very) old Acer laptop. Well, something went wrong and the build froze. These laptops had an actual pot wheel type volume control on the side, and apparently the Acer engineers hadn't thought "hey, how about some actual circuitry that sets a sane limit on the volume?"

                  The volume control was set to maximum and the build failing caused a continuous tone from PC beeper, which was amplified through the built-in speakers . People in surrounding offices actually started evacuating because they thought it was the fire alarm. Yes, it was that loud.

                  (I just realised that evacuating can have two meanings, both of which are valid in this case.)

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.