I created a swap file enabled the swap partition and still kde is not working.

Is it required to start the swap file swapon -a