Throttle.cc (7054:7d6862b80049) | Throttle.cc (7055:4e24742201d7) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 20 unchanged lines hidden (view full) --- 29#include "base/cprintf.hh" 30#include "mem/protocol/Protocol.hh" 31#include "mem/ruby/buffers/MessageBuffer.hh" 32#include "mem/ruby/network/Network.hh" 33#include "mem/ruby/network/simple/Throttle.hh" 34#include "mem/ruby/slicc_interface/NetworkMessage.hh" 35#include "mem/ruby/system/System.hh" 36 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 20 unchanged lines hidden (view full) --- 29#include "base/cprintf.hh" 30#include "mem/protocol/Protocol.hh" 31#include "mem/ruby/buffers/MessageBuffer.hh" 32#include "mem/ruby/network/Network.hh" 33#include "mem/ruby/network/simple/Throttle.hh" 34#include "mem/ruby/slicc_interface/NetworkMessage.hh" 35#include "mem/ruby/system/System.hh" 36 |
37using namespace std; 38 |
|
37const int HIGH_RANGE = 256; 38const int ADJUST_INTERVAL = 50000; 39const int MESSAGE_SIZE_MULTIPLIER = 1000; 40//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems 41const int BROADCAST_SCALING = 1; 42const int PRIORITY_SWITCH_LIMIT = 128; 43 44static int network_message_to_size(NetworkMessage* net_msg_ptr); 45 | 39const int HIGH_RANGE = 256; 40const int ADJUST_INTERVAL = 50000; 41const int MESSAGE_SIZE_MULTIPLIER = 1000; 42//const int BROADCAST_SCALING = 4; // Have a 16p system act like a 64p systems 43const int BROADCAST_SCALING = 1; 44const int PRIORITY_SWITCH_LIMIT = 128; 45 46static int network_message_to_size(NetworkMessage* net_msg_ptr); 47 |
46extern std::ostream *debug_cout_ptr; | 48extern ostream *debug_cout_ptr; |
47 48Throttle::Throttle(int sID, NodeID node, int link_latency, 49 int link_bandwidth_multiplier) 50{ 51 init(node, link_latency, link_bandwidth_multiplier); 52 m_sID = sID; 53} 54 --- 220 unchanged lines hidden --- | 49 50Throttle::Throttle(int sID, NodeID node, int link_latency, 51 int link_bandwidth_multiplier) 52{ 53 init(node, link_latency, link_bandwidth_multiplier); 54 m_sID = sID; 55} 56 --- 220 unchanged lines hidden --- |