If my system swapped , Once I know I don't have anymore proceses with high
memory consumption , how do I tell the OS to stop swapping and use the
memory instead ?
Thanks
If plenty of free memory is available, it will stop writing new stuff to
swap. Old pages out on swap will stay there until accessed, until their
processes die, or until the swap area is deleted. If there's enough
memory then you can delete swap:
# swap -d /dev/swap
After a suitable amount of time (all paged-out pages have to be read
in), `swap -l` will show it gone. You can then re-add it,
# swap -a /dev/swap
If you have other swap areas then this will be more complex. Also if
you're using an offset, you'll need to specify it in both -d and -a
commands. I don't know what people would be using a swap offset for in
2002, but who knows...
>Bela<