Re: [edk2] Why does gBS->FreePages() take so long ?

2016-06-07 Thread Shubha Ramani
>> From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of >> Michael Zimmermann >> Sent: Wednesday, June 08, 2016 1:35 AM >> To: Shubha Ramani >> Cc: edk2-devel@lists.01.org >> Subject: Re: [edk2] Why does gBS->FreePages() take so long ? >> &

Re: [edk2] Why does gBS->FreePages() take so long ?

2016-06-07 Thread Gao, Liming
s.01.org > Subject: Re: [edk2] Why does gBS->FreePages() take so long ? > > which system are you testing this one? > DEBUG builds of UEFI can be very slow because they do many checks and > clear > the memory on each alloc/free. > > Thanks > Michael > >

Re: [edk2] Why does gBS->FreePages() take so long ?

2016-06-07 Thread Michael Zimmermann
which system are you testing this one? DEBUG builds of UEFI can be very slow because they do many checks and clear the memory on each alloc/free. Thanks Michael On Tue, Jun 7, 2016 at 6:36 PM, Shubha Ramani wrote: > I'm building an edk2 application which kicks off during system boot. For > this

[edk2] Why does gBS->FreePages() take so long ?

2016-06-07 Thread Shubha Ramani
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 m