Re: [gtkmm] Increasing SWAP memory w/o formatting HDD

Ramachandra Putti wrote:

Hi all,
I am asking a question about Swap partition.
I work on  Redhat Linux 7.3 previously i had 128 mb ram on my machine
and my swap partition was 256 mb. Now i have increased  my RAM capacity
to 256. As linux recommended swap area should be double as RAM.
How i could increase my Swap partition without formating my hard disk.


To add a swap file:


     Determine the size of the new swap file and multiple by 1024 to
     determine the block size. For example, the block size of a 64 MB
     swap file is 65536.


     At a shell prompt as root, type the following command with count
     being equal to the desired block size:

dd if=/dev/zero of=/swapfile bs=1024 count=65536


     Setup the swap file with the command:

mkswap /swapfile


     To enable the swap file immediately but not automatically at boot

swapon /swapfile


     To enable it at boot time, edit /etc/fstab to include:

/swapfile               swap                    swap    defaults        0 0

     The next time the system boots, it will enable the new swap file.


     After adding the new swap file and enabling it, make sure it is
     enabled by viewing the output of the command cat /proc/swaps or free.


Because after increasing RAM i am unable to run my important programs.

It gives  "could not allocate enough memory for an uncompressed image "
error when i run it.
Thanks inadvance
I have also solved the installation of GTKmm2.4 libraries. I shall reply tommorrow for the benefit of all. Ramachandra

gtkmm-list mailing list
gtkmm-list gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]