Changes between Version 22 and Version 23 of UsersGuide


Ignore:
Timestamp:
Oct 24, 2012 4:34:38 PM (12 years ago)
Author:
Ted Faber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UsersGuide

    v22 v23  
    381381
    382382
    383 for { set i 1} { $i < 4 } { incr i} {
     383for { set i 0} { $i < 3 } { incr i} {
    384384    set lanlist $center
    385385    for { set j 0 } { $j < 20} { incr j } {
    386386        set idx [expr $i * 20 + $j]
    387387        set n($idx) [$ns node]
    388         tb-add-node-attribute $n($idx) "containers:PartitionPass" $i
     388        tb-add-node-attribute $n($idx) "containers:PartitionPass" [expr $i + 1]
    389389        lappend lanlist $n($idx)
    390390    }
    391     $ns make-lan [join $lanlist " "] 100Mb 0
     391    set lan($i) [$ns make-lan [join $lanlist " "] 100Mb 0]
    392392}
    393393
     
    403403Each node in the topology is assigned a {{{containers::PackingPass}}} attribute that groups them into subsets.  The {{{conatiners:PackingPass}}} attribute must be assigned an integer value.  The nodes in each packing pass are considered together when packing.  Each pass can be assigned different parameters.  The passes are carried out in order, though that is rarely important.
    404404
    405 Our topology assigns
     405Our topology assigns {{{center}}} to pass 0, the nodes on {{{lan-0}}} (the tcl variable lan(0)) to pass 1, those on {{{lan-1}}} to pass 2 and those on {{{lan-2}}} to pass 3.  We will use the {{{--pass-pack}}} parameter to specify the packing factor for each pass.  Each packing factor specification looks like ''pass'':''factor'' where pass and factor are both integers.  We can specify more than one, separated by commas, or specify {{{--pass-pack}}} more than once.
     406
     407For example, we can pack the experiment using the following factors:
     408
     409|| __Pass__ || __Packing Factor__ ||
     410|| 0 || 1||
     411|| 1 || 20 ||
     412|| 2 || 10 ||
     413|| 3 || 5 ||
     414
     415By issuing:
     416
     417{{{
     418users:~$ /share/containers/containerize.py --pass-pack 0:1,1:20,2:10,3:5 --nodes-only DeterTest example6 ~/example6.tcl
     419Containerized experiment DeterTest/example6 successfully created!
     420Access it via http://www.isi.deterlab.net//showexp.php3?pid=DeterTest&eid=example6
     421}}}
     422
     423We can view the packing by using {{{container_image.py}}} to generate a visualization that includes the partitions:
     424
     425{{{
     426users:~$ /share/containers/container_image.py --experiment DeterTest/example6 --partitions --out ~/example6.png
     427}}}
     428
     429The output shows the topology with boxes drawn around the containers that share a physical node:
     430
     431
    406432
    407433== Further Reading ==