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.

from:

http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html

To add a swap file:

  1.

     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.

  2.

     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

  3.

     Setup the swap file with the command:

mkswap /swapfile

  4.

     To enable the swap file immediately but not automatically at boot
     time:

swapon /swapfile

  5.

     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.

  6.

     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.


Jeff

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
http://mail.gnome.org/mailman/listinfo/gtkmm-list





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