mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 10:40:15 +02:00 
			
		
		
		
	torture: Make torture.sh print the number of files to be compressed
Compressing gigabyte vmlinux files can take some time, and it can be a bit annoying to not know many more batches of compression there will be. This commit therefore makes torture.sh print the number of files to be compressed just before starting compression and just after compression completes. Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
		
							parent
							
								
									11e46f0804
								
							
						
					
					
						commit
						b380b10b84
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -434,7 +434,12 @@ then
 | 
				
			||||||
	batchno=1
 | 
						batchno=1
 | 
				
			||||||
	if test -s $T/xz-todo
 | 
						if test -s $T/xz-todo
 | 
				
			||||||
	then
 | 
						then
 | 
				
			||||||
		echo Size before compressing: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
							for i in `cat $T/xz-todo`
 | 
				
			||||||
 | 
							do
 | 
				
			||||||
 | 
								find $i -name 'vmlinux*' -print
 | 
				
			||||||
 | 
							done | wc -l | awk '{ print $1 }' > $T/xz-todo-count
 | 
				
			||||||
 | 
							n2compress="`cat $T/xz-todo-count`"
 | 
				
			||||||
 | 
							echo Size before compressing $n2compress files: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
				
			||||||
		for i in `cat $T/xz-todo`
 | 
							for i in `cat $T/xz-todo`
 | 
				
			||||||
		do
 | 
							do
 | 
				
			||||||
			echo Compressing vmlinux files in ${i}: `date` >> "$tdir/log-xz" 2>&1
 | 
								echo Compressing vmlinux files in ${i}: `date` >> "$tdir/log-xz" 2>&1
 | 
				
			||||||
| 
						 | 
					@ -456,7 +461,7 @@ then
 | 
				
			||||||
			echo Waiting for final batch $batchno of $ncompresses compressions `date` | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
								echo Waiting for final batch $batchno of $ncompresses compressions `date` | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
				
			||||||
		fi
 | 
							fi
 | 
				
			||||||
		wait
 | 
							wait
 | 
				
			||||||
		echo Size after compressing: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
							echo Size after compressing $n2compress files: `du -sh $tdir | awk '{ print $1 }'` `date` 2>&1 | tee -a "$tdir/log-xz" | tee -a $T/log
 | 
				
			||||||
		echo Total duration `get_starttime_duration $starttime`. | tee -a $T/log
 | 
							echo Total duration `get_starttime_duration $starttime`. | tee -a $T/log
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		echo No compression needed: `date` >> "$tdir/log-xz" 2>&1
 | 
							echo No compression needed: `date` >> "$tdir/log-xz" 2>&1
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue