-
Notifications
You must be signed in to change notification settings - Fork 0
/
mem_consumption_file_count.sh
executable file
·95 lines (84 loc) · 2.11 KB
/
mem_consumption_file_count.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
sysctl fs.inotify.max_user_watches=524288
sysctl -p
###################### 1 #####################
rm -rf tmp*
rm readings*
mkdir tmp
python maketree.py -t 100000 -d 5 -c 5 -f 1 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for explicit watches"
./inotify_test -d tmp
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 5 -c 5 -f 1 -s 0
#python maketree.py -t 50 -d 2 -c 1 -f 10 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for implicit watches"
./inotify_test -i -d tmp
###################### 2 #####################
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 10 -c 5 -f 1 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for explicit watches"
./inotify_test -d tmp
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 10 -c 5 -f 1 -s 0
#python maketree.py -t 50 -d 2 -c 1 -f 10 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for implicit watches"
./inotify_test -i -d tmp
###################### 3 #####################
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 15 -c 5 -f 1 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for explicit watches"
./inotify_test -d tmp
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 15 -c 5 -f 1 -s 0
#python maketree.py -t 50 -d 2 -c 1 -f 10 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for implicit watches"
./inotify_test -i -d tmp
###################### 4 #####################
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 20 -c 5 -f 1 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for explicit watches"
./inotify_test -d tmp
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 20 -c 5 -f 1 -s 0
#python maketree.py -t 50 -d 2 -c 1 -f 10 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for implicit watches"
./inotify_test -i -d tmp
###################### 5 #####################
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 25 -c 5 -f 1 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for explicit watches"
./inotify_test -d tmp
rm -rf tmp*
mkdir tmp
python maketree.py -t 100000 -d 25 -c 5 -f 1 -s 0
#python maketree.py -t 50 -d 2 -c 1 -f 10 -s 0
#tree tmp
sh dirdepth.sh tmp
echo "running for implicit watches"
./inotify_test -i -d tmp