Permalink
Browse files

Relaxing the error message about huge pages to something more informa…

…tive.
  • Loading branch information...
1 parent b9cd851 commit c38492a0955e9d742452c1bedb2191b27f750b6c @dave-andersen committed Jan 13, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main_poolminer.cpp
View
@@ -205,7 +205,7 @@ class CWorkerThread { // worker=miner
void *addr;
addr = mmap(0, bigbufsize, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_HUGETLB, 0, 0);
if (addr == MAP_FAILED) {
- perror("Could not mmap hugepage, reverting to malloc");
+ printf("Couldn't use the hugepage speed optimization. Enable huge pages for a slight speed boost.\n");
_collisionMap = (uint32_t*)malloc(sizeof(uint32_t)*(1 << COLLISION_TABLE_BITS));
} else {
madvise(addr, bigbufsize, MADV_RANDOM);

0 comments on commit c38492a

Please sign in to comment.