Commit 1e78f40b authored by Ramon Nou's avatar Ramon Nou
Browse files

Separated IOAnalyzer code from whole iolanes kernel, included 3.11 elevator.c modifications

parents
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
; Keep adding 1024kb/s reading clients at 4 seconds
[global]
size=300m
rw=read
directory=/mnt/mysql
rate=10000k
bsrange=1k-16k

[file1]
startdelay=0
thinktime=10
rw=randread:8

[file2]
startdelay=4

[file3]
startdelay=8
rw=randread:16

[file4]
startdelay=12

[file5]
startdelay=16

[file6]
startdelay=20

[file7]
startdelay=24

[file8]
startdelay=28

[file9]
startdelay=32


+18 −0
Original line number Diff line number Diff line
/*
 * ASScheduler.cpp
 *
 *  Created on: 21/09/2010
 *      Author: rnou
 */

#include "ASScheduler.h"

ASScheduler::ASScheduler() {
	// TODO Auto-generated constructor stub
	OSName = "anticipatory";

}

ASScheduler::~ASScheduler() {
	// TODO Auto-generated destructor stub
}
+19 −0
Original line number Diff line number Diff line
/*
 * ASScheduler.h
 *
 *  Created on: 21/09/2010
 *      Author: rnou
 */

#ifndef ASSCHEDULER_H_
#define ASSCHEDULER_H_

#include "Scheduler.h"

class ASScheduler: public Scheduler {
public:
	ASScheduler();
	virtual ~ASScheduler();
};

#endif /* ASSCHEDULER_H_ */

IOAnalyzer/CACHE

0 → 100644
+27 −0
Original line number Diff line number Diff line
100000
1
0 0 49 2 -1 -1 50 1312874046473381 0
1
0 48
3
4
9.96262 699.598 0.99751 0 0.997399 0 1.10839 0 
4
0 0 0 0 0 0 0 0 
1
1
0.997835 0 
1
0 0 
1
0

0

0

1000
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
0

+29 −0
Original line number Diff line number Diff line
/*
 * CFQScheduler.cpp
 *
 *  Created on: 21/09/2010
 *      Author: rnou
 */

#include "CFQScheduler.h"

CFQScheduler::CFQScheduler() {
	// TODO Auto-generated constructor stub
	OSName = "cfq";
	quantum = 8;
}

CFQScheduler::~CFQScheduler() {
	// TODO Auto-generated destructor stub
}

bool CFQScheduler::updateParameters(string device)
{
	stringstream ss(""); string command;

	ss << "sudo sh -c \"echo " << quantum <<  " > /sys/block/"+ device +"/queue/iosched/quantum\"";
	cout << "changed quantum to " << quantum << endl;
	command = ss.str();
	system (command.c_str());
	return true;
}