gem5/src
Nilay Vaish 343e94a257 Ruby: Improve Change PerfectSwitch's wakeup function
Currently the wakeup function for the PerfectSwitch contains three loops -

loop on number of virtual networks
  loop on number of incoming links
	    loop till all messages for this (link, network) have been routed

With an 8 processor mesh network and Hammer protocol, about 11-12% of the
was observed to have been spent in this function, which is the highest
amongst all the functions. It was found that the innermost loop is executed
about 45 times per invocation of the wakeup function, when each invocation
of the wakeup function processes just about one message.

The patch tries to do away with the redundant executions of the innermost
loop. Counters have been added for each virtual network that record the
number of messages that need to be routed for that virtual network. The
inner loops are only executed when the number of messages for that particular
virtual network > 0. This does away with almost 80% of the executions of the
innermost loop. The function now consumes about 5-6% of the total execution
time.
2011-02-14 16:14:54 -06:00
..
arch X86: Detect branches taking into account instruction size. 2011-02-13 17:45:47 -08:00
base VNC: Add VNC server to M5 2011-02-11 18:29:35 -06:00
cpu O3: Fetch from the microcode ROM when needed. 2011-02-13 17:40:07 -08:00
dev VNC/ARM: Use VNC server and add support to boot into X11 2011-02-11 18:29:36 -06:00
doxygen Fix up doxygen. 2006-08-14 19:25:07 -04:00
kern Replace curTick global variable with accessor functions. 2011-01-07 21:50:29 -08:00
mem Ruby: Improve Change PerfectSwitch's wakeup function 2011-02-14 16:14:54 -06:00
python Replace curTick global variable with accessor functions. 2011-01-07 21:50:29 -08:00
sim Serialization: Allow serialization of stl lists 2011-02-11 18:29:35 -06:00
unittest Unit tests: Convert the refcnttest unit test to use the new EXPECT macros. 2011-01-18 01:27:04 -08:00
Doxyfile Fix up doxygen. 2006-08-14 19:25:07 -04:00
SConscript scons: show sources and targets when building, and colorize output. 2011-01-07 21:50:13 -08:00