Jump to content

Swap file size


Rick069
 Share

Recommended Posts

It depenmds what you are doing but usually with a gig of RAM I turn it off altogether .. you can create it in case you need it and then turn it off ..

 

If you have different physcial disks on different controller then using the disk not being read from will usually help ...

Link to comment
Share on other sites

160 GB swap??? Wow.. what do you want to store in there? The complete database of the pentagon? :D As explained, if you have 256 MB RAM, use 512 MB swap, if you have 512 MB RAM, use e.g. 1GB swap. It more or less irrelevant where you place the swap partition on a harddrive, as some will tell you that it is best as a first partition, others will say, put it behind root, other say place it at the end of the drive. That is up to you. But using a 160 GB drive as swap only is a great way to waste storage capacity. ;)

Link to comment
Share on other sites

160 GB swap??? Wow.. what do you want to store in there? The complete database of the pentagon? :D As explained, if you have 256 MB RAM, use 512 MB swap, if you have 512 MB RAM, use e.g. 1GB swap. It more or less irrelevant where you place the swap partition on a harddrive, as some will tell you that it is best as a first partition, others will say, put it behind root, other say place it at the end of the drive. That is up to you. But using a 160 GB drive as swap only is a great way to waste storage capacity. ;)

 

Understood.

Link to comment
Share on other sites

Easiest way if you want to remove it, is to check your /etc/fstab and find the line that mentions swap. It will have /dev/hdxx against it, where xx is a letter and number of the drive. I will assume /dev/hdb1 for example, although could also be sdxx too if sata/scsi drive.

 

So, to disable it:

 

swapoff /dev/hdb1

 

once this has been done, we can now remove the partition. Go into System/Configuration/Configure Your Computer/Mount Points and choose the Create, delete, resize partitions option. Click OK when prompted.

 

Next you will see the disks. With more disks, you'll need to choose from a list. Remember the /dev/xxxx before, make sure you have this selected. It will be easy to work it out, because the whole disk will be green as this is the colour assigned to swap within Mandriva's tools. Click it once, and then you should see some buttons. Maybe resize it to about 1GB and then you have the rest of the disk spare for creating some partitions on. You could make one partition for example, and call the mount point /data. Then you could store everything you like in here.

 

Of course, you could partition it into other entries like /pictures, /music and/or others to define various categories for stuff if you like. Or just assign to data, and then create directories under data for your topic categories.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...