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. Went to google and found out this command will create a 512 MB file and use it as a swap:
dd if=/dev/zero of=/swapfile bs=1k count=524288 && mkswap /swapfile && sync && swapon /swapfile
Question is, As My ram is 2 GB I need a swap partition of at least 4 GB (It is stated on that site). What'll be the necessary changes to turn that 512 MB into 4GB file?
I know it's not about ubuntu, but this command is not distro based, it's general Linux command.
Can anybody help me out?
512MB should be more than enough, 256MB, might be more than enough... I find it's good to have SOME swap, since any system can use up RAM with filecache, so it's good to have a SOME swap, so any programs that you run at startup but that *generally* just sit around in memory -- NOT even twiddling their bits (i.e. they are idle, so they never get swapped in). can be swapped out. They are still ready to be swapped in -- so they and or your system is 'happy' with the 'whatifs', but after some large memory even I'll see maybe a few SCORE of pages 'resident' in swap, that will just sit there until I reboot. So something or some programs just get swapped out -- and never ask to be swapped in again. Might as well let them so you can put your active memory to better use for other things...like file buffers...etc... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org