config: Add memcheck stress test
Review Request #2626 - Created Feb. 3, 2015 and submitted
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10705:bc21bfd38cbd --------------------------- config: Add memcheck stress test This is a rather unfortunate copy of the memtest.py example script, that actually stresses the system with true sharing as opposed to the false sharing of the MemTest. To do so it uses TrafficGen instances to generate the reads/writes, and MemCheckerMonitor combined with the MemChecker to check the validity of the read/written values. As a bonus, this script also enables the addition of prefetchers, and the traffic is created to have a mix of random addresses and linear strides. We use the TaggedPrefetcher since the packets do not have a request with a PC. At the moment the code is almost identical to the memtest.py script, and no effort has been made to factor out the construction of the tree. The challenge is that the instantiation and connection of the testers and monitors is done as part of the tree building.
Posted (Feb. 6, 2015, 9:10 a.m.)
So would this replace memtest.py? If so, then factoring out the common code would not be an issue. If not, why not?
Minor optional comments below...
-
configs/example/memcheck.py (Diff revision 1) -
If you build and populate a SimObjectVector, then assign it to its config hierarchy parent, this problem will take care of itself. Or you can take the solution used there and copy it, see http://repo.gem5.org/gem5/file/3d17366c0423/src/python/m5/params.py#l269
-
configs/example/memcheck.py (Diff revision 1) -
seems like you don't need this check anymore, right? might want to leave it in if you agree that memtest.py should be merged in here
Review request changed
Updated (Feb. 13, 2015, 12:54 a.m.)
Description: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+307 -1) |
Ship It!
