Re: How to know the maximum memory pages that can be allocated?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 29, 2008 at 9:48 AM, Peter Teoh <htmldeveloper@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>



-- 
play the game

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux