mem: add boolean to disable PacketQueue's size sanity check
Review Request #3183 - Created Oct. 30, 2015 and submitted
| Information | |
|---|---|
| Tony Gutierrez | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 11207:7b7e352f8d7f --------------------------- mem: add boolean to disable PacketQueue's size sanity check the sanity check, while generally useful for exposing memory system bugs, may be spurious with respect to GPU workloads, which may generate many more requests than typical CPU workloads. the large number of requests generated by the GPU may cause the req/resp queues to back up, thus queueing more than 100 packets.
-
src/mem/packet_queue.cc (Diff revision 1) -
That is 64 kB of implicit storage! As I've already mentioned many times, this check has been instrumental in finding lots of problems in the memory system, and I am against changing it.
I think the best option here is a compile-time switch for disabling this sanity check. Perhaps we can call it "ludicrous mode" :-)
If you want to set that from Ruby and remove the safety net that's fine.
Summary: |
|
|||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||
Diff: |
Revision 2 (+10 -6) |
Description: |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 3 (+14 -5) |
-
src/mem/packet_queue.hh (Diff revision 3) -
should also be an added @param here
-
src/mem/packet_queue.hh (Diff revision 3) -
bool disable_sanity_check to comply with the style guide. please also add a space around =
-
src/mem/packet_queue.cc (Diff revision 3) -
see comment from header on naming
-
src/mem/packet_queue.cc (Diff revision 3) -
could swap these around, up to you
Description: |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 4 (+16 -5) |
Description: |
|
||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 5 (+16 -5) |
Could you add a sentence or two in the patch descripton explaining why we are adding this?
Ship It!
Description: |
|
||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 6 (+24 -5) |
Summary: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||
Diff: |
Revision 7 (+5 -4) |
Summary: |
|
|||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description: |
|
|||||||||||||||||||||||||||||||||
Diff: |
Revision 8 (+24 -5) |
