光阴似箭

2008 8.30 Sat
     12
3456789
10111213141516
17181920212223
24252627282930
31      
«» 2008 - 8 «»

文章搜索

日志文章

2007年09月27日 22:14:31

Tips of using GHOST characteristics in the BAT files


There are many courses of using GHOSTIOS characteristics in NET files, but you can rarely find any in BAT files. Based on the CMD help in DYNAMIPS, finally I find some ways of using GHOST in the BAT files after a long day’s studying.
The computer configuration I’m now using is AMD Athlon 64 X2 Dual Core Processor 3600+ 1.9G, with an EMS memory of 448. When GHOST characteristics are not used in BAT files, I start a 3620 dynamips instance and a 3640 one with a switching module, my memory usage is as following:


1




The following is methods of using GHOST characteristics
Firstly, set up a GHOST.BAT file. For example, dynamips-wxp.exe -P 3600 -t 3640 -r 128 -g ..\ghost_ram ..\c3640-ik9o3s-mz.124-8a.bin of 3640//set up GHOST mirror image of 128MB and name it ghost_ram.
Then enter parameters in the DynamipsGUI generated BAT files, -G ..\ the generated GHOST mirror image of IOS –space-men
For example: dynamips-wxp.exe -T 2002 -P 3600 -r 128 -t 3640 -c 0x2102 -p 0:NM-1FE-TX -p 1:NM-4T -s 1:0:udp:11210:127.0.0.1:11100 -s 0:0:udp:11200:172.30.1.11:11400 ..\c3640-ik9o3s-mz.124-8a.bin --idle-pc=0x606f808c -G ..\ghost_ram --sparse-mem

Save it after modification
Double click the generated BAT file

The following is the BAT file, memory and CPU usage of 3620 and 3640 after using GHOST characteristics:

Without GHOST, memory consumption of the two simulators is 180MB; with GHOST, it is 60MB.

When using SecureCRT link simulator, the memory usage is as following:




memory consumption of the two simulators is a little more than 80 MB
It saves about 100MB with GHOST usage!
It is original, and I hope that everyone can like it.
There is another tip: I don’t know where the problem lies (CPU? or RP?). When I start GHOST and operate BAT file, the memory is not saved. But when I minimize the two CMD windows twice (with 3S time interval), memory usage is like fig 2 and it is relatively stabilized. I hope that these tips can bring you new gains.

It’s much better to open MEMEMPTY when using GHOST characteristics.
Once I open 6 dynamips instance, two of them simulate layer3 3660, one for DHCP 3660, one for layer2 3640, the left two simulate mainframe. With GHOST and MEMEMPTY in use, the memory usage of the six dynamips instance is no more than 6MB. If you are interested, you can have a try.



Tags: dynamips   simulator   Ghost   IOS  

类别: dynamips |  评论(3) |  浏览(3303) |  收藏
3楼 [匿名]gcusujck 2008年08月20日 11:29:41 Says:
%5Bb%5D%5Bsize=3%5D%E9%BE%99%E5%85%B4%E7%BD%91%E7%BB%9C%E6%98%AF%E5%9B%BD%E5%86%85%E4%B8
2楼 [匿名]7awzixrg 2008年08月14日 05:52:55 Says:
%5Burl=http://www.lxwltg.com/%5D%E5%88%9B%E9%B8%BF%E8%BD%AF%E4%BB%B6%EF%BC%8C%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E5%90%914200%E5%AE%B6%E5%9B%BD%E5%86%85%E5%88%86%E7%B1%BB%E4%BF%A1%E6%81%AF%E6%B8%AF%E5%8F%91%E5%B8%83%E4%BE%9B%E6%B1%82%E4%BF%A1%E6%81%AF%EF%BC%8C600%E5%AE%B6%E7%9A%84%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E7%99%BB%E9%99%86%EF%BC%8C800%E5%AE%B6%E7%9A%84%E9%BB%84%E9%A1%B5%E7%99%BB%E9%99%86%EF%BC%8C%E5%B9%B6%E4%B8%94%E5%8C%85%E6%8B%AC36000%E4%B8%AA%E5%90%84%E4%B8%AA%E7%B1%BB%E5%88%AB%E7%9A%84%E5%8F%AF%E5%8F%91%E5%B8%83%E5%95%86%E5%8A%A1%E4%BF%A1%E6%81%AF%E7%9A%84%E7%BB%BC%E5%90%88%E7%BD%91%E7%AB%99%E4%BF%A1%E6%81%AF%E5%B9%BF%E6%92%AD%E5%8A%9F%E8%83%BD%EF%BC%8C%E6%88%90%E5%8A%9F%E7%8E%87%E6%97%A0%E5%8F%AF%E6%AF%94%E6%8B%9F%EF%BC%8C%E9%AA%8C%E8%AF%81%E7%A0%81%E5%87%A0%E4%B9%8E%E5%81%9A%E5%88%B0%E4%BA%86%E5%85%A8%E8%87%AA%E5%8A%A8%E8%AF%86%E5%88%AB%EF%BC%8C%E8%87%AA%E5%8A%A8%E5%A1%AB%E5%86%99%EF%BC%81%E5%B9%B6%E4%B8%94%E5%A2%9E%E5%8A%A0%E4%BA%86%E6%AF%8F%E5%A4%A9%E6%88%96%E6%AF%8F%E5%91%A8%E6%88%96%E6%AF%8F%E6%9C%88%E5%85%A8%E8%87%AA%E5%8A%A8%E6%89%A7%E8%A1%8C%E8%AE%A1%E5%88%92%E4%BB%BB%E5%8A%A1%E7%9A%84%E5%BC%BA%E5%A4%A7%E5%8A%9F%E8%83%BD%EF%BC%81%E6%97%A0%E9%9C
1楼 [匿名]0u6ej0tn 2008年08月13日 18:35:37 Says:
%5Burl=http://www.lxwltg.com/%5D%E5%88%9B%E9%B8%BF%E8%BD%AF%E4%BB%B6%EF%BC%8C%E7%8E%B0%E5%9C%A8%E5%8F%AF%E4%BB%A5%E5%90%914200%E5%AE%B6%E5%9B%BD%E5%86%85%E5%88%86%E7%B1%BB%E4%BF%A1%E6%81%AF%E6%B8%AF%E5%8F%91%E5%B8%83%E4%BE%9B%E6%B1%82%E4%BF%A1%E6%81%AF%EF%BC%8C600%E5%AE%B6%E7%9A%84%E6%90%9C%E7%B4%A2%E5%BC%95%E6%93%8E%E7%99%BB%E9%99%86%EF%BC%8C800%E5%AE%B6%E7%9A%84%E9%BB%84%E9%A1%B5%E7%99%BB%E9%99%86%EF%BC%8C%E5%B9%B6%E4%B8%94%E5%8C%85%E6%8B%AC36000%E4%B8%AA%E5%90%84%E4%B8%AA%E7%B1%BB%E5%88%AB%E7%9A%84%E5%8F%AF%E5%8F%91%E5%B8%83%E5%95%86%E5%8A%A1%E4%BF%A1%E6%81%AF%E7%9A%84%E7%BB%BC%E5%90%88%E7%BD%91%E7%AB%99%E4%BF%A1%E6%81%AF%E5%B9%BF%E6%92%AD%E5%8A%9F%E8%83%BD%EF%BC%8C%E6%88%90%E5%8A%9F%E7%8E%87%E6%97%A0%E5%8F%AF%E6%AF%94%E6%8B%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