On Mon, Sep 29, 2008 at 9:48 AM, Peter Teoh <[EMAIL PROTECTED]> wrote:
> I would like to know the maximum memory I can allocate (using
> alloc_page()) in GFP_KERNEL and __GFP_HIGHMEM memory area - how can I
> know that?

Peter, I doubt you can precisely know that at any given time. :)
A lot of issues come into picture, the order of pages you want to
allocate, fragmentation, pages used as anonymous pages , pages for
other dynamic allocation which is required by kernel etc.
All these make it really difficult for precise answer.
Approximation I think you do it using some simple maths.

HTH,

Thanks,
    --Pradeep
>
> Thanks.
>
> --
> Regards,
> Peter Teoh
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to [EMAIL PROTECTED]
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to