LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-28-2016, 04:41 PM   #1
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Rep: Reputation: 1
How Can I Find Start and Stop Memory Address for Linux Memtester Program


Hello,

I am learning about the linux memtester program because I would like to use this tool to test some custom boards we are working on. I was told I would be given a start and stop physical address to test these devices. Right now I am just playing with the tool using a Ubuntu VM and I am trying to test the tool and issue a physical memory address to it.

My problem is I do not know how to determine the starting physical memory address and from most googling I have done so far there does not seem to be a clear way from userspace to get the start/stop physical memory address. Does anyone have any ideas on how I can do this? Or even how to do this from kernel land in a simple way?

Thanks in advance,

Joe
 
Old 03-29-2016, 11:47 AM   #2
dazdaz
Member
 
Registered: Aug 2003
Location: Europe
Distribution: RHEL, CentOS, Ubuntu
Posts: 333

Rep: Reputation: 17
Hi,

Would be useful if you could please share more information.

What do you mean by custom boards exactly. Is this like a breadboard, such as a RaspBerry Pi device connected to physical hardware running virtualisation software ?

Are you using 32bit or 64bit hardware and OS ?

Are you intending to run the memory testing tool running from within the VM or on the Hypervisor or on bare metal or on the custom board ?

What type of virtualisation are you using.

Out of curiosity, what type of processor are you using.

Do you want to only test physical RAM or Virtual RAM as well ( presumably not ) ?

Have you populated your motherboard with SDRAM memory chips and if so how many and of what configuration.

Are there SDRAM chips or another type that you want to test on the "custom board" ?

Can you share a little more information pls.

Thanks

Last edited by dazdaz; 03-29-2016 at 01:45 PM.
 
Old 03-29-2016, 01:40 PM   #3
danmartinj
Member
 
Registered: Oct 2009
Posts: 117

Original Poster
Rep: Reputation: 1
Hey dazdaz,

I actually have limited knowledge myself on some of these details.
As far as I know its a custom board built by some vendor which I do not know. It is running arm 64bit processor. The board appears to fit into a standard pc case. I am testing as far as I know just RAM. Matter of fact I actually just built the software on the machine today so I know memtest works on arm.

I am now trying to understand more how the program works...I am just using my vm as a way to learn the program and test it out. At the moment I know if you execute the binary with the amount of memory you want it will try to test that amount of memory. For example, on a 2G of RAM VM if I run.

./memtest 1500 1

The program will output all the tests in its test case and report on success or fail. Now I am wondering how does it determine where to start. I know it uses mmap to map the memory, malloc to access it and mlock to lock it while testing...I just feel like I am not understanding some pretty important details at the moment. The code I got from here: https://github.com/jnavila/memtester

Thanks in advance,
Joe
 
  


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
Memtester shows bad memory - what to do? nethomas1968 Linux - Hardware 4 11-27-2013 09:01 PM
[SOLVED] Scheduling a program to automatically start/stop jestinjoy Linux - Newbie 2 04-16-2009 03:51 AM
'simple' script help needed (start/stop program) powadha Linux - Software 1 03-26-2009 01:44 PM
How can I determine the memory starting address of my c++ program? myhouri Programming 2 07-23-2008 07:50 AM
Program to view the contents of memory at a particular address kushalkoolwal Linux - Software 2 06-04-2008 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:44 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
Open Source Consulting | Domain Registration