LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 05-23-2012, 02:10 PM   #1
eobr1eno
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Rep: Reputation: 0
Memory allocation shown on Linux 5.6 VM guest OS does not seem to release when applic


Hi,
On our VMWare Linux guest we have 8gb of ram, we have applications running but when they are shut down the memory allocation via top still shows 5gb used.
No processes are showing memory usage so I am confused as to why the memory has not been released.

Any help greatfully received.
top output below..

Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 99.3%id, 0.5%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 7927772k total, 5998852k used, 1928920k free, 129348k buffers
Swap: 2097144k total, 368k used, 2096776k free, 555644k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
13149 pcc 16 0 12588 1064 812 S 0 0.0 0:11.74 top
1 root 15 0 10328 692 580 S 0 0.0 0:00.85 init
2 root RT -5 0 0 0 S 0 0.0 0:00.07 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/0
4 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0 0.0 0:00.03 migration/1
6 root 34 19 0 0 0 S 0 0.0 0:00.00 ksoftirqd/1
7 root RT -5 0 0 0 S 0 0.0 0:00.01 watchdog/1
8 root 10 -5 0 0 0 S 0 0.0 0:06.65 events/0
9 root 10 -5 0 0 0 S 0 0.0 0:02.03 events/1
10 root 10 -5 0 0 0 S 0 0.0 0:00.02 khelper
75 root 11 -5 0 0 0 S 0 0.0 0:00.00 kthread
80 root 10 -5 0 0 0 S 0 0.0 0:00.11 kblockd/0
81 root 10 -5 0 0 0 S 0 0.0 0:00.07 kblockd/1
82 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid
138 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0
139 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1
 
Old 05-23-2012, 07:17 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Linux manages memory on demand. The memory will be released when a process needs it...
 
Old 05-23-2012, 07:42 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,152

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Let's see what /proc/meminfo has in it - and this time pls use [code] tags.

Last edited by syg00; 05-23-2012 at 07:46 PM.
 
Old 05-31-2012, 12:24 PM   #4
eobr1eno
LQ Newbie
 
Registered: Mar 2010
Posts: 2

Original Poster
Rep: Reputation: 0
meminfo output

[pcc@RWCPCCVMCS19-64 ~]$ /proc/meminfo
-bash: /proc/meminfo: Permission denied
[pcc@RWCPCCVMCS19-64 ~]$ cat /proc/meminfo
MemTotal: 7927772 kB
MemFree: 1821604 kB
Buffers: 188336 kB
Cached: 599884 kB
SwapCached: 368 kB
Active: 418464 kB
Inactive: 417068 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 7927772 kB
LowFree: 1821604 kB
SwapTotal: 2097144 kB
SwapFree: 2096776 kB
Dirty: 80 kB
Writeback: 0 kB
AnonPages: 46904 kB
Mapped: 23328 kB
Slab: 90752 kB
PageTables: 7412 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
CommitLimit: 6061028 kB
Committed_AS: 152912 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 1708 kB
VmallocChunk: 34359736567 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
Hugepagesize: 2048 kB
 
  


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
Guest to Host message passing - guest's memory usage statistics & guest's IP address Prince_Pangeni Linux - Virtualization and Cloud 2 03-03-2012 03:06 AM
VMware RHEL5 guest OS memory cache release dap263 Linux - Virtualization and Cloud 2 07-14-2010 08:41 AM
Memory allocation in Linux nilathinesh Linux - Newbie 6 05-05-2010 03:53 AM
how does linux handle memory allocation? nodger Programming 4 04-17-2004 10:10 PM
Linux memory allocation to programs mlaudu Linux - Software 1 03-29-2004 04:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:48 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
Open Source Consulting | Domain Registration