$OpenBSD$ Index: src/mongo/util/processinfo_openbsd.cpp --- src/mongo/util/processinfo_openbsd.cpp.orig +++ src/mongo/util/processinfo_openbsd.cpp @@ -185,29 +185,15 @@ bool ProcessInfo::supported() { } bool ProcessInfo::blockCheckSupported() { - return true; + return false; } bool ProcessInfo::blockInMemory(const void* start) { - char x = 0; - if (mincore((void*)alignToStartOfPage(start), getPageSize(), &x)) { - log() << "mincore failed: " << errnoWithDescription(); - return 1; - } - return x & 0x1; + return false; } bool ProcessInfo::pagesInMemory(const void* start, size_t numPages, std::vector* out) { - out->resize(numPages); - // int mincore(const void *addr, size_t len, char *vec); - if (mincore((void*)alignToStartOfPage(start), numPages * getPageSize(), &(out->front()))) { - log() << "mincore failed: " << errnoWithDescription(); - return false; - } - for (size_t i = 0; i < numPages; ++i) { - (*out)[i] = 0x1; - } - return true; + return false; } // get the number of CPUs available to the scheduler