LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-07-2011, 05:37 AM   #1
tefkros
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
free up swapp memory


hello i've noticed that in my first node the swap memory is almost full

hown can i free up the swap memory?

thank a lot
 
Old 11-07-2011, 06:23 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by tefkros View Post
hello i've noticed that in my first node the swap memory is almost full

hown can i free up the swap memory?

thank a lot


Code:
check the swap space
#free -m
Code:
If you have manually created any swap file or partition then you can point to that particular file or partition using this command
#swapoff -a
or
#swapoff /dev/sdax
or
#swapoff path/to/file/
Code:
and to move back to your previous swap memory
#swapon -a
#swapon -s -----> it shows the partition where swap is created
 
Old 11-07-2011, 06:56 AM   #3
tefkros
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks a lot deepak
 
Old 11-07-2011, 07:27 AM   #4
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by tefkros View Post
in my first node the swap memory is almost full
What is a "node" ?

If this is some kind of virtual machine rather than physical, you should include that info when asking memory management questions.

Some virtual machines have very confusing memory management behaviors, very different from a physical machine. So if you try to apply methods appropriate to a physical machine, you are just interfering with the designed behavior of the virtual machine.

Quote:
hown can i free up the swap memory?
Why do you want to?

If a physical machine running correct applications and services has used most of its swap space, that probably means you didn't configure enough swap space. You should be adding more swap space, rather than trying to free what has been used.

If some services that you don't need are running and causing use of swap space, you should be trying to identify those and stop them, rather than trying to do something system wide about a service specific problem.

Similarly, if some application or service has a memory leak, you should identify and address the specific problem.
 
Old 11-07-2011, 07:31 AM   #5
tefkros
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
hello johnsfine

i talking about physical machines. Actually there is a two node RAC. We have our oracle production database.

the swap is 20GB
RAM is 256GB
 
  


Reply



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
looking for free database that has low memory usage and innodb and memory like engin golden_boy615 Linux - Software 8 05-08-2011 07:05 AM
Application Virtual address space memory allocation - memory does not get free chamara82 Linux - General 4 01-01-2011 08:19 PM
[SOLVED] Free-ing memory problem. C/C++, free() sevs Programming 6 03-13-2010 12:31 PM
[SOLVED] Memory leak: How risky not to free allocated memory. kaz2100 Linux - General 1 12-24-2008 12:00 AM
Does free( ) immediatly free the memory? Rayven Programming 24 11-06-2006 02:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:23 PM.

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
Open Source Consulting | Domain Registration