Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000480.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
8    <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9    <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10    <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml" />
11
12    <title>Status for Andrew DeFaria: create_dev_snapview.pl</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000478.html" title="PerlTk" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000481.html" title="PQA Merge" />
17
18    
19
20    
21
22    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
23 </head>
24 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
25    <div id="container">
26       <div id="container-inner" class="pkg">
27
28          <div id="banner">
29             <div id="banner-inner" class="pkg">
30                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
31                <h2 id="banner-description">Searchable status reports and work log</h2>
32             </div>
33          </div>
34
35          <div id="pagebody">
36             <div id="pagebody-inner" class="pkg">
37                <div id="alpha">
38                   <div id="alpha-inner" class="pkg">
39
40                      <p class="content-nav">
41                         <a href="http://defaria.com/blogs/Status/archives/000478.html">&laquo; PerlTk</a> |
42                         <a href="http://defaria.com/blogs/Status/">Main</a>
43                         | <a href="http://defaria.com/blogs/Status/archives/000481.html">PQA Merge &raquo;</a>
44                      </p>
45
46                      <a id="a000480"></a>
47                      <div class="entry" id="entry-480">
48                         <h3 class="entry-header">create_dev_snapview.pl</h3>
49                         <div class="entry-content">
50                            <div class="entry-body">
51                               <ul>
52   <li>Looked into create_dev_snapview.pl.</li>
53
54   <li>Tested speeds of FTP vs. SMB</li>
55 </ul>
56                            </div>
57                            <div id="more" class="entry-more">
58                               <h2>create_dev_snapview.pl</h2>
59
60 <blockquote type=cite>
61 <b>From:</b> Andrew Feltham <br>
62 <b>Sent:</b> Tuesday, November 15, 2005 3:58 PM<br>
63 <b>To:</b> Shivdutt Jha<br>
64 <b>Subject:</b> creating snapshot views <br>
65 </font><br>
66
67 <p>Hi Shivdutt,</p>
68
69 <p>so I've tried to use Naga's tool for creating a snapshot view of a particular stream using a variety of  incremental baselines.</p>
70
71 <p>I've done this using a file generated by Phil's nightly builds (see attached) which lists the specific baseline which was current for each vob.</p>
72
73 <p>First of all, it does not seem to work (see image below). I'm not sure I'm handling the composite baseline label properly</p>
74
75 <p>Secondly, I do find the tool a bit awkward as it expects me to input several incremental baselines for vobs which are not included in my load rules.</p>
76
77 <p>It would be nice if I could specify the vobs on the cmd line, and only provide those labels.</p>
78 </blockquote>
79
80 <p>Actually the script is working as designed. The arguments for create_dev_snapview.pl are:</p>
81
82 <div class="code"><pre>
83 create_dev_snapview.pl &lt;project_name&gt; [ baseline_selector ]
84 </pre></div>
85
86 <p>project_name is mandatory but baseline_selector is optional. If you don't specify the baseline_selector then it appears that the script takes all the recommended baselines for all components in the project. Or you can specify a list of baselines if you want different ones. The script checks the number of baselines you specified and compares them to the number of <i>modifiable</i> components in the project. These two numbers must agree.</p>
87
88 <p>After painstakingly typing in the command line (wish you would have posted the command line in text! :-( ) and running it through Perl's debugger I came to the realization that you typed in 11 (very long) baselines and there are only 10 modifiable components in the ldx_2.3 project.</p>
89
90 <p>In thinking of how to do this better I can think of two methods:</p>
91
92 <ul>
93   <li>Assuming the <span>buildconfig</span>.txt file is a standard file and contains all the information needed, add a -f &lt;buildconfig&gt; option to create_dev_snapview.pl. When present the script would open and parse that file, extracting out the required information. This would help cut down on typing and errors.</li>
94
95   <li>Modify the script to present a series of dialog boxes prompting for the baseline to use for each component in the project. Note that in this instance this would mean a total of 10 dialog box prompts!</li>
96 </ul>
97
98 <p>Either of these options can be added to the existing script via options that cause it to operate in a different way if present or to operate like it used to operate if those options are not present.</p>
99
100 <p>(Question: When you type "perl" at your command line, what Perl are you running? Because Perl isn't normally present on Windows. Normally people using Clearcase run ccperl...).</p>
101
102 <h2>FTP vs. SMB</h2>
103
104 <p>Well this runs contrary to my previous experience but it turns out that a regular file copy using SMB shares is faster than FTP. I tested copying the old 2.7 Gig CQProd2001A database to my desktop, once with FTP and once with SMB. SMB won! Which is surprising to me because last time I tested something like this FTP was up to 10 times faster:</p>
105
106 <div class="code"><pre>
107 Local:time ftpget -u vobadm -p4sjadm p4test . "/dev/d/CQBackupsfromIrvine/0916/CQProd2001A_db_200509160213.BAK"
108 CQProd2001A_db_200509160213.BAK           2.66 GB    60.35 kB/s
109
110 real               769m10.858s
111 user               1m29.418s
112 sys                4m36.387s
113 </pre></div>
114
115 <p>Versus:</p>
116
117 <div class="code"><pre>
118 Local:time cp //p4test/CQBackupsfromIrvine/0916/CQProd2001A_db_200509160213.BAK /tmp
119
120 real              532m7.457s
121 user              0m16.714s
122 sys               1m11.362s
123 </pre></div>
124
125                            </div>
126                         </div>
127                         <p class="entry-footer">
128                            <span class="post-footers">Posted by  on November 17, 2005 12:39 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000480.html">Permalink</a>
129                         </p>
130                      </div>
131
132                      
133
134                      
135                   </div>
136                </div>
137             </div>
138          </div>
139       </div>
140    </div>
141 </body>
142 </html>