LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-01-2010, 08:41 AM   #1
qrohit
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Smile RAM access using a c program


hello and Namastey!
i am developping a tool for freeing up unused ram in linux ubuntu.
i am finding something through which i would be able to access the ram of my pc using my c program.
please tell me if there is a way to do so.
is there any system call available? or i have to do programming at kernel level? (i mean do i have to compile the whole kernel?)
 
Old 10-01-2010, 10:34 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Jessie (Fluxbox WM)
Posts: 1,387
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
You can examine memory using the /proc/kcore handle, assuming that you don't care about the physical memory address.

However, you will find that Linux already makes use of as much RAM as it can; if it isn't in use by applications, it will be used for disk caching.
 
Old 10-04-2010, 07:33 AM   #3
qrohit
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
thank you very much..
i read the utilities provided by /proc
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
ram/cpu usage etc... program Ken~ Linux - Software 2 08-28-2007 06:38 PM
any program to convert .ram to mp3 for ubuntu? izquierdista Ubuntu 1 05-26-2007 08:43 AM
a RAM check program? kpachopoulos Linux - General 2 11-06-2005 05:59 PM
RAM Testing program swmok Linux - Software 5 04-12-2005 11:39 PM
Is there a free program to test PC RAM? ChristophThoel Programming 3 11-01-2004 06:13 AM


All times are GMT -5. The time now is 06:58 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration