-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
balloc: out of blocks when compiled with -O3 #59
Comments
I did not change anything but also got the kernel panic: balloc: out of blocks in writebig. BTW, I am working on lock lab, ran xv6 in wsl2. |
Hello, have you solved it? I am encountering this PANIC with the same env you showed |
no, i gave up, I think just pass the bcachetest is enough probably. Actually, i can pass kmemtest, bcachetest, usertests one by one in xv6, but just failed in "writebig" while runing |
ohhhhh, i have solved unexpectedly!!! Just modify the macro |
you slove it ! i gonna try it later |
Yeah I think that this issue is caused by the fact that #ifdef LAB_FS
#define FSSIZE 200000 // size of file system in blocks
#else
#ifdef LAB_LOCK
#define FSSIZE 10000 // size of file system in blocks
#else
#define FSSIZE 2000 // size of file system in blocks
#endif
#endif |
Just FYI, I faced this same issue in |
Met the same problem when adding |
I came up with the same problem with the environment on GitHub Codespace when doing the Lab Traps. I can pass the alarmtest too. Only need to do is to modify the macro FSSIZE in kernel/param.h form 1000 to 1010 is Ok. |
I compiled xv6 with
-O3
(modifiedCFLAGS
inMakefile
), and ranusertests
. I expected it runs successfully, but I got kernel panic:balloc: out of blocks
inwritebig
.The text was updated successfully, but these errors were encountered: