Massive memory growth for -O3, -O4, -Os and -Oz, in ssa-nomerge
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go, wasm
- Lĩnh vực
- compilers, performance
Hướng nghiên cứu
Tái hiện hiện tượng bộ nhớ tăng lên với tệp hegelmote-wasm.zip đính kèm bằng lệnh wasm-opt được nêu và so sánh -O1/-O2 với -O3, -O4, -Os và -Oz. Đọc Binaryen issue 3646 liên quan và truy vết các điểm vào của trình tối ưu hóa được các mức này tiếp cận; công việc được xem là hoàn tất khi các mức tối ưu hóa bị ảnh hưởng không còn làm cạn kiệt bộ nhớ hệ thống trên tệp tham chiếu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hi. I am planning on applying wasm-opt to my Go project as part of https://github.com/Jacalz/hegelmote/pull/30. The Go WASM files are generally quite big and our toolkit is not super optimised for WASM yet so I wanted to optimise it. As I was interested in seeing which level made the most sense, I aimed to run all of the levels to see how long they take and how they affect the binary size. What I unfortunately found out was that O1 and O2 were the only ones that were usable as -O3, -O4, -Os and -Oz all seem to use memory exponentially until all 32 GB are full. I have attached the file below if you wish to try and reproduce it.
Results:
- Baseline: 37.3 MB
- O1: 35.7 MB, 29.85 s
- O2: 35.7 MB, 32.78 secs
- O3: DNF
- O4: DNF
- Os: DNF
- Oz: DNF
Running:
wasm-opt Hegelmote.wasm --enable-bulk-memory-opt -O3 -o O3.wasm
Potentially related to https://github.com/WebAssembly/binaryen/issues/3646.
Reference file: hegelmote-wasm.zip
- Ngôn ngữ chính
- WebAssembly
- Star
- 8.6k
- Fork
- 885
- Merge trung bình
- 2 ngày 1 giờ
- Pull request đã merge (30 ngày)
- 70
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của WebAssembly/binaryen
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 76/100
WebAssembly/binaryen#9018 · 3 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
WebAssembly/binaryen#9123 ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
WebAssembly/binaryen#9122 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
WebAssembly/binaryen#9086 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
WebAssembly/binaryen#9038 · 5 bình luận ·
Tất cả issue của WebAssembly/binaryen
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
objectionary/jeo-maven-plugin#1774 ·
-
compiler/runtime
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
bot-triaged module: correctness (silent) module: fx release triage triage review
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Grammar Gap: activated › effect clause › {self} deals damage equal to its power to target creature Đang mởarea:mechanics ready-for-agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
fil-donadoni/tolaria#4317 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
objectionary/eo#8869 · 1 bình luận ·