From aida.cpg at gmail.com Wed Jun 29 23:37:41 2016 From: aida.cpg at gmail.com (=?UTF-8?B?QcOtZGEgQ2FybWVuIFDDqXJleiBHdcOtemFy?=) Date: Wed, 29 Jun 2016 22:37:41 -0500 Subject: [Disksim-users] Obtaining response time Message-ID: Hello disksim users! I'm trying to integrate disksim into a program that simulates read/write of file chunks. This program has a model that organizes the distribution of files through a hard drive, so any file is a group of chunks in different places over the disk. I read in this link I can simulate the writing of a 100MB file by running syssim_driver.c with a parameter file (of an specific disk), the outputfile and 10000. The thing is I don't want to simulate read/write of a file, n bytes size, but I want to obtain, from disksim, write/read response time of a continuous segment of n bytes. *Would it be the same execution of syssim_driver.c?* -- *"Pues donde est? la riqueza de ustedes, all? estar? tambi?n su coraz?n."* * Lucas 12:34 DHH* *"For where your treasure is, there your heart will be also."* *Luke 12:34 NKJV* -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexander.lochmann at tu-dortmund.de Thu Jun 30 02:35:51 2016 From: alexander.lochmann at tu-dortmund.de (Alexander Lochmann) Date: Thu, 30 Jun 2016 08:35:51 +0200 Subject: [Disksim-users] Obtaining response time In-Reply-To: References: Message-ID: <5774BDC7.7090506@tu-dortmund.de> Hi! You might wanna look at this file: https://github.com/flipreverse/LICKS/blob/dev/io/DiskSim.cpp I integrated DiskSim into my Linux Kernel IO simulator. If you have any questions, feel free to ask. ;) Cheers, Alex On 06/30/2016 05:37 AM, A?da Carmen P?rez Gu?zar wrote: > Hello disksim users! > > I'm trying to integrate disksim into a program that simulates > read/write of file chunks. This program has a model that organizes > > the distribution of files through a hard drive, so any file is a > > group of chunks in different places over the disk. > > > I read in this link > > I can simulate the writing of a 100MB file by > > running syssim_driver.c with a parameter file (of an specific disk), > the outputfile and 10000. > > The thing is I don't want to simulate read/write of a file, > > n bytes size, but I want to obtain, from disksim, write/read response time > > of a continuous segment of n bytes. > * > Would it be the same execution of syssim_driver.c?* > > > > > > > -- > /"Pues donde est? la riqueza de ustedes, all? estar? tambi?n su coraz?n."/ > / Lucas 12:34 DHH/ > /"For where your treasure is, there your heart will be also."/ > /Luke 12:34 NKJV/ > > > _______________________________________________ > Disksim-users mailing list > Disksim-users at ece.cmu.edu > https://lists.ece.cmu.edu/mailman/listinfo/disksim-users > -- Technische Universit?t Dortmund Alexander Lochmann PGP key: 0xBC3EF6FD Otto-Hahn-Str. 16 phone: +49.231.7556141 D-44227 Dortmund fax: +49.231.7556116 http://ess.cs.tu-dortmund.de/Staff/al -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: OpenPGP digital signature URL: From aida.cpg at gmail.com Thu Jun 30 16:32:57 2016 From: aida.cpg at gmail.com (=?UTF-8?B?QcOtZGEgQ2FybWVuIFDDqXJleiBHdcOtemFy?=) Date: Thu, 30 Jun 2016 15:32:57 -0500 Subject: [Disksim-users] Obtaining response time In-Reply-To: <5774BDC7.7090506@tu-dortmund.de> References: <5774BDC7.7090506@tu-dortmund.de> Message-ID: Alexander, Now I get it, -syssim_report_completion- is called when the external event (the request) is completed. That's why you can set response time as -duration = (systime_c)((disksimtime_c) 1000 * (now - r->start));-,right? Now I'm wondering about your integration method, I've never seen before C and C++ code mixing, is really so easy as I see in your project? It seems you hadn`t modify the files in the disksim folder, but I was thinking, why did the authors write ? in disksim_global.h? #ifdef __cplusplus extern "C" { #ifdef __cplusplus } #endif How do you compile it? C++? Thanks! 2016-06-30 1:35 GMT-05:00 Alexander Lochmann < alexander.lochmann at tu-dortmund.de>: > Hi! > > You might wanna look at this file: > https://github.com/flipreverse/LICKS/blob/dev/io/DiskSim.cpp > > I integrated DiskSim into my Linux Kernel IO simulator. > If you have any questions, feel free to ask. ;) > > Cheers, > Alex > > > On 06/30/2016 05:37 AM, A?da Carmen P?rez Gu?zar wrote: > > Hello disksim users! > > > > I'm trying to integrate disksim into a program that simulates > > read/write of file chunks. This program has a model that organizes > > > > the distribution of files through a hard drive, so any file is a > > > > group of chunks in different places over the disk. > > > > > > I read in this link > > < > https://lists.ece.cmu.edu/pipermail/disksim-users/2011-December/000703.html > > > > I can simulate the writing of a 100MB file by > > > > running syssim_driver.c with a parameter file (of an specific disk), > > the outputfile and 10000. > > > > The thing is I don't want to simulate read/write of a file, > > > > n bytes size, but I want to obtain, from disksim, write/read response > time > > > > of a continuous segment of n bytes. > > * > > Would it be the same execution of syssim_driver.c?* > > > > > > > > > > > > > > -- > > /"Pues donde est? la riqueza de ustedes, all? estar? tambi?n su > coraz?n."/ > > / Lucas 12:34 DHH/ > > /"For where your treasure is, there your heart will be also."/ > > /Luke 12:34 NKJV/ > > > > > > _______________________________________________ > > Disksim-users mailing list > > Disksim-users at ece.cmu.edu > > https://lists.ece.cmu.edu/mailman/listinfo/disksim-users > > > > > -- > Technische Universit?t Dortmund > Alexander Lochmann PGP key: 0xBC3EF6FD > Otto-Hahn-Str. 16 phone: +49.231.7556141 > D-44227 Dortmund fax: +49.231.7556116 > http://ess.cs.tu-dortmund.de/Staff/al > > -- *"Pues donde est? la riqueza de ustedes, all? estar? tambi?n su coraz?n."* * Lucas 12:34 DHH* *"For where your treasure is, there your heart will be also."* *Luke 12:34 NKJV* -------------- next part -------------- An HTML attachment was scrubbed... URL: