1 |
Duncan wrote: |
2 |
> I'm /definitely/ not sure on this, hopefully someone else will correct me |
3 |
> if I'm wrong, but I /believe/ "virtual address space" or "virtual memory" |
4 |
> in this case means something other than swap. I /believe/ swap would |
5 |
> still be part of the physical memory address space. |
6 |
|
7 |
well, I did a bit of research, and I'm not certain you're correct. |
8 |
|
9 |
$ less /usr/src/linux/Documentation/x86_64/mm.txt |
10 |
|
11 |
from this lil document, you can see that user apps have 47 bits of |
12 |
addressable space. From what I read, the kernel can map any portion of |
13 |
the physical memory (40 bits) into these 47 bits for the process. |
14 |
However, Linux supports 46 bits of physical address mapping instead of |
15 |
40. I guess linux just doesn't use the extra bits, but has them there |
16 |
"just in case". In addition to mapping the physical to virtual |
17 |
addresses, the kernel then swap out those virtual pages to disk. So I |
18 |
believe the kernel could access 256TB of swap, although it would be VERY |
19 |
slow to read anything approaching 0.3% swap usage back into main memory. |
20 |
|
21 |
I'd like to find better references, but below is what I was able to come |
22 |
up with. |
23 |
|
24 |
References: |
25 |
http://en.wikipedia.org/wiki/Virtual_memory |
26 |
|
27 |
http://www.linux-tutorial.info/modules.php?name=Tutorial&pageid=261 |
28 |
|
29 |
http://www.thejemreport.com/mambo/content/view/160/42/ |
30 |
http://os.newsforge.com/article.pl?sid=05/03/30/1242206&tid=152&tid=2&tid=150&tid=74 |
31 |
-- |
32 |
gentoo-amd64@g.o mailing list |