Re: writepage return value check in vmscan.c

Randy.Dunlap (rddunlap@osdl.org)
Mon, 28 Oct 2002 22:10:39 -0800 (PST)


On Mon, 28 Oct 2002, Andrea Arcangeli wrote:

| On Mon, Oct 28, 2002 at 10:44:20AM -0800, chrisl@vmware.com wrote:
| > They are the same as shmfs to linux kernel. Why does vmware not use it
| > in the first place? It is possible due to some the history reason.
| >
| > BTW, I have another question. For the 8G memory machine, do we need
| > to setup 16G swap space? Think about the time it take to write 16G
| > data, does it still make sense that swap space is twice as big as
| > memory?
|
| swap space doesn't need to be twice as big as ram. That's fixed long
| ago.
|
| swap+ram is the total amount of virtual memory that you can use in
| vmware.
|
| > And the swap partition has limit as 2G. So we need to setup 8 swap
| > partitions if we want 16G swap.
|
| that's a silly restriction of mkswap, the kernel doesn't care, it can
| handle way more than 2G (however there's an high bound at some
| unpractical level, to go safe the math limit should be re-encoded in
| mkswap, of course it changes for every arch because the pte layout is
| different).

Heh, you hit one of my personal todo list items (larger swap spaces :),
so I'll be looking into it, or trying to help anyone else on it
if they want it.

-- 
~Randy

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/