Giter VIP home page Giter VIP logo

Comments (9)

josevalim avatar josevalim commented on June 19, 2024 1

The downside is larger images. The beam flavor is slower and likely only to get slower with time, I would avoid it the most we can.

from bob.

josevalim avatar josevalim commented on June 19, 2024 1

No, it is not possible. The VM is compiled with the JIT in.

from bob.

ericmj avatar ericmj commented on June 19, 2024

What's the use case for this?

from bob.

sbe-arg avatar sbe-arg commented on June 19, 2024

Been running dockerfiles with

ENV ERL_COMPILER_OPTIONS="[{d,'JIT_INFO',false}]"

to avoid segmentation faults in arm64 builds but would be ideal to have it image specific instead of dockerfile tuned.

from bob.

ericmj avatar ericmj commented on June 19, 2024

You can select a different emulator with -emu_flavor. https://www.erlang.org/doc/man/erl.html

Since there are options to disable the JIT I don't feel like separate images are needed since it would double the amount we have to build.

from bob.

sbe-arg avatar sbe-arg commented on June 19, 2024

Makes sense, thanks for clarifying.

from bob.

wojtekmach avatar wojtekmach commented on June 19, 2024

From aforementioned docs:

(The emulator with this flavor must be built. You can build a specific flavor by doing make FLAVOR=$FLAVOR in the Erlang/OTP source repository.)

are we building our images with make FLAVOR=? If not then -emu_flavour flag will only be useful with the default value, smp. If we aren't I think maybe we should, I'm not aware of downsides of doing so.

from bob.

ruslandoga avatar ruslandoga commented on June 19, 2024

Sorry to post in a closed issue but what is the recommended way to disable JIT in the current hexpm images?

I've tried the following options:

  • ENV ERL_FLAGS="+JPperf true" doesn't disable JIT but the build works
  • ENV ERL_COMPILER_OPTIONS="[{d,'JIT_INFO',false}]" doesn't work
  • ENV ERL_FLAGS="-emu_flavor smp" doesn't work
  • ENV ELIXIR_ERL_OPTIONS="-emu_flavor smp" doesn't work

Reference build: ruslandoga/analytics#93

from bob.

ruslandoga avatar ruslandoga commented on June 19, 2024

I see. Thank you!

from bob.

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.