Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ruben Laso Rodríguez
Thanos
Commits
c2d23dd9
Commit
c2d23dd9
authored
Aug 21, 2020
by
Ruben Laso Rodríguez
Browse files
Minor changes.
parent
d3a69055
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/migration_tool.cpp
View file @
c2d23dd9
...
...
@@ -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
page
s to migrate per iteration: "
std
::
cout
<<
"Percentage of memory
region
s to migrate per iteration: "
<<
migration
::
percentage_memory_migrations
<<
'\n'
;
}
break
;
...
...
src/system_info/memory_info.hpp
View file @
c2d23dd9
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment