I'm building an edk2 application which kicks off during system boot. For this application I have to allocate huge slabs of memory repeatedly (96 times ) - an examplewould be 1087570 pages, allocated 96 times. I'm finding that it takes on the order of minutes to do gBS->FreePages() 96 times for my application ! Here is how I allocate each time: Status = gBS->AllocatePages(AllocateAnyPages, EfiBootServicesData, mNum4kPagesPerCore, (EFI_PHYSICAL_ADDRESS*)(MemToStressStartAddr));
For deallocation I use gBS->FreePages(). Is there a workaround for this ? Spending 3-4 minutes in the exit routine deallocating memory is not acceptible ! Thanks, Shubha Shubha D. [email protected] [email protected] _______________________________________________ edk2-devel mailing list [email protected] https://lists.01.org/mailman/listinfo/edk2-devel

