The SPIN model `wake_workers_no_std` must follow the new loop order
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 75/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- operating-systems
Hướng nghiên cứu
Đọc specification/awkernel_async_lib/src/task/wake_workers_no_std/wake_workers.pml tại primary_main và so sánh thứ tự vòng lặp với kernel/src/lib.rs:109-114. Cập nhật mô hình để chạy wake_tasks, wake_workers, rồi sleep; hoàn tất khi mô hình khớp với phần triển khai và các tệp kết quả đã được commit bị ảnh hưởng được tạo lại. Issue lưu ý rằng run.sh có thể báo sai rằng các lượt tìm kiếm bị giới hạn bộ nhớ đã thành công, vì vậy hãy kiểm tra cảnh báo tìm kiếm chưa hoàn tất khi tạo lại kết quả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
File: specification/awkernel_async_lib/src/task/wake_workers_no_std/wake_workers.pml
(primary_main), related to kernel/src/lib.rs:109-114.
The model still has the old order:
wake_tasks(time_to_wait)
sleep(0, time_to_wait)
wake_workers(0)
The loop has three steps, so wake_tasks; wake_workers; sleep is a different
cyclic order, and the 32 committed result files no longer describe the
implementation. Please update the model in this PR or in a follow-up:
wake_tasks(time_to_wait)
wake_workers(0)
sleep(0, time_to_wait)
I ran this reordered model locally. All 16 configurations of
CONCURRENT_WORK_CONSERVATION and EVENTUALLY_EXECUTE
(TIMER_EDGE/TIMER_LEVEL x IRQ_POS 0-3) completed a full state-space
(TIMER_EDGE/TIMER_LEVEL x IRQ_POS 0-3) completed a full state-space
search with errors: 0. I did not run the 16 CPU_WAKING_TO_ACTIVE_CPU0/1
configurations.
Notes for regenerating the results:
- The state space grows by a few percent, and
-DMEMLIM=55000in the Makefile
is no longer enough.EVENTUALLY_EXECUTEneeds 50.7-52.8 GB for
IRQ_POS1-3 and more forIRQ_POS=0.EVENTUALLY_EXECUTE/
TIMER_LEVEL/IRQ_POS=0needed 55.5 GB, and it only completed with a
smaller hash table (./pan -a -n -w26) and-DMEMLIM=56500. run.shonly checks for a trail file, so a run that stops at the memory
limit (Warning: Search not completed) is recorded astrue. It should also
check for that warning.- The README lists
kernel/src/main.rsas a target, but the loop is in
kernel/src/lib.rs.
Other parts of the model need no change:
spawn_taskdoesrun_queue++and thenwake_up(..., 0, ...). The
implementation keeps this order; the notification only moved from
ArcWake::wakeinto the schedulers.wake_taskshas nowake_up, which matcheswake_cpu(0)being a no-op on
CPU 0.- The model uses
run_queueboth as the queue and as the counter, so it
already assumes an exact counter. This PR makes the implementation match it. - The std model (
wake_workers) has a two-step loop
(select_wait; wake_workers), so the reorder does not change it after the
first iteration.
- Ngôn ngữ chính
- Rust
- Star
- 282
- Fork
- 12
- Merge trung bình
- 2 ngày 9 giờ
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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 tier4/awkernel
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Deadlock in ixgbeĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của tier4/awkernel
Issue tương tự
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
flashbots/panetiere#46 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jlcodes99/cockpit-tools#3190 ·
Maintainer thường phản hồi trong vòng 4 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Feyisara2108/stellargive#1376 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:post bug effort:medium P7 source:agent
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày