BUPT-OS / RROS

RROS is a dual-kernel OS for satellites or other scenarios that need both real-time and general-purpose abilities. RROS = RTOS (Rust) + Linux (C).
https://bupt-os.github.io/website/
Other
552 stars 38 forks source link

Separate the test environment and non-test environment of the kernel. #56

Open yexuanyang opened 2 hours ago

yexuanyang commented 2 hours ago

Hi! I think there is something wrong with the kernel. Now it takes me nearly 90 seconds to start the kernel in qemu, I found that there is a smp_test job when the kernel is boot, and it consumes 1 minutes. img_v3_02fk_d7a9b57c-176d-4076-b994-16cba77958cg

The smp_test test should not appear in the general startup process. Whether this test is compiled into the kernel should be managed by Kconfig, and by default it is not compiled into the kernel. If a user needs this test, he must actively enable a certain config to compile this test into the kernel and perform this long test that takes nearly a minute during startup.

I hope the person in charge of the smp_test test can consider my suggestion. @JiajunDu Thanks!

JiajunDu commented 1 hour ago

Thanks for pointing this problem out! It is indeed wrong to turn on the test code by default, because in a production environment you may not want to run the test every time you boot the computer. I will improve this part.