Re: PACKET_MMAP memory allocation

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

 



On Thu, 29 Jan 2004 01:12:57 +0100
uaca@alumni.uv.es wrote:

> In my tests always end by allocating "only" 64MB of frames 
> 
> this is a i386 machine (Pentium-III) with 1GB of RAM, mostly free.
> 
> who imposes this limit? __get_free_pages is called with GFP_KERNEL, 
> so I understand it can free other page frames, swap, etc... in order
> to allocate more memory

get_free_pages() at most can allocate PAGE_SIZE << MAX_ORDER bytes of
memory.  In 2.4.x kernels MAX_ORDER is 10 and PAGE_SIZE is 4096 on
x86 so this limit should be 4MB.  MAX_ORDER can be set higher by
certain configuration changes, via CONFIG_FORCE_MAX_ZONEORDER.
Perhaps it is set to 14 for the kernel you are using.
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux