RE:RE: Physical memory size allocated for each process!

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

 



For all I know mm_struct has a list of vm_areas that means regions of virtual memory (not physical memory). Each region can be a stack, text(code), data and so on.

mm_struct doesn't show directly the the size of stack, text(code), data in physical memory. How can I get it?

Mauricio Lin/Allan Bezerra
INdT Linux Lab

-----Original Message-----
From: ext Daniele Bellucci [mailto:bellucda@tiscali.it]
Sent: Thursday, November 13, 2003 2:00 PM
To: Bezerra Allan (EXT-INdT/Manaus)
Cc: kernelnewbies@nl.linux.org
Subject: Re: Physical memory size allocated for each process!


On Thu, Nov 13, 2003 at 08:19:36AM -0400, Allan.Bezerra@indt.org.br wrote:
|Hi all,
|
|I was trying to get the stack, heap, data and code size separately allocated in physical memory but I did not manage to get them from /proc.
|
|I took a look the linux kernel source 2.6, but I did not discover any variables or structures about stack, heap, data and code size allocated in physical memory.
|
|I just found those information allocated in virtual memory.
|
|Please, could anybody help me?

as i said before, look at the "struct mm_struct "


-- 

Daniele.




"I could have made money this way, and perhaps amused myself writing code. 
But I knew that at the end of my career, I would look back on years of 
building walls to divide people, and feel I had spent my life making the 
world a worse place."                               
                                                          Richard Stallman


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux