Skip to content
GitLab
Menu
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
b0fb9913
Commit
b0fb9913
authored
May 21, 2012
by
Leigh B Stoller
Browse files
Change MAXIMQ to 1024 since Ryan says the kernel now auto creates
them, up to a max of 1024.
parent
2dd1c2c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/tmcc/linux/openvz/libvnode_openvz.pm
View file @
b0fb9913
...
@@ -97,7 +97,8 @@ my $MKEXTRAFS = "/usr/local/etc/emulab/mkextrafs.pl";
...
@@ -97,7 +97,8 @@ my $MKEXTRAFS = "/usr/local/etc/emulab/mkextrafs.pl";
my
$CTRLIPFILE
=
"
/var/emulab/boot/myip
";
my
$CTRLIPFILE
=
"
/var/emulab/boot/myip
";
my
$IMQDB
=
"
/var/emulab/db/imqdb
";
my
$IMQDB
=
"
/var/emulab/db/imqdb
";
my
$MAXIMQ
=
64
;
# The kernel will auto create up to 1024 IMQs
my
$MAXIMQ
=
1024
;
my
$CONTROL_IFNUM
=
999
;
my
$CONTROL_IFNUM
=
999
;
my
$CONTROL_IFDEV
=
"
eth
${CONTROL_IFNUM}
";
my
$CONTROL_IFDEV
=
"
eth
${CONTROL_IFNUM}
";
...
@@ -392,13 +393,10 @@ sub vz_rootPreConfig {
...
@@ -392,13 +393,10 @@ sub vz_rootPreConfig {
# XXX all this network config stuff should be done in PreConfigNetwork,
# XXX all this network config stuff should be done in PreConfigNetwork,
# but we can't rmmod the IMQ module to change the config, so no point.
# but we can't rmmod the IMQ module to change the config, so no point.
#
#
# Ug, pre-create a bunch of imq devices, since adding new ones
# does not work right yet.
mysystem
("
$MODPROBE
imq
");
mysystem
("
$MODPROBE
imq
");
mysystem
("
$MODPROBE
ipt_IMQ
");
mysystem
("
$MODPROBE
ipt_IMQ
");
# Create a DB to manage them.
# Create a DB to manage them.
my
%MDB
;
my
%MDB
;
if
(
!
dbmopen
(
%MDB
,
$IMQDB
,
0660
))
{
if
(
!
dbmopen
(
%MDB
,
$IMQDB
,
0660
))
{
print
STDERR
"
*** Could not create
$IMQDB
\n
";
print
STDERR
"
*** Could not create
$IMQDB
\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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