LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 09-04-2003, 07:59 AM   #1
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
anybody has idea on how to test this?


First of all, thank you all for the help in advance.
I'll check the memory situation during the Linux running.
The memory would be exposed to some harsh environment, like radiation, which would occasionally erase the content of the memory. The aim of the testing is to find out the possibility this might happen.

I am thinking basically using the malloc() function, two arrays. For example, first allocate a certain area of the memory, then write a series of data 1,2,3..... as an array to it. Wait a certain amount of time, read back this series and compare with the origianal one.

I feel the idea rather rustic and looking for an idea. Anybody got any ideas?

Thanks again.
 
Old 09-04-2003, 10:27 AM   #2
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
if your aim is to check how memory is effected by environmental conditions then i would write a little bootsector that enables the a20 line, enters protected mode, sets up a segment that allows linear access to to the memory you want to test. and loops through writing a value to each byte based on its address, then loops through again reading and verifying sending any incorrect addresses/bytes through the serial port.

the reason i dont like your idea is you cant test kernel memory, or the memory of other processes.
 
Old 09-04-2003, 10:42 AM   #3
Hko
Senior Member
 
Registered: Aug 2002
Location: Groningen, The Netherlands
Distribution: Debian
Posts: 2,536

Rep: Reputation: 111Reputation: 111
Is this something you could use?

http://www.memtest86.com/
 
Old 09-05-2003, 03:29 AM   #4
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Original Poster
Rep: Reputation: 31
Thank you all. I have checked out memtest86, but probably it is not the one for this problem. Since my aim is to verify if some of the memory content is changed during the system is running.

Hi Kev2, thank you very much for your idea. It sounds farely interesting. Would you give me some links on how to do the following?

1. How to write the bootsector in Linux that enables the a20 line, enters protected mode and set up a segment that allows linear access to to the memory you want to test? (sorry but I have never written any boot sector before and I have no idea about this)

2. If writing a value to each byte based on its address, do I modify the original content in the memory used by other process, or the kernel, as you have indicated?

Thanks infinitive for the helps
 
Old 09-05-2003, 03:51 AM   #5
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
ive just checked out memtest86 and it already does pretty much what i suggested, in my way there would be no operating system/kernel running either, only my tester. it makes no sense to try and run a memory checker with an operating system running because you cant check all the memory.

Quote:
during the system is running.
can you explain what you mean by this and why memtest86 is no good.
 
Old 09-11-2003, 02:21 AM   #6
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Original Poster
Rep: Reputation: 31
Many apologize for this reply in delay. It has been a while I am far from the internet.

Yes kev82 you are right. Originally I was planning to integrate the memory test in the major testing routin, including the USB, serial, parallel, etc. I realize now probably I need to test the memory seperately. Otherwise I could only use the statistics to calculate the P. Probably the same applys on the USB testing. (so far the easist way I've found is to retrieve the information tree from the USB file system under /proc, or, just attach a flash pen to see whether it works)

My target system has no development environment, pretty like an embeded system. In order words, I can only compile and link the software on the host PC and load ONLY the executable file into that flash memory. I'll see whether it is possible for the memtest86.

Many thanks to you kev82
 
  


Reply



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
Test tool of CPU in linux.... do any one has any idea.. rajsun Programming 4 04-03-2005 06:47 AM
FC4 Test 1 CD Test failes every DISC Jimbo99 Linux - Software 1 03-18-2005 03:16 PM
9.1 to 10 idea Mr Marmmalade Slackware 6 06-27-2004 05:13 PM
Just a Idea balam Linux - General 1 02-01-2003 04:55 PM
an Idea balam Linux - Newbie 1 02-01-2003 04:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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