From: Hua Ji <hji@netscreen.com>
To: David Pinedo <dp@fc.hp.com>, linux-mm@kvack.org
Subject: RE: Running out of vmalloc space
Date: Thu, 17 May 2001 11:51:49 -0700 [thread overview]
Message-ID: <A33AEFDC2EC0D411851900D0B73EBEF766DC67@NAPA> (raw)
>What are the implications of making such a change? Will it work when
>there is less or more memory in the system? Should this be a
>configurable kernel parameter?
My 2 cents:
By default, linux kernel space starts from PAGE_OFFSET, which is 0xC0000000.
In other words,
All the kernel can only have 1G memory left for usage, if/when under a 32bit
CPU.
Even with the 1G left, the cake left for vmalloc is much less than the 1G.
Kernel
will map the PAGE_OFFSET~PAGE_OFFSET+physical_memory for kmalloc usage. The
real start point for
vmalloc is high_memory + 8M(this is a hole).
Hence, we can understand that the virtual address left for vmalloc is really
small.
For example, if your machine has a physical memory of 256M. And then your
vmalloc can only manage
(1G-256M-8M) space.
If we go through the get_vma_area that is called by vmalloc(), we will find
this:
------------------------------------------
addr = VMALLOC_START;
.....
if (addr > VMALLOC_END-size) {
kfree(area);
return NULL;
}
------------------------------------------
Therefore, it is very possible that your driver codes can't find **big
enough hole** in the vmlist, which
is a global linked list for maintaining all the vm_struct data structures.
For enlarging the managed memory, you can try this:
* change the PAGE_OFFSET to 0x80000000(for example) from 0xC000000. Then you
will have 1G extra memory managable:-). However, the side effect is: your
user level tasks can only range from 0x0 to 0x8000000(2G).
Wish helpful,
Mike
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux.eu.org/Linux-MM/
next reply other threads:[~2001-05-17 18:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-17 18:51 Hua Ji [this message]
2001-05-17 20:17 ` Andi Kleen
-- strict thread matches above, loose matches on Subject: below --
2001-05-17 21:58 Hua Ji
2001-05-18 8:21 ` Matti Aarnio
2001-05-17 17:13 David Pinedo
2001-05-17 17:39 ` Stephen C. Tweedie
2001-05-17 22:48 ` David Pinedo
2001-05-18 11:24 ` Andi Kleen
2001-05-18 11:53 ` Stephen C. Tweedie
2001-05-18 16:44 ` Christoph Hellwig
2001-05-22 23:15 ` David Pinedo
2001-05-23 9:35 ` Stephen C. Tweedie
2001-05-23 16:14 ` David Pinedo
2001-05-23 16:45 ` Stephen C. Tweedie
2001-05-26 5:13 ` Andrew Morton
2001-05-17 19:16 ` Matti Aarnio
2001-05-17 19:23 ` Christoph Hellwig
2001-05-17 20:10 ` Matti Aarnio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A33AEFDC2EC0D411851900D0B73EBEF766DC67@NAPA \
--to=hji@netscreen.com \
--cc=dp@fc.hp.com \
--cc=linux-mm@kvack.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox