Commit ed3c3243 authored by Shashi Guruprasad's avatar Shashi Guruprasad

Created a new table: virt_simnode_attributes and added a new column

simhost_violation to the reserved table. Details in the migrate file.
Note that virt_simnode_attributes is part of the virtual state and is
being taken care of in libdb.
parent 8954e88c
......@@ -2642,6 +2642,7 @@ sub TBGetSiteVar($)
"virt_vtypes",
"virt_programs",
"virt_node_desires",
"virt_simnode_attributes",
"nseconfigs",
"eventlist",
"ipsubnets",
......
......@@ -1131,6 +1131,7 @@ CREATE TABLE reserved (
rsrv_time timestamp(14) NOT NULL,
vname varchar(32) default NULL,
erole enum('node','virthost','delaynode','simhost') NOT NULL default 'node',
simhost_violation tinyint(3) unsigned NOT NULL default '0',
PRIMARY KEY (node_id),
UNIQUE KEY vname (pid,eid,vname)
) TYPE=MyISAM;
......@@ -1613,6 +1614,19 @@ CREATE TABLE virt_routes (
KEY pid (pid,eid,vname)
) TYPE=MyISAM;
--
-- Table structure for table `virt_simnode_attributes`
--
CREATE TABLE virt_simnode_attributes (
pid varchar(12) NOT NULL default '',
eid varchar(32) NOT NULL default '',
vname varchar(32) NOT NULL default '',
nodeweight smallint(5) unsigned NOT NULL default '1',
eventrate int(11) unsigned NOT NULL default '0',
KEY pid (pid,eid,vname)
) TYPE=MyISAM;
--
-- Table structure for table `virt_trafgens`
--
......
......@@ -1173,3 +1173,25 @@ last_net_act,last_cpu_act,last_ext_act);
alter table interfaces add vnode_id varchar(32) default NULL;
1.211: Add a new table virt_simnode_attributes that contains the number
of slots that a virt_node will occupy on a pnode. This is useful
during mapping. The default value is 1. The column eventrate will
also be used during mapping. The initial value is 0 since it is not
determined during the first swapin. Updates to these columns during
an experimental run will persist till the next swapin. Currently,
the updates will be done when a simulator (nse) running on a pnode
cannot keep up with real-time. In future, it could be done
periodically. The reserved table has a new column simhost_violation
whose value can be '0' or '1' to indicate that a pnode running nse
cannot keep up with real-time.
create table virt_simnode_attributes ( \
pid varchar(12) NOT NULL default '', \
eid varchar(32) NOT NULL default '', \
vname varchar(32) NOT NULL default '', \
nodeweight smallint(5) unsigned not null default '1', \
eventrate int(11) unsigned not null default '0', \
KEY pid (pid,eid,vname));
alter table reserved add simhost_violation tinyint(3) \
unsigned not null default '0';
Markdown is supported
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