LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2009, 11:58 PM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 484

Rep: Reputation: 30
change memory size without re-install the os !


Friends ,

Is it possible to change the memory size while the linux server is running ?

Actually , I need to decrease the swap size and also increase the physical memory size . Without formatting can I do it ? I m using RHEL 5 linux server .

Waiting for quick reply ... ...
 
Old 02-19-2009, 12:21 AM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
Ok, in order to add more memory(ram) you have to shut the machine down, there is no way around this.

You can reduce the size of swap by, unmounting swap, use gparted to shrink size of swap, and remount swap.


The more important question is why you want to reduce the size of the swap? Reducing the size of the swap will not make you machine run any faster.

Edit: Either way you do not need to reinstall the OS.

Last edited by lazlow; 02-19-2009 at 12:22 AM.
 
Old 02-19-2009, 01:14 AM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
actually shouldnt the swap partition be the same size as physical ram? or is that concept outdated?
 
Old 02-19-2009, 01:18 AM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 172Reputation: 172
The old rule used to be twice the swap as you have physical ram. The arguments about swap are about the same as the Gnome VS Kde in that there is no "absolute" answer. It all depends on what you doing and how the apps that you are doing it with were designed.
 
Old 02-19-2009, 01:40 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,842

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Quote:
Originally Posted by lazlow View Post
Ok, in order to add more memory(ram) you have to shut the machine down, there is no way around this.
Weeelll ... actually the kernel does support memory hotplugging. Both adding and removing.
The likelihood of the OP having the appropriate hardware and kernel level is probably very slim.

As mentioned, resizing swap is generally pretty painless.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tool to detect number of memory slots, memory module type, speed, and size stefanwolf Linux - Hardware 8 04-22-2013 10:48 AM
How to change section size in memory hotplug tom5 Linux - Kernel 1 01-07-2009 10:00 PM
How to change section size in memory hotplug tom5 Linux - Newbie 1 01-06-2009 12:53 PM
Change boot memory size gloridel Linux - Hardware 3 04-17-2007 02:43 AM
is shared memory expandable in memory size? Thinking Programming 4 08-16-2005 10:57 AM


All times are GMT -5. The time now is 10:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration