LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices



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

Rep: Reputation: 0
Linux Physical Memory info


Hi

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 11:12 AM.
 
Old 01-12-2010, 02:55 PM   #2
santana
Member
 
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, 09:01 PM   #3
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
Quote:
Originally Posted by gottimw View Post
Hi

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.
 
  


Reply

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


All times are GMT -5. The time now is 02:29 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration