GithubHelp home page GithubHelp logo

Multi-core assembly in debian stretch about td HOT 7 CLOSED

tdlib avatar tdlib commented on April 30, 2024
Multi-core assembly in debian stretch

from td.

Comments (7)

isopen avatar isopen commented on April 30, 2024 1

Ok :)

apt install ninja-build
cmake -GNinja ..
cmake --build .
image
Accordingly, the virtual machine hung.
Something went wrong...+ eats 10gb of ozu.
The effect is similar to make -j 6

apt install clang
CXX=clang++ CC=clang cmake ..
cmake --build . (the effect is the same as g ++)

make -j 4 although it hangs in the middle of the assembly, but collects in all cases faster :) for simple reasons.
image

from td.

arseny30 avatar arseny30 commented on April 30, 2024

It probably hangs because all RAM is used. You may try clang instead of g++, it uses much less memory than g++ and compiles TDLib quicker.

Also cmake -GNinja .. will use ninja instead of make. ninja will try to determine needed number concurrent jobs by itself, so simple cmake --build . will be enough to run a build as fast as possible.

from td.

arseny30 avatar arseny30 commented on April 30, 2024

Ok, ninja won't help here. But it still looks that you just have not enough RAM for concurrent build. Am I right?

from td.

isopen avatar isopen commented on April 30, 2024

I do not have much RAM, but there is 16gb ozu.)
Library at assembly is eating nenuchutku. And all resources in general.
I may be in something I do not understand, but it's a kapets.
In 4 cores going 20+ minutes. eats whole RAM.

The moment that in our market most have only 8GB of RAM and 4 cores :))

All CPU time fills the ninja in the first place.

64GB RAM is what you need?)

from td.

levlam avatar levlam commented on April 30, 2024

4 GB of RAM should be enough for GCC (at least for Release builds). Clang usually needs only 1,5-2 GB of RAM for each file. You need to adjust job count to not use more RAM than available in the system. It is strange that modern C++ compilers are so slow and need so much RAM to compile simple source files, but it is not a library issue.

from td.

isopen avatar isopen commented on April 30, 2024

@levlam thank

from td.

isopen avatar isopen commented on April 30, 2024

Nevertheless, if you do not mind, we will continue.

Assembly on 4 cores of 8 and almost 9GB of RAM

  • Further all ok (1,5-3 GB)

  • At this point, the assembly eats about 5GB

image

  • Further all ok (1,5-3 GB)

  • At this place begins to eat the whole RAM

image

  • Accordingly, the operating system hangs for a while.

image
Building CXX object CMakeFiles/tdcore.dir/td/telegram/Payments.cpp.o

  • Further all ok (1,5-3 GB)

from td.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.