Rick069 Posted May 11, 2006 Report Share Posted May 11, 2006 How big should a swap file be? Is the rule of thumb, "the bigger the better" or "the smaller the better"? [moved from Software by spinynorman] Quote Link to comment Share on other sites More sharing options...
arctic Posted May 11, 2006 Report Share Posted May 11, 2006 Rule of thumb: 2 x your RAM size. if you have up to 512 MB RAM. :) Quote Link to comment Share on other sites More sharing options...
Gowator Posted May 11, 2006 Report Share Posted May 11, 2006 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 ... Quote Link to comment Share on other sites More sharing options...
paul Posted May 11, 2006 Report Share Posted May 11, 2006 2 x ram up to 512 1.5 x ram 512 - 1536 1 x ram 1536 - 4096 1/2 ram 4096 - infinity that's my rule Quote Link to comment Share on other sites More sharing options...
Rick069 Posted May 11, 2006 Author Report Share Posted May 11, 2006 Well, I don't know if this was ok to do, but I had a harddrive I was not using and I used it as the swap file. Its 160GB. Do I need it that big? Quote Link to comment Share on other sites More sharing options...
paul Posted May 11, 2006 Report Share Posted May 11, 2006 bahahaha nice one ;) Quote Link to comment Share on other sites More sharing options...
arctic Posted May 11, 2006 Report Share Posted May 11, 2006 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. ;) Quote Link to comment Share on other sites More sharing options...
Ixthusdan Posted May 11, 2006 Report Share Posted May 11, 2006 I have 500MB swap and it never gets used. I have 768MB RAM. Quote Link to comment Share on other sites More sharing options...
Rick069 Posted May 11, 2006 Author Report Share Posted May 11, 2006 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. Quote Link to comment Share on other sites More sharing options...
iphitus Posted May 11, 2006 Report Share Posted May 11, 2006 2 x ram up to 5121.5 x ram 512 - 1536 1 x ram 1536 - 4096 1/2 ram 4096 - infinity that's my rule half of infinity.... oh god. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted May 12, 2006 Report Share Posted May 12, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.