Bobinas P4G
  • Login
  • Public

    • Public
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 08:48:22 UTC Bernie Bernie

    Compiling #KDE #Plasma from sources on a 20-core i7-12700F results in a lot of idle cpu time due to single-threaded tasks: git pull, cmake, make install... 😕

    In conversation Saturday, 30-Jul-2022 08:48:22 UTC from mstdn.io permalink

    Attachments


    1. https://media.mstdn.io/mstdn-media/media_attachments/files/108/735/379/400/024/584/original/e1998bfd6ccf15d2.png

    2. https://media.mstdn.io/mstdn-media/media_attachments/files/108/735/394/179/536/834/original/e5fc7c926fb49486.png
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 08:54:49 UTC Bernie Bernie
      in reply to

      I don't think using ninja vs GNU make would make any difference... those gaps occur while neither is running.

      But it seems cmake is single-threaded and quite slow.

      In conversation Saturday, 30-Jul-2022 08:54:49 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 08:58:27 UTC Bernie Bernie
      in reply to

      Perhaps #KDE should coalesce most of its frameworks into a monolithic repo.

      Distros can continue packaging the resulting libs into a gazillion separate modules, if they want to (but don't see the point, given that most kf5 libs are required by the core desktop anyway).

      In conversation Saturday, 30-Jul-2022 08:58:27 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 09:04:21 UTC Bernie Bernie
      in reply to

      Total build time: 29 minutes. Not bad!

      I disabled building Qt 5 from sources because the system version is fine.

      #kde #qt #plasma #linux

      In conversation Saturday, 30-Jul-2022 09:04:21 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 09:19:34 UTC Bernie Bernie
      in reply to

      I tried adding `cmake-generator Ninja` in my kdesrc-buildrc, but it produces much larger rules.

      For instance, the build.ninja for kwin is 12MB, while the combined size of all Makefiles was only 5MB.

      Both make and ninja are smart enough to keep respawning g++ instances until all cores are busy.

      In conversation Saturday, 30-Jul-2022 09:19:34 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 17:23:23 UTC Bernie Bernie
      in reply to
      • Elias Probst

      @eliasp That's true, kdesrc-build knows the dependency graph and could parallelize more.

      Two parallel make instances should still be able to coordinate to avoid spawning too many compilers at once:
      https://www.gnu.org/software/make/manual/html_node/Job-Slots.html

      In conversation Saturday, 30-Jul-2022 17:23:23 UTC permalink

      Attachments

      1. No result found on File_thumbnail lookup.
        Job Slots (GNU make)
        Job Slots (GNU make)
    • Elias Probst (eliasp@mastodon.social)'s status on Saturday, 30-Jul-2022 17:23:25 UTC Elias Probst Elias Probst
      in reply to

      @codewiz most of KDE was a giant monorepo once - kdelibs. There are many good reasons why it's been split up. Building multiple pkgs in parallel could help avoiding those idle gaps.

      In conversation Saturday, 30-Jul-2022 17:23:25 UTC permalink
    • Bernie (codewiz@mstdn.io)'s status on Saturday, 30-Jul-2022 17:31:29 UTC Bernie Bernie
      in reply to
      • Tanuki

      @Tanuki Yes, but the thing that's slow and single-threaded is cmake itself, when it reads and executes all the CMakeLists.txt files to generate the Makefiles.

      In conversation Saturday, 30-Jul-2022 17:31:29 UTC permalink
    • Tanuki (tanuki@mastodon.social)'s status on Saturday, 30-Jul-2022 17:31:30 UTC Tanuki Tanuki
      in reply to

      @codewiz are you already doing :

      cmake --build . -j20 # where 20 is the number of parallel build jobs

      In conversation Saturday, 30-Jul-2022 17:31:30 UTC permalink
    • Tenno Seremel, La ĉiela ombro (tennoseremel@mstdn.io)'s status on Friday, 05-Aug-2022 10:25:24 UTC Tenno Seremel, La ĉiela ombro Tenno Seremel, La ĉiela ombro
      in reply to

      @codewiz kf5 libs can be used by other programs, which are not a part of KDE.

      In conversation Friday, 05-Aug-2022 10:25:24 UTC permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • Privacy
  • Source
  • Version
  • Contact

Bobinas P4G is a social network. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Bobinas P4G content and data are available under the Creative Commons Attribution 3.0 license.