Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 01-12-2010, 09:58 AM   #1
LQ Newbie
Registered: Nov 2009
Posts: 8

Rep: Reputation: 0
Linux Physical Memory info


I am new to programming so DO treat me as a noob

I am looking for some info on how to get information about physical memory. Basically I want to run through the whole RAM and poll some information (block sizes etc)
Are there any libraries for this?

I am already reading about writing a kern modules.

I would appreciate any info or pointers to some tutorials

Last edited by gottimw; 01-12-2010 at 10:12 AM.
Old 01-12-2010, 01:55 PM   #2
Registered: Sep 2004
Distribution: FC, ubuntu, OpenSuse
Posts: 112

Rep: Reputation: 16
Not sure what you mean here by "poll". If you mean search all of the ram, it's not going to possible with out hacking the kernel as far as I know do to what is called protection. Each process's address space is protected from othe rprocesses, that way one bad program can't bring the system down.
Old 01-12-2010, 08:01 PM   #3
Senior Member
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Originally Posted by gottimw View Post

I am new to programming so DO treat me as a noob
I am already reading about writing a kern modules.
New to programming I would stay out of the kernel stuff for now until you get better understanding of how it manages memory and such or for that matter how 32bit protected mode handles memory. I know enough C to get me in trouble and I think ill always be a noob compared to some of the people here but even I know to stay out of the kernel.


linux, memory, module

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
Restricting available physical memory in Linux marcdbl Linux - Kernel 3 11-06-2009 09:29 AM
PCIe dma-able memory location in physical memory for Intel Nehalem / Tylersburg arch robvoo Linux - Kernel 4 07-31-2009 06:21 AM
Physical memory request to Linux Kernel tanmay.anjaria Linux - Newbie 2 02-06-2008 11:31 PM
how can i run 3 linux virtual machines without going out of physical memory asterik123 General 7 04-14-2007 05:51 PM
Total system physical memory information in linux bhavishya_goel Linux - Kernel 2 08-15-2006 01:22 PM > Forums > Non-*NIX Forums > Programming

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