Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-01-2010, 07:41 AM   #1
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, 09:34 AM   #2
Senior Member
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Buster (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 358Reputation: 358Reputation: 358Reputation: 358
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, 06:33 AM   #3
LQ Newbie
Registered: Oct 2010
Posts: 2

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


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

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration