Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
cbc270e8
Commit
cbc270e8
authored
Aug 31, 2015
by
Leigh B Stoller
Browse files
Need more padding beyond dom0mem, for ram usage. Just saw a case where
we had 768K of real memory left, but we wanted 1024 for a VM.
parent
32d6c605
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/ptopgen.in
View file @
cbc270e8
...
...
@@ -954,7 +954,10 @@ if ($virtstuff) {
"
and r.exptidx!=
"
.
$experiment
->
idx
()
:
""));
while
(
my
(
$pnode
,
$memory
)
=
$result
->
fetchrow_array
())
{
$node_ramusage
{
$pnode
}
=
0
#
# We need a fair amount of pad, even when dom0mem is set (below).
#
$node_ramusage
{
$pnode
}
=
1024
if
(
!
exists
(
$node_ramusage
{
$pnode
}));
$node_ramusage
{
$pnode
}
+=
$memory
;
...
...
@@ -973,7 +976,7 @@ if ($virtstuff) {
"
where na.attrkey is not null
");
while
(
my
(
$pnode
,
$ram
)
=
$result
->
fetchrow_array
)
{
# Allow for padding, do not really want to go to zero.
$node_ramusage
{
$pnode
}
=
768
$node_ramusage
{
$pnode
}
=
1024
if
(
!
exists
(
$node_ramusage
{
$pnode
}));
# Ug, units.
...
...
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