[osv-dev] Re: Demand paging for malloc

2019-09-09 Thread Waldek Kozaczuk
Interesting. I cannot reproduce the malloc() problem. I have no issues running your example with uncommented malloc: #include #include #include int main() { size_t size = 512 * 1024 * 1024; printf("Hello from main\n"); printf("allocation %lx start\n", size); int *p = (int *)malloc(size); //

[osv-dev] Re: Demand paging for malloc

2019-09-09 Thread pusnow . kaist
It only fails on firecracker whose default memory size is 128M. For QEMU, if I set VM's memory to 128M, it also fails. ./scripts/build -j24 image=native-example && ./scripts/run.py -m 128M trace: OSv v0.53.0-87-gf7b6bee5 eth0: 192.168.122.15 Booted up in 345.76 ms Hello from main allocation