Commit Graph

16 Commits

Author SHA1 Message Date
77b997d429 Include stropts only if __sun is defined. 2014-12-09 12:59:43 +01:00
d409371193 Fix implicit declaration of ioctl on Solaris 2014-12-09 12:57:59 +01:00
282c6106ce memtest: Add missing free()
Closes #1614
2014-08-27 10:25:00 +02:00
850117a8a5 Fixed a bug in memtest progress bar, that had no actual effects.
This closes issue #859, thanks to @erbenmo.
2013-01-21 12:38:46 +01:00
cd99c14e38 On crash memory test rewrote so that it actaully works.
1) We no longer test location by location, otherwise the CPU write cache
completely makes our business useless.
2) We still need a memory test that operates in steps from the first to
the last location in order to never hit the cache, but that is still
able to retain the memory content.

This was tested using a Linux box containing a bad memory module with a
zingle bit error (always zero).

So the final solution does has an error propagation step that is:

1) Invert bits at every location.
2) Swap adiacent locations.
3) Swap adiacent locations again.
4) Invert bits at every location.
5) Swap adiacent locations.
6) Swap adiacent locations again.

Before and after these steps, and after step 4, a CRC64 checksum is computed.
If the three CRC64 checksums don't match, a memory error was detected.
2012-11-29 10:24:41 +01:00
d4b5c4803b Fast memory test on Redis crash. 2012-11-22 10:28:48 +01:00
8ddb23b90c BSD license added to every C source and header file. 2012-11-08 18:34:04 +01:00
603adb2b29 memtest.c fixed to actually use v1 and v2 in memtest_fill_value(). 2012-04-27 16:28:31 +02:00
206568257a memtest.c: integer overflow fixed. 2012-04-13 16:12:28 +02:00
ef278d110f Macros ULONG_ONEZERO / ULONG_ZEROONE were inverted in #ifdef to test 32/64 bit arch. 2012-04-11 12:03:21 +02:00
a7ef5ce1b0 Memory addressing test implemented. 2012-03-19 14:02:57 +01:00
ea693f0282 More memory tests implemented. Default number of iterations lowered to a more acceptable value of 50. 2012-03-18 18:03:49 +01:00
74760d3ccd Fixed typo. 2012-03-18 17:28:03 +01:00
32f62ed6d0 Number of iteration of --test-memory is now 300 (several minutes per gigabyte). Memtest86 and Memtester links are also displayed while running the test. 2012-03-18 17:24:48 +01:00
d605fdabfa Memory test function now less boring thanks to screen-wide progress bar. 2012-03-18 11:43:02 +01:00
f4df22d1c5 Hem... actual memtest.c file added. 2012-03-18 11:42:56 +01:00