Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tes-thread CI OOM killed #595

Merged
merged 1 commit into from
Oct 11, 2024

Conversation

beef9999
Copy link
Collaborator

No description provided.

@@ -685,7 +685,7 @@ TEST(Semaphore, heavy) {
semaphore sem(0);
const int thread_num = 100000;
for (int i=1; i<=thread_num;i++) {
thread_create11(16 * PAGE_SIZE, semaphore_heavy, sem, i);
thread_create11(4 * PAGE_SIZE, semaphore_heavy, sem, i);
Copy link
Collaborator Author

@beef9999 beef9999 Oct 10, 2024

Choose a reason for hiding this comment

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

https://github.com/alibaba/PhotonLibOS/actions/runs/11277686550/job/31364416838

Self-hosted ARM CI machine doesn't have plenty of memory. Test might be OOM killed.

::testing::InitGoogleTest(&argc, arg);
gflags::ParseCommandLineFlags(&argc, &arg, true);
default_audit_logger.log_output = log_output_stdout;
photon::vcpu_init();
set_log_output_level(ALOG_DEBUG);
set_log_output_level(ALOG_INFO);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Less log, less memory. And running faster is helpful to find bugs

@beef9999 beef9999 requested a review from lihuiba October 10, 2024 17:12
@lihuiba lihuiba merged commit 78f4027 into alibaba:release/0.8 Oct 11, 2024
12 checks passed
lihuiba pushed a commit that referenced this pull request Oct 11, 2024
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.

2 participants