Thanks for the advice Nilay. I found the following: Line 173 of convert.py is the error message, so I go back to the top of the function and see that "toFrequency" is being called. On line 119, the toFrequency function is looking for "THz" or "GHz" or "MHz". Thus my command '2.8Ghz' was using the wrong case.
build/X86/gem5.opt configs/example/se.py -c bench.lex --clock='2.8GHz' works as desired, in that the processor is closer to what I want to simulate: an Intel Core i7-930 @ 2.8GHz. When I use 2.8GHz, the reported CPU time is 0.06 seconds, and just 0.01 seconds when I use 10GHz. That is as expected since 0.06/(10/2.8)=0.0168. Now I am back to my original question: how to most accurately simulate a real x86 processor for comparison? >From cat /proc/cpuinfo, the "cache size" is reported as 6144KB. The >specifications sheet http://ark.intel.com/products/41447/Intel-Core-i7-930-Processor-8M-Cache-2_80-GHz-4_80-GTs-Intel-QPI reports that "Intel Smart Cache" is 8MB. How would I give this information to gem5? [Suggestion: a script which can be run on a real system (ie it queries /proc/cpuinfo and /proc/meminfo) and gives the command line arguments for an equivalent gem5 simulation.] -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Nilay Vaish Sent: Friday, October 26, 2012 5:20 PM To: gem5 users mailing list Subject: Re: [gem5-users] validation of x86 Why don't you open the file /home/bpayne/gem5/src/python/m5/util/convert.py and take look what is being done on and around line 173? -- Nilay On Fri, 26 Oct 2012, Payne, Benjamin wrote: > For example of what I'm trying to do, I have trouble setting the clock > from reading http://gem5.org/Simulation_Scripts_Explained > > bpayne@bpayne-VirtualBox64:~/gem5$ build/X86/gem5.opt configs/example/se.py > -c bench.lex --clock='2.8Ghz' > gem5 Simulator System. http://gem5.org > gem5 is copyrighted software; use the --copyright option for details. > > gem5 compiled Oct 16 2012 15:04:38 > gem5 started Oct 26 2012 16:24:09 > gem5 executing on bpayne-VirtualBox64 > command line: build/X86/gem5.opt configs/example/se.py -c bench.lex > --clock=2.8Ghz Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/home/bpayne/gem5/src/python/m5/main.py", line 359, in main > exec filecode in scope > File "configs/example/se.py", line 150, in <module> > CPUClass.clock = options.clock > File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 326, in __setattr__ > cls._set_param(attr, value, param) > File "/home/bpayne/gem5/src/python/m5/SimObject.py", line 263, in _set_param > value = param.convert(value) > File "/home/bpayne/gem5/src/python/m5/params.py", line 177, in convert > return self.ptype(value) > File "/home/bpayne/gem5/src/python/m5/params.py", line 1218, in __init__ > self.value = convert.anyToLatency(value) File > "/home/bpayne/gem5/src/python/m5/util/convert.py", line 173, in anyToLatency > raise ValueError, "cannot convert '%s' to clock period" % value > ValueError: cannot convert '2.8Ghz' to clock period Error setting > param AtomicSimpleCPU.clock to 2.8Ghz > > > _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users _______________________________________________ gem5-users mailing list [email protected] http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
