If the swap partition is busy, then you can't change the partition table *at all* and expect the kernel to notice. (Well, you could change the partition table on a different disk.)
Some hack to try to work out whether enough memory is available might be possible.
If the swap partition is busy, then you can't change the partition table *at all* and expect the kernel to notice. (Well, you could change the partition table on a different disk.)
Some hack to try to work out whether enough memory is available might be possible.