GithubHelp home page GithubHelp logo

System hangs when running goxc about goxc HOT 3 CLOSED

laher avatar laher commented on August 18, 2024
System hangs when running goxc

from goxc.

Comments (3)

laher avatar laher commented on August 18, 2024

Hi Pavan, I have made an initial change which should make it work for you. Essentially it still parallelizes but it throttles the launching of build tasks. It takes into account the --max-processors flag (this was my original idea), which by the default takes account of runtime.NumCPU.

  • By default it will invoke (NumCPUs-1) builds at once, before initiating more builds.
  • If you use the flag goxc --max-processors=1 xc, it will just invoke one platform at a time.

Hopefully this should stop your 'hanging' problem. Please test & let me know the outcome - does it work OK now, did you need to specify --max-processors to get it to work?

... I'm also interested to know your host platform - what OS are you using, and how many CPUs do you have (as reported by runtime.NumCPU)?

from goxc.

pksunkara avatar pksunkara commented on August 18, 2024

Works now.

[goxc:xc] 2014/05/15 18:49:49 Parallelizing xc for 15 platforms, using max 1 of 2 processors

Plain old goxc works with a normal .goxc.local.json. Didn't have to specify a --max-processors flag.

I am on Debian with 2 CPU cores. 4GB memory in total.

from goxc.

pksunkara avatar pksunkara commented on August 18, 2024

Thanks for the fix. 😄

from goxc.

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.