Last change
on this file since 3688 was
2136,
checked in by acosce, 11 years ago
|
add new tools allows packing simulation alreaddy pack (so pack with a bigger frequency)
|
File size:
889 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # Script to evaluate nb of inodes which will be created on store and work |
---|
3 | |
---|
4 | NB1=0; NB2=0; SOMME=0; RESULTAT=0; |
---|
5 | |
---|
6 | # nb de listes dans output_ncrcat output_tar debug_tar restart_tar |
---|
7 | NB1=$( find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | wc -l ) |
---|
8 | # nb de fichiers dans les listes store_cp |
---|
9 | find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | grep "store_cp" > tmp.$$ |
---|
10 | for list in `cat tmp.$$` ; do |
---|
11 | for dir in `cat $list` ; do |
---|
12 | NB2=$( find $dir | wc -l ) |
---|
13 | (( SOMME = SOMME + NB2 )) |
---|
14 | done |
---|
15 | done |
---|
16 | # somme des 2 |
---|
17 | (( RESULTAT = NB1 + SOMME )) |
---|
18 | echo store |
---|
19 | echo $RESULTAT |
---|
20 | rm -f tmp.$$ |
---|
21 | |
---|
22 | # nb de fichiers dans les listes work_cp |
---|
23 | NB2=0; SOMME=0; RESULTAT=0; |
---|
24 | find $TMP_MIGR_DATA/IGCM_DEM -type f -name "*.list" | grep "work_cp" > tmp.$$ |
---|
25 | for list in `cat tmp.$$` ; do |
---|
26 | for dir in `cat $list` ; do |
---|
27 | NB2=$( find $dir | wc -l ) |
---|
28 | (( SOMME = SOMME + NB2 )) |
---|
29 | done |
---|
30 | done |
---|
31 | echo work |
---|
32 | echo $SOMME |
---|
33 | rm -f tmp.$$ |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.