Why is it taking ClearCase mklabel over 3 hours to attach a label to a baseline containing 4,000 files?

Sofia Otts's picture
Sofia Otts asked on June 26, 2013 - 11:46am | Replies (1).

While observing a development team currently using ClearCase 8.0 prepare for their build it took 3 hours to attach the build label to the baseline.  What could be causing this this process to take this amount of time?  I currently support a development team that has several VOBs that control 3 or 4K and it takes no more that 10 or 15 minutes. 

Any suggestions as to the problem and how to fix?

1 Answer

Bob Aiello's picture

Hi Sofia,

you are asking a very good question and obviously labeling 4,000 files should not take more than twenty minutes in most environments. Still, I have seen this problem before and can suggest a few things to consider.

The first is to check the health and integrity of the vob itself. You should be using commands like cleartool checkvob among others on a nightly basis to verify the integrity of the vob. You should also look at how the vobs are being accessed. If you run cleartool lsvob and lsview then you can look at the location of vob and view storage area respectively. You need to verify that the storage areas are accessible and working correctly. In one instance, I found that the vob was being hosted on a NAS device that was not configured correctly (e.g. CIFs) and the problem actually was not related to clearcase and theproblem was also seen while storing any files on the NAS from unix. Another issue that I have seen is where the view storage area was located remotely - and actually turned out to be on a desktop in London while the user was in NYC!  Yikes!

Are other users having the trouble? Did you stop and restart the Clearcase processes? Did you check the logs for related messages? How big is the vob in terms of space? You might have only 4,000 files that you can see but maybe the vob is bigger than you realize. You should compare the vobs that have better performance with the one that is misbehaving. One more thing to check and its a classic issue - is anyone running triggers against the vob that could be firing off on labeling (causing asynchronous activity and slowing down your server). I don't usually see this on mklabel though.

Do give us a little more information and I will tweet this out to our readers for their comments!

Bob Aiello, Technical Editor CM Crossroads

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.