On Fri, Jun 04, 2004 at 02:32:23PM -0700, Tom Rini wrote:
> > For future reference, and with thanks to Paul - this is quite easy with=
2.6=20
> > and a busy box setup configured to include losetup:
> >=20
> > dd if=3D/dev/zero of=3Dswap.img bs=3D1k count=3D16384 ; losetup /dev/lo=
op/0 swap.img ;=20
> > mkswap /dev/loop/0 ; swapon /dev/loop/0
> >=20
> > Haven't tested it at all thoroughly though, but it seems to be running =
fine.
>=20
> This is something you can do on 2.4. But, AFAIK this can still fall
> down when memory pressure gets too bad.
>=20
Yes, swapping over NFS is error prone regardless. NBD is really the best way
to go (the patches for swapping over NFS are quite out of date), but swappi=
ng
to a loopback-bound swapfile over NFS still works in a pinch.
You're better off just using mtdram or something and swapping to unmapped
VRAM.
|