[-]
[+]
|
Changed |
memtester.spec
|
|
[-]
[+]
|
Changed |
memtester-4.2.2.tar.bz2/CHANGELOG
^
|
@@ -1,4 +1,10 @@
-Version 4.2.1
+Version 4.2.2
+22 July 2011
+ -add progress message for one more errno value (EAGAIN) in response to failed
+ mlock; BSDs use this to indicate the lock failed due to being over a system
+ or process limit, much like ENOMEM.
+
+ Version 4.2.1
3 October 2010
-fix offsets/addresses were not being reported correctly in test failure
messages. Thanks: Anton Sergeev.
|
[-]
[+]
|
Changed |
memtester-4.2.2.tar.bz2/memtester.c
^
|
@@ -12,7 +12,7 @@
*
*/
-#define __version__ "4.2.1"
+#define __version__ "4.2.2"
#include <stddef.h>
#include <stdlib.h>
@@ -274,6 +274,12 @@
/* Try mlock */
if (mlock((void *) aligned, bufsize) < 0) {
switch(errno) {
+ case EAGAIN: /* BSDs */
+ printf("over system/pre-process limit, reducing...\n");
+ free((void *) buf);
+ buf = NULL;
+ wantbytes -= pagesize;
+ break;
case ENOMEM:
printf("too many pages, reducing...\n");
free((void *) buf);
|