Commit c2d23dd9 authored by Ruben Laso Rodríguez's avatar Ruben Laso Rodríguez
Browse files

Minor changes.

parent d3a69055
......@@ -479,7 +479,7 @@ int main(int argc, char * argv[]) {
case 'M':
migration::percentage_memory_migrations = strtod(optarg, nullptr);
if (VERBOSE_LVL >= DEFAULT_VERB) {
std::cout << "Percentage of memory pages to migrate per iteration: "
std::cout << "Percentage of memory regions to migrate per iteration: "
<< migration::percentage_memory_migrations << '\n';
}
break;
......
......@@ -155,8 +155,7 @@ namespace memory_info {
throw std::runtime_error(error.str());
}
inline const addr_t page_to_region_address(const addr_t addr)
{
inline const addr_t page_to_region_address(const addr_t addr) {
return address_to_mem_region(addr).address();
}
......@@ -244,7 +243,7 @@ namespace memory_info {
inline bool move_region(const addr_t addr, const pid_t pid, const int node) {
const auto & region = memory_info::address_to_mem_region(addr);
size_t count = region.bytes() / pagesize;
size_t count = region.bytes() / pagesize;
std::vector<void *> pages(count, 0);
std::vector<int> statuses(count, 0);
......@@ -270,7 +269,7 @@ namespace memory_info {
if (ret < 0 && VERBOSE_LVL > DEFAULT_VERB) {
std::cerr << "Error migrating " << count << " pages starting from address " << std::hex
<< reinterpret_cast<void *>(addr) << std::dec << ": " << strerror(errno) << '\n';
<< reinterpret_cast<void *>(addr) << std::dec << ": " << strerror(errno) << '\n';
}
return ret == 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment