is your RAM corrupt
memtester showing errors
14.29%
1
memtester not finding any errors
85.71%
6
7 vote(s)
* You voted for this item. [Show Results]

My RAM is corrupted
#11
(03-14-2018, 05:44 PM)z4v4l Wrote:
Quote:I wonder why did the built in memtest not detect even a single one of these errors in my old device?
maybe because it's a bad memtest? Smile

Loooking at the sourcecode of it immediately shows the first obvious problem:

https://github.com/torvalds/linux/blob/m.../memtest.c

in line 52 the compiler optimization is totally alllowed to assume that if (*p == pattern) will always evaluate to true because it can prove it has just filled the same memory with pattern and nobody could have changed it in the mean time (compiler optimization can assume that variables and memory locations don't just change their values on their own, unless explicitly told otherwise), so the compiler can optimize away the entire code path below, it could even optimize away the first loop because it does not change the result of the computation, the entire function becomes a no-op with always the same result.

There should either be a compiler barrier like volatile asm("":::"memory") between the two loops to indicate that something could have changed the memory or the pointer should be declared volatile u64* p to indicate that this memory has the ability to change on its own. The latter would be cleaner and more portable.

(03-14-2018, 05:44 PM)z4v4l Wrote: I hope your new board is OK. Smile

The new board seems OK (at least 1.8G of 2G are ok, cannot yet test the remaining RAM because of a lack of testing tools). memtester shows no errors in the unallocated RAM anymore and file copy does not corupt files anymore. I guess this device is most likely ok.


Messages In This Thread
My RAM is corrupted - by prof7bit - 03-12-2018, 01:26 PM
RE: My RAM is corrupted - by Luke - 03-12-2018, 02:59 PM
RE: My RAM is corrupted - by belfastraven - 03-12-2018, 05:02 PM
RE: My RAM is corrupted - by z4v4l - 03-13-2018, 06:42 AM
RE: My RAM is corrupted - by dkryder - 03-13-2018, 08:09 PM
RE: My RAM is corrupted - by prof7bit - 03-14-2018, 03:11 AM
RE: My RAM is corrupted - by dkryder - 03-15-2018, 05:03 AM
RE: My RAM is corrupted - by Luke - 03-14-2018, 03:26 AM
RE: My RAM is corrupted - by z4v4l - 03-14-2018, 09:37 AM
RE: My RAM is corrupted - by prof7bit - 03-14-2018, 12:58 PM
RE: My RAM is corrupted - by z4v4l - 03-14-2018, 05:44 PM
RE: My RAM is corrupted - by prof7bit - 03-15-2018, 01:58 AM
RE: My RAM is corrupted - by S3phi40T - 03-16-2018, 02:42 AM
RE: My RAM is corrupted - by brunohiecque - 03-17-2018, 04:51 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)