Re: problems with swapfiles under 2.0.x

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 12 Dec 1998 18:14:55 +0000 (GMT)


> I am running into a problem with swap files under Linux 2.0.36. If I run
> mkswap swapfile and swapon swapfile it works fine. However, if swapfile
> is on an nfs mounted directory, the swapon(2) call fails with "Invalid
> argument." It is necessary for me to use a swap file on a remote system
> over the network. Why isn't this possible over an nfs mount? It should
> just see it as a regular file and accept it. Any ideas of how I could get
> around this one?

It takes arbitary memory resources to swap a page of data over NFS. That
means you can't be sure you have enough memory to swap over NFS when you
need to. Linux therefore doesnt support swapping over NFS.

Alan

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