__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
#!/bin/bash
# SPDX-License-Identifier: GPL-2.0+
#
# Analyze a given results directory for rcuscale scalability measurements.
#
# Usage: kvm-recheck-rcuscale.sh resdir
#
# Copyright (C) IBM Corporation, 2016
#
# Authors: Paul E. McKenney <[email protected]>

i="$1"
if test -d "$i" -a -r "$i"
then
	:
else
	echo Unreadable results directory: $i
	exit 1
fi
PATH=`pwd`/tools/testing/selftests/rcutorture/bin:$PATH; export PATH
. functions.sh

if kvm-recheck-rcuscale-ftrace.sh $i
then
	# ftrace data was successfully analyzed, call it good!
	exit 0
fi

configfile=`echo $i | sed -e 's/^.*\///'`

sed -e 's/^\[[^]]*]//' < $i/console.log |
awk '
/-scale: .* gps: .* batches:/ {
	ngps = $9;
	nbatches = 1;
}

/-scale: .*writer-duration/ {
	gptimes[++n] = $5 / 1000.;
	sum += $5 / 1000.;
}

/rcu_scale: Grace-period kthread CPU time/ {
	cputime = $6;
}

END {
	newNR = asort(gptimes);
	if (newNR <= 0) {
		print "No rcuscale records found???"
		exit;
	}
	pct50 = int(newNR * 50 / 100);
	if (pct50 < 1)
		pct50 = 1;
	pct90 = int(newNR * 90 / 100);
	if (pct90 < 1)
		pct90 = 1;
	pct99 = int(newNR * 99 / 100);
	if (pct99 < 1)
		pct99 = 1;
	div = 10 ** int(log(gptimes[pct90]) / log(10) + .5) / 100;
	print "Histogram bucket size: " div;
	last = gptimes[1] - 10;
	count = 0;
	for (i = 1; i <= newNR; i++) {
		current = div * int(gptimes[i] / div);
		if (last == current) {
			count++;
		} else {
			if (count > 0)
				print last, count;
			count = 1;
			last = current;
		}
	}
	if (count > 0)
		print last, count;
	print "Average grace-period duration: " sum / newNR " microseconds";
	print "Minimum grace-period duration: " gptimes[1];
	print "50th percentile grace-period duration: " gptimes[pct50];
	print "90th percentile grace-period duration: " gptimes[pct90];
	print "99th percentile grace-period duration: " gptimes[pct99];
	print "Maximum grace-period duration: " gptimes[newNR];
	if (cputime != "")
		cpustr = " CPU: " cputime;
	print "Grace periods: " ngps + 0 " Batches: " nbatches + 0 " Ratio: " ngps / nbatches cpustr;
	print "Computed from rcuscale printk output.";
}'

Filemanager

Name Type Size Permission Actions
config2csv.sh File 1.81 KB 0755
configNR_CPUS.sh File 688 B 0755
config_override.sh File 823 B 0755
configcheck.sh File 1.05 KB 0755
configinit.sh File 1.29 KB 0755
console-badness.sh File 798 B 0755
cpus2use.sh File 829 B 0755
functions.sh File 7.97 KB 0755
jitter.sh File 2.19 KB 0755
jitterstart.sh File 994 B 0644
jitterstop.sh File 520 B 0644
kcsan-collapse.sh File 484 B 0755
kvm-again.sh File 4.83 KB 0755
kvm-assign-cpus.sh File 1.97 KB 0755
kvm-build.sh File 1.3 KB 0755
kvm-check-branches.sh File 3.23 KB 0755
kvm-end-run-stats.sh File 1.09 KB 0755
kvm-find-errors.sh File 1.94 KB 0755
kvm-get-cpus-script.sh File 2.27 KB 0755
kvm-recheck-lock.sh File 884 B 0755
kvm-recheck-rcu.sh File 2.09 KB 0755
kvm-recheck-rcuscale-ftrace.sh File 2.62 KB 0755
kvm-recheck-rcuscale.sh File 2.03 KB 0755
kvm-recheck-refscale.sh File 1.53 KB 0755
kvm-recheck-scf.sh File 930 B 0755
kvm-recheck.sh File 3.61 KB 0755
kvm-remote-noreap.sh File 629 B 0755
kvm-remote.sh File 8.42 KB 0755
kvm-test-1-run-batch.sh File 2.64 KB 0755
kvm-test-1-run-qemu.sh File 5.28 KB 0755
kvm-test-1-run.sh File 8.64 KB 0755
kvm-transform.sh File 3.19 KB 0755
kvm.sh File 19.36 KB 0755
mkinitrd.sh File 2.27 KB 0755
parse-build.sh File 1.1 KB 0755
parse-console.sh File 4.35 KB 0755
srcu_lockdep.sh File 1.77 KB 0755
torture.sh File 23.21 KB 0755
Filemanager