Adam Tauno Williams wrote:
On Sat, 2010-07-17 at 20:57 +0600, Junayeed Ahnaf Nirjhor wrote:
Hello, Recently installed opensuse but made a mistake while installation. I've installed without any swap partition. So the system is sluggish.
As others have said, the system may be sluggish for some other reason.
Can anybody help me out?
swapoff /swapfile
dd if=/dev/zero of=/swapfile bs=1k count=4194304 && mkswap /swapfile && sync && swapon /swapfile
Personally I run all the commands on separate lines so I can check the results but perhaps I'm just paranoid. Also, dd will run faster with a bigger block size. i.e. if you multiply bs by some number and divide count by the same number. But doing the sums is a bit harder then :(
Of course how much swap you actually need is a topic of much [mostly pointless] debate. Just make "a lot" and don't worry about it. But for the record - the RAM x 2 rule doesn't really have much 'science' behind it. But it isn't a bad idea either.
+1 Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org