Re: writepage return value check in vmscan.c

Andrea Arcangeli (andrea@suse.de)
Mon, 28 Oct 2002 20:22:14 +0100


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).

Andrea
-
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/