[Ubuntu-BD] Creating a 4 GB swap partition

2010-07-17 Thread Junayeed Ahnaf Nirjhor
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?

-- 
I am me, I wanna be me. Like me or not, this is the way I am-

Junayeed Ahnaf Nirjhor
Linux Mint Bangladesh
Facebook- http://www.facebook.com/nirjhor
Twitter - http://www.twitter.com/nirjhor
Myspace- http://www.myspace.com/nirjhor1992
Blog - http://nirjhor.wordpress.com

-- 
Ubuntu Bangladesh | http://ubuntu-bd.org
ubuntu-bd@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Creating a 4 GB swap partition

2010-07-17 Thread shiplu
You dont need swap partition. Leave it. 2GB is enough for a linux
distro to run smoothly.

I dont use swap partition for any of my linux installation. This is
because all of them has enough amount of physical memory.

Swap partition was used in old days, when physical memory was low.



Shiplu Mokadd.im
My talks, http://talk.cmyweb.net
Follow me, http://twitter.com/shiplu
SUST Programmers, http://groups.google.com/group/p2psust
Innovation distinguishes bet ... ... (ask Steve Jobs the rest)

-- 
Ubuntu Bangladesh | http://ubuntu-bd.org
ubuntu-bd@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Creating a 4 GB swap partition

2010-07-17 Thread Nasimul Haque
As Shiplu mentioned, you do not really need swap if you have that much
of physical memory.

However, the change was needed in the count= parameter. Calculate 4GB
in bytes and replace that number in count= parameter. Again, this 4GB
will be a waste of memory. Also creating swapfile on the same
partition does not give you much improvements.

-- 
M. Nasimul Haque, M.Sc.(SUST)
Wessex Institute of Technology
Southampton, UK
http://www.nasimulhaque.info

-- 
Ubuntu Bangladesh | http://ubuntu-bd.org
ubuntu-bd@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd


Re: [Ubuntu-BD] Creating a 4 GB swap partition

2010-07-17 Thread Lenin
Well at times swaps come into play. I have a habit of using more than on
browsers at a time. And Firefox ate 2GB of my 2.5GB memory at one time. :)
With highly resource hungry applications you might require to have more
memory even if you would have a lot of Ram.
But before increasing you should inspect the System Activity monitor to see
if you really need a lot of swap space.

On Sat, Jul 17, 2010 at 9:49 PM, Nasimul Haque nasim.ha...@gmail.comwrote:

 As Shiplu mentioned, you do not really need swap if you have that much
 of physical memory.

 However, the change was needed in the count= parameter. Calculate 4GB
 in bytes and replace that number in count= parameter. Again, this 4GB
 will be a waste of memory. Also creating swapfile on the same
 partition does not give you much improvements.

 --
 M. Nasimul Haque, M.Sc.(SUST)
 Wessex Institute of Technology
 Southampton, UK
 http://www.nasimulhaque.info

 --
 Ubuntu Bangladesh | http://ubuntu-bd.org
 ubuntu-bd@lists.ubuntu.com
 https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd

-- 
Ubuntu Bangladesh | http://ubuntu-bd.org
ubuntu-bd@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bd