Hi Hao, There isn't any mechanism to free pages. Typically benchmarks run in SE mode don't free and re-allocate a lot of memory, so this works reasonable well, but ideally we would maintain a memory pool and allocate from it.
Thanks, Ali On Aug 22, 2013, at 4:16 AM, Hao Wang <[email protected]> wrote: > Hi, > > If I understand correctly, the method "Addr System::allocPhysPages(int > npages)" in src/sim/system.hh allocates contiguous physical pages. > > It maintains a counter "pagePtr" which is increased when allocating physical > pages. > > But what is the mechanism to free physical pages? Or what am I missing? > > Thank you. > Hao > > _______________________________________________ > gem5-users mailing list > [email protected] > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
