Guys,
When a Linux system is initially set up, a swap partition is created on the hard drive that will be used as virtual memory in Linux, along with other partitions used for data.
Here are the steps to create the swap file :
======
#dd if=/dev/zero of=/mnt/swapfile bs=1M count=1024
#mkswap /mnt/swapfile
#swapon /mnt/swapfile
#echo "/mnt/swapfile none swap defaults 0 0" >> /etc/fstab
======
That's it :
Note : I shall discuss about the virtual memory(What exactly it is) and how kernel is creating virtual address space for a process before loading the process on the physical memory ie RAM(Primary memory). Just follow me...
Tc :)
Sunday, 16 January 2011
How to increase the size of virtual memory on linux?
Posted on 10:37 by Unknown
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment