How to increase the size of virtual memory on linux?



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...

By : cpanel.net



Related Posts:



Responses

0 Respones to "How to increase the size of virtual memory on linux?"

Post a Comment

»Thank you for reading this article
If you have questions or comments, please leave a comment
»You can click on the Subscribe by email to subscribe comments of this post
»You can register directly link pictures, mp3, video on the comment form.
»You may use some HTML tags such
»Please post comments polite and typing accented Vietnamese if possible
»Thank the good faith comment

 

Categories

Recent Comments

Error loading feed.

Total Pageviews

624878
Return to top of page ©Web Server Tips Tricks 2010 | Develop by Mr.PhanQuan .Powered by Blogger . All rights reserved.