Comments (9)
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.
No, it is not possible. The VM is compiled with the JIT in.
from bob.
What's the use case for this?
from bob.
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.
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.
Makes sense, thanks for clarifying.
from bob.
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.
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 worksENV ERL_COMPILER_OPTIONS="[{d,'JIT_INFO',false}]"
doesn't workENV ERL_FLAGS="-emu_flavor smp"
doesn't workENV ELIXIR_ERL_OPTIONS="-emu_flavor smp"
doesn't work
Reference build: ruslandoga/plausible#93
from bob.
I see. Thank you!
from bob.
Related Issues (20)
- Upcoming critical security update for OpenSSL HOT 4
- Vip (Pim).Obby.
- Missing tag for Alpine 3.16.3 and 3.17.0 HOT 3
- debian-bullseye-20221004 permission issue HOT 1
- Missing Tag: "1.13.4-erlang-25.2.3-alpine-3.16.4"
- OTP-26 not building HOT 1
- Erlang 26 not available on builds.hex.pm
- Can't download elixir 1.14.4 from repo.hex.pm HOT 7
- CA Certificates & OTP 26 HOT 3
- Latest Docker images not build for `amd64` HOT 3
- Erlang not built for Ubuntu since 2023-06-08 HOT 2
- Add support to Debian 12 "bookworm" HOT 1
- Missing erlang builds? HOT 3
- 1.15.5-erlang-26.1-alpine-3.18.2 for linux/arm64 is missing HOT 1
- 'latest' version of images? HOT 4
- `arm64` images? HOT 2
- Support for Amazon Public Elastic Container Registry HOT 2
- Improve discoverability of available images HOT 6
- Missing latest images on docker hubs HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bob.