Hello all,
The 0.2.5-pre26 is available for download. I think we can consider it as “Release Candidate 1″ for the 0.2.5 train. The important changes are:
- Many bugfixes for memory leaks ;
- The “idle pointer counter” feature, that allows to run a router instance at only some percents of the CPU load.
The “idle pc” is an empiric (and experimental!) method to make the threads responsible of the virtual CPU sleep when the CPU is considered as idle. However, the user has some work to do to guess an “idle pc” value, which is specified as argument on the command line.
The explanation from the README file:
The “idle PC” feature allows you to run a router instance without having a 100% CPU load. This implies that you can run a larger number of instances per real machine.
To determine the “idle PC”, start normally the emulator with your Cisco IOS image, and a totally IOS empty configuration (although not mandatory, this will give better results). When the image is fully booted, wait for the prompt to be ready, do a “write memory” and then press “Ctrl-] + i” sequence key after some seconds. Some statistics will be gathered during 10 seconds. At the end, the emulator will display a list of possible values to pass to the “–idle-pc” option. You may have to try some values before finding the good one. To check if the idle PC value is good, just boot the Cisco IOS image, and check your CPU load when the console prompt is available. If it is low, you have found a good value, keep it preciously.
Important remarks:
- The clock divisor must be adjusted a lot when “–idle-pc” is used. Using a value of 40 or 50 is not abnormal! For example, on my system, I typically used “4″ as clock divisor value, with “–idle-pc” I use “40″. The method to determine the good clock divisor is to play with the “show clock” and adjust it to have something near from the real clock.
- An “idle PC” value is *specific* to a Cisco IOS image. You cannot boot a different IOS image without proceeding as described above.
- Do not run the process while having the “autoconfiguration” prompt.
Files:
0.2.5-pre26 binary for X86 platforms
0.2.5-pre26 binary for X86_64 platforms
0.2.5-pre26 binaries for Windows XP and 2000
0.2.5-pre26 source code