On 3/1/06, Andrew Morton <[email protected]> wrote:
> You mean 10MB.
Sorry for the typo.
> The chances of finding 10MB of contiguous free pages are basically nil, so
> the page allocator doesn't even try to free up pages to attempt to satisfy
> such a large request. If it can't find the 10MB of free memory
> immediately, it just gives up.
Nope. I've tested the case on the host. See below. The allocation for
300MB was sucessful when the cached memory was close to the total
memory.
Any thoughts why?
Thanks,
-Aubrey
=============================================================
aubrey@linux:~/cvs/kernel/uClinux-dist> cat /proc/meminfo
MemTotal: 1034848 kB
MemFree: 15424 kB
Buffers: 2368 kB
Cached: 751104 kB
SwapCached: 0 kB
Active: 306116 kB
Inactive: 650060 kB
HighTotal: 129560 kB
HighFree: 120 kB
LowTotal: 905288 kB
LowFree: 15304 kB
SwapTotal: 1558296 kB
SwapFree: 1557268 kB
Dirty: 140032 kB
Writeback: 0 kB
Mapped: 265188 kB
Slab: 53556 kB
CommitLimit: 2075720 kB
Committed_AS: 290860 kB
PageTables: 1968 kB
VmallocTotal: 114680 kB
VmallocUsed: 14940 kB
VmallocChunk: 96880 kB
HugePages_Total: 0
HugePages_Free: 0
Hugepagesize: 4096 kB
aubrey@linux:~/cvs/kernel/uClinux-dist> ./ma
Alloc 300 MB !
alloc successful
===============================================================
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]