Swap File Management
Add system swap space for virtual memory paging:
Swap space may be a swap partition, a swap file or a combination of the two.One should size swap space to be at least twice the size of the computer's RAM. (but less than 2GB)
· dd if=/dev/zero of=/swapfile bs=1024 count=265032 - Create file filled with zeros of size 256Mb
· mkswap /swapfile - Create swap file
· swapon /swapfile - Begin use of given swap file. Assign a priority with the "-p" flag.
· swapon -s - List swap files
· cat /proc/swaps - Same as above
This
example refers to a swap file. One may also use a swap partition. Make entry to
/etc/fstab to
permanently use swap file or partitionIf you are facing any issue please post or comment on
http://linuxtipsandsolution.blogspot.in/
good one
ReplyDeleteThanks Sir for uploading wonderfull information, plz keep sending this kind of userfull commands and suggestion, so that kind of me newbei can understand these things easyliy,
ReplyDeletethanks once again
Thanks For your commnets .. I Will :-)
ReplyDelete