Skip to content

fix(perf): features for evaluation#678

Open
nokosaaan wants to merge 67 commits intomainfrom
eva-feature
Open

fix(perf): features for evaluation#678
nokosaaan wants to merge 67 commits intomainfrom
eva-feature

Conversation

@nokosaaan
Copy link
Copy Markdown
Contributor

@nokosaaan nokosaaan commented Apr 15, 2026

Description

Since period information is required during evaluation, I have provided a feature to enable evaluation outside of the application.
need-get-period is normally turned off, which is consistent with the behavior of the traditional awkernel. To enable it, simply add need-get-period to the default in the [features] section of kernel/Cargo.toml.
I have updated pubsub.rs to allow cycle propagation without altering existing trait boundaries, APIs, or the test application. Please refer to the file attached to the PR test section for the execution results.

Related links

sample code

How was this PR tested?

no_feature_compile.log
no_feature_execute.log
feature_compile.log
feature_execute.log

Notes for reviewers

Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
@nokosaaan nokosaaan changed the title add: Features for evaluation add: features for evaluation Apr 17, 2026
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
nokosaaan and others added 2 commits April 18, 2026 08:28
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 14 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread awkernel_async_lib/src/time_interval.rs Outdated
Comment thread awkernel_async_lib/src/task.rs
Comment thread awkernel_async_lib/src/task.rs
Comment thread awkernel_async_lib/src/pubsub.rs Outdated
Comment thread awkernel_async_lib/src/task.rs
Comment thread awkernel_async_lib/src/pubsub.rs Outdated
Comment thread awkernel_async_lib/src/task.rs
Comment thread awkernel_async_lib/src/task.rs
Comment thread awkernel_async_lib/src/task.rs
Comment on lines +673 to +676
if recorder.timestamps[index][pub_id][node_id_usize] == 0 {
recorder.timestamps[index][pub_id][node_id_usize] = new_timestamp;
recorder.mark_used(index, pub_id, node_id_usize);
}
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because index is normalized with % MAX_LOGS, this “only record if current value is 0” logic will stop recording once a slot has been written the first time. After the period counter wraps, new publish timestamps for the same (index, pub_id, node_id) won’t be captured. Consider overwriting unconditionally or clearing the slot when a new cycle reuses the index.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot
Since changing the MAX_LOGS value is within the range where we can manually prevent a panic from occurring, it is not practical when considering the cost of making that change. I will fix this if it is pointed out in other reviews.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Understood. We’ll keep the current MAX_LOGS/wrap behavior as-is in this PR and defer any structural logging changes unless a future review explicitly requires them. No UI changes in this backend-only scope.

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 19, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/tier4/awkernel_sync/commits/HEAD
    • Triggering command: /home/REDACTED/.rustup/toolchains/nightly-x86_64-REDACTED-linux-gnu/bin/cargo /home/REDACTED/.rustup/toolchains/nightly-x86_64-REDACTED-linux-gnu/bin/cargo test -p awkernel_async_lib --features std --lib (http block)
  • https://api.github.com/repos/ytakano/acpi/commits/HEAD
    • Triggering command: /home/REDACTED/.rustup/toolchains/nightly-x86_64-REDACTED-linux-gnu/bin/cargo /home/REDACTED/.rustup/toolchains/nightly-x86_64-REDACTED-linux-gnu/bin/cargo test -p awkernel_async_lib --features std --lib (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 20, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/tier4/awkernel_sync/commits/HEAD
    • Triggering command: /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo test --lib (http block)
  • https://api.github.com/repos/ytakano/acpi/commits/HEAD
    • Triggering command: /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo /home/REDACTED/.rustup/toolchains/stable-x86_64-REDACTED-linux-gnu/bin/cargo test --lib (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
nokosaaan and others added 3 commits April 20, 2026 12:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
nokosaaan and others added 2 commits April 20, 2026 12:57
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: nokosaaan <nishimura.r.019@ms.saitama-u.ac.jp>
@nokosaaan nokosaaan marked this pull request as ready for review April 20, 2026 05:13
@nokosaaan nokosaaan requested a review from kobayu858 April 20, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants