Quote:
Originally Posted by MMoery
I just solved a problem with my OpenSUSE 15.0 machine that I thought I would share in case anyone has the same issue in the future. It might be something obvious to some and it might be something that is posted in a thousand troubleshooting guides. But I did not come across it in my (short) search for answers. No telling what the search engines might put in front of someone so here it is in case anyone ever comes across it. If you find it obvious or redundant please just ignore it.
My system suddenly started running extremely slow. Did a zypper update and multiple reboots and no joy. Then something occurred to me. It was behaving as if it was low on memory. Maybe the swap partition is FUBAR?
So I went into Partitioner, deleted the swap partition and recreated / formated it. Things were instantly back to normal.
|
So, was your swap or main memory (RAM) full?
I think you would have some dire problems if your swap partition was corrupted. On the other hand, it should be known that swap many times slower than main memory, so it's not surprising that after you reset your swap things were snappy again.
You don't have to remake and format a swap partition to empty out your swap. In the future, you can run "swapoff --all", probably with sudo, and the kernel will try to move everything back into RAM. Then you can "sudo swapon --all" to turn it back on.
Your system probably has tools to review your system resources, either in GUI format (I don't have the names handy), or in CLI format like
htop or
top.
Be careful with your linux system. Playing around with partitions can be pretty dangerous to your data. Sometimes, you need to use a smaller, more specific tool to solve your real problems.