Re: memory leaks

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

 



Hi,


--- taha hafeez <tawushafeez@xxxxxxxxx> escreveu:

> I have tried a number of examples of device drivers. 
> But I am not sure how to check for memory leaks...
> 
> Can I do that and how ????

There is an example from http://relayfs.sourceforge.net/examples.html
that uses relayfs to track memory allocation in kernel space.

If you want to track memory leak in user space, you can get many
information from /proc. If you want to analyse memory consumption per
process, you can access some entries under /proc/$PID as statm, status
and smaps. 

Type 'man proc' on your terminal to get more information about proc.

BR,

Mauricio Lin.

> 
> // I am really enjoying myself in this mailing list...
> // I check my mail twice a day to see that everyone is writing
> // and i read everything and understand almost nothing... but
> // still it is fun....
> thanks in advance 
> taha
> 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> 



	



	
		
_______________________________________________________ 
Yahoo! doce lar. Faça do Yahoo! sua homepage. 
http://br.yahoo.com/homepageset.html 


--
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