create swap partition
total used free shared buffers cached
Mem: 3895 3203 691 0 4 2163 -/+ buffers/cache: 1035 2859 Swap: 0 0 0 this is the output of "free -m" command in my fedora 13 linux system.. as per the output, there is no swap partition in my system.. i am lack of analysing the output above. please describe me about buffers,cached fields and "-/+buffers/cache" row. and do i need to create swap partition or not?if yes, how? nandri(for thanks in my mother tongue(tamil)) |
Quote:
Quote:
adding swap partition or swap file HTH |
Quote:
The -/+buffers/cache row shows what used and free memory would be if buffers and cache were counted as free rather than used. Usually that is the more meaningful way of counting used and free memory, because the memory used by buffers and cache will be treated as free if any application needs memory. Quote:
I think it is better to have a swap partition anyway. Your system might have some stale anonymous memory use and could be a tiny bit faster if that memory were swapped and a little more memory were available for caching. But you already have a lot of caching so such improvement if any would be tiny. A swap partition is also a useful safety valve if you run some tasks that are much bigger than your typical use, or if some task has a memory leak. In case of a memory leak, swap space may make the system degrade smoothly rather than fail abruptly. That may give you time to diagnose and correct the problem without crashing the whole system. We may be able to give you a better idea about creating swap space if we knew more about your current disk usage. Post your partitioning and free space, output from the following commands done as root Code:
/sbin/fdisk -l |
Code:
Disk /dev/sda: 500.1 GB, 500107862016 bytes this is the output of the command "fidisk -l".actually.i had wrongly created swap partition in the installation by giving "/swap with ext3 partition".i have deleted that 2gb partition.and that 2gb is in my system as unallocated space..how to make it as swap partition.i had used "gparted"..but get error.. |
Quote:
I assume the 2GB you mean is sda7. In the fdisk -l output you posted, sda7 has not been deleted and there is no unallocated space on that drive. One of the the reasons I asked for output from df is to find out which partitions are mounted where in your directory tree. Output from mount would also tell that (since now I understand you don't need to resize any partition, so we don't need to know about free space inside partitions). So you want to make sure sda7 isn't mounted nor in etc/fstab to be remounted. Then you want to know how to delete it, recreate and format it as a swap partition and enable use of that swap partition. |
If you rarely ever need swap, you may as well leave your partitions as they are and create a swap file instead. They used to be slower than swap partitions but that has not been the case for several years now (if the kernel developers are to believed - and I don't see why not).
|
Quote:
On my own systems, I don't use suspend to disk, so it is usually convenient that multiple different liveCDs and installed copies of Linux all use the same swap partition. That would be a lot messier with a swap file. When switching versions or distributions of Linux, I usually want to shrink the existing installed Linux and create a new partition for the new one, then install, test and copy things to the new one all before trashing the old one. Keeping the swap space outside of the file system means it is one less thing taking time, extra space and complexity during such a transition. Contrast that to Windows where you often need to turn off paging and delete the pagefile before changing the partition size, then turn paging back on afterwards. |
All times are GMT -5. The time now is 03:32 AM. |