forked from rarias/bscpkgs
		
	heat: use cut to partition the trace
The awk script doesn't take in consideration the events close to the cut points, which are significative with low parallelism.
This commit is contained in:
		
							parent
							
								
									cb482fa3ea
								
							
						
					
					
						commit
						d68ce914ba
					
				| @ -15,12 +15,12 @@ with garlicTools; | |||||||
| let | let | ||||||
|   # Initial variable configuration |   # Initial variable configuration | ||||||
|   varConf = with bsc; { |   varConf = with bsc; { | ||||||
|     #cbs = range2 32 4096; |     cbs = range2 32 4096; | ||||||
|     #rbs = range2 32 4096; |     rbs = range2 32 4096; | ||||||
|     cbs = [ 64 256 1024 4096 ]; |     #cbs = [ 64 256 1024 4096 ]; | ||||||
|     rbs = [ 32 128 512 1024 ]; |     #rbs = [ 32 128 512 1024 ]; | ||||||
|     #cbs = [ 4096 ]; |     #cbs = [ 4096 ]; | ||||||
|     #rbs = [ 32 ]; |     #rbs = [ 512 ]; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   machineConfig = targetMachine.config; |   machineConfig = targetMachine.config; | ||||||
| @ -94,23 +94,23 @@ let | |||||||
| 
 | 
 | ||||||
|           ${bsc.cn6}/bin/cn6 -s $tracedir |           ${bsc.cn6}/bin/cn6 -s $tracedir | ||||||
| 
 | 
 | ||||||
|           awk -F: "NR==1 {print} \$6 >= $begin && \$6 <= $end" $tracedir/prv/trace.prv |\ |           ${bsc.cn6}/bin/cut $begin $end \ | ||||||
|             ${bsc.cn6}/bin/dur 6400025 0 |\ |             < $tracedir/prv/trace.prv \ | ||||||
|  |             > $tracedir/prv/trace-cut.prv | ||||||
|  | 
 | ||||||
|  |           ${bsc.cn6}/bin/dur 6400025 0 < $tracedir/prv/trace-cut.prv |\ | ||||||
|             awk '{s+=$1} END {print s}' >> .garlic/time_mode_dead.csv & |             awk '{s+=$1} END {print s}' >> .garlic/time_mode_dead.csv & | ||||||
| 
 | 
 | ||||||
|           awk -F: "NR==1 {print} \$6 >= $begin && \$6 <= $end" $tracedir/prv/trace.prv |\ |           ${bsc.cn6}/bin/dur 6400025 1 < $tracedir/prv/trace-cut.prv |\ | ||||||
|             ${bsc.cn6}/bin/dur 6400025 1 |\ |  | ||||||
|             awk '{s+=$1} END {print s}' >> .garlic/time_mode_runtime.csv & |             awk '{s+=$1} END {print s}' >> .garlic/time_mode_runtime.csv & | ||||||
| 
 | 
 | ||||||
|           awk -F: "NR==1 {print} \$6 >= $begin && \$6 <= $end" $tracedir/prv/trace.prv |\ |           ${bsc.cn6}/bin/dur 6400025 3 < $tracedir/prv/trace-cut.prv |\ | ||||||
|             ${bsc.cn6}/bin/dur 6400025 3 |\ |  | ||||||
|             awk '{s+=$1} END {print s}' >> .garlic/time_mode_task.csv & |             awk '{s+=$1} END {print s}' >> .garlic/time_mode_task.csv & | ||||||
| 
 | 
 | ||||||
|           wait |           wait | ||||||
| 
 | 
 | ||||||
|           # Remove the traces at the end, as they are huge |           # Remove the traces at the end, as they are huge | ||||||
|           rm -rf $tracedir |           rm -rf $tracedir | ||||||
|           #cp -a $tracedir .garlic/ |  | ||||||
|         done |         done | ||||||
|       fi |       fi | ||||||
|     ''; |     ''; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user