Yes, for this, after ensuring enough RAM space, you must cycle off the swap so that the data is transferred to RAM again.