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

zCore连续运行程序报错 #380

Open
shzhxh opened this issue Sep 28, 2022 · 1 comment
Open

zCore连续运行程序报错 #380

shzhxh opened this issue Sep 28, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@shzhxh
Copy link
Contributor

shzhxh commented Sep 28, 2022

  • 代码位置:https://github.com/shzhxh/zCore (dev分支)
  • riscv64架构:当内存设为512M,会报NoMemory的错误。当内存加到756M,测试通过。
    # 复现操作
    cargo update-all
    make libc-test ARCH=riscv64 CI=1
    cargo image --arch riscv64
    cargo bin --features "linux baremetal-test loopback" --arch riscv64 --output kernel-qemu
    make qemu ARCH=riscv64 CI=1
  • x86_64架构:报错为memory allocation of xxx bytes failed。当内存加到4G也无效。出错的那条测例单独运行不报错。
    # 复现操作
    cargo update-all
    make libc-test ARCH=x86_64 CI=1
    cargo image --arch x86_64
    cd zCore && make run ARCH=x86_64 LINUX=1 RELEASE=1 TEST=1
    # 在zCore里运行sh test.sh x86_64
  • aarch64架构:报错为NoMemory。当内存加到4G也无效。出错的那条测例单独运行不报错。
    # 复现操作
    cargo update-all
    make libc-test ARCH=aarch64 CI=1
    cargo image --arch aarch64
    cd zCore && make run ARCH=aarch64 LINUX=1 RELEASE=1 TEST=1
    # 在zCore里运行sh test.sh aarch64
@shzhxh shzhxh added the bug Something isn't working label Sep 28, 2022
@YdrMaster
Copy link
Collaborator

扩大 x86_64 的内核堆,就报和那俩一样的错了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants