LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 03-10-2010, 03:29 AM   #1
pmurthy
LQ Newbie
 
Registered: Mar 2010
Posts: 1

Rep: Reputation: 0
VmRSS increases but VmData does not


I have written one sample code where I allocate memory and then free it. What I observed was whenever allocation was done, VmData is increased. Whenever that memory is accessed (memset or use it), VmRss is increased. When that pointer is freed, both VmData and VmRSS come back to original value.

But I am working on an existing code, where the system memory is constantly increasing. I have used all memory leak tools and am not finding leaks. What my observation is VmRSS is increasing by 4k constantly. When it increases by a few times then only VmData is increases and eventually VmSize and system then runs out of memory.

Can anybody explain why VmRSS is increasing and VmData is not increasing.

I have verified it on Linux - 2.4 kernel

Regards,
Prashant
 
Old 12-17-2010, 03:40 PM   #2
Beanburrito
LQ Newbie
 
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
I've just been reading on the same topic. Data (heap) is not the only thing that contributes to the total virtual memory allocation. For instance, is VmStk (stack) also increasing at the same time that VmRSS increases?
 
  


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
System load average increases with time starless Linux - Server 1 10-23-2006 08:54 AM
About Renice demanding monotonical increases xp2all Linux - Security 1 09-01-2004 12:49 AM
Virtual Memory: What does VmRSS actually stand for in English fancypiper Linux - General 2 06-05-2004 03:09 AM
Memory behviour - it just increases EcceVery Debian 1 05-10-2004 05:24 PM
memory used increases anikj Linux - General 3 11-05-2003 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 02:43 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