Hackfut Security File Manager
Current Path:
/opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/msgpack-1.2.9/bench
opt
/
td-agent
/
embedded
/
lib
/
ruby
/
gems
/
2.4.0
/
gems
/
msgpack-1.2.9
/
bench
/
📁
..
📄
pack.rb
(545 B)
📄
pack_log.rb
(905 B)
📄
pack_log_long.rb
(1.79 KB)
📄
pack_symbols.rb
(656 B)
📄
run.sh
(363 B)
📄
run_long.sh
(787 B)
📄
run_symbols.sh
(603 B)
📄
unpack.rb
(459 B)
📄
unpack_log.rb
(946 B)
📄
unpack_log_long.rb
(1.83 KB)
Editing: run_long.sh
#!/bin/sh # prerequisites # $ sudo apt-get install sysstat # $ rbenv shell 2.2.1 (or jruby-x.x.x or ...) # $ rake install # 60 * 600 : 60*60 * 5[threads] * 2[bench] ruby -v echo "pack log long" viiite report --regroup bench,threads bench/pack_log_long.rb & sar -o pack_log_long.sar -r 60 600 > /dev/null 2>&1 & declare -i i=0 while [ $i -lt 600 ]; do ps auxww | grep ruby | grep -v grep | awk '{print $5,$6;}' >> pack_log_long.mem.txt i=i+1 sleep 60 done sleep 120 # cool down echo "unpack log long" viiite report --regroup bench,threads bench/unpack_log_long.rb & sar -o unpack_log_long.sar -r 60 600 > /dev/null 2>&1 & i=0 while [ $i -lt 600 ]; do ps auxww | grep ruby | grep -v grep | awk '{print $5,$6;}' >> pack_log_long.mem.txt i=i+1 sleep 60 done
Upload File
Create Folder