[Disksim-users] how to extract trace from my own computer

Xiaoyu Yao xyao at cse.unl.edu
Wed Jul 12 14:41:42 EDT 2006


Hi, Aniket,

I haven't use the validation trace before. It seems that the manual does 
not include detailed information about its format.
But you can check the source code and find the format of the validation 
trace. Based on  my understanding, the one validate trace record is 
composed of the following segments:

* Read/Write Flag
* Buffer Action (Hit/Miss)
* Request Address (blkno)
* Request Size (bcount)
* Service time (Real)
* Next Interarrival time (Real)

Check the following code (from disksim 2.0) for details. Disksim 3.0 
does not change the format of validation trace. Hope this will be helpful.

ioreq_event * iotrace_validate_get_ioreq_event (FILE *tracefile, 
ioreq_event *new)
{
   char line[201];
   char rw;
   double servtime;

   if (fgets(line, 200, tracefile) == NULL) {
      addtoextraq((event *) new);
      return(NULL);
   }
   new->time = simtime + (validate_nextinter / (double) 1000);
   if (sscanf(line, "%c %s %d %d %lf %lf\n", &rw, validate_buffaction, 
&new->blkno, &new->bcount, &servtime, &validate_nextinter) != 6) {
      fprintf(stderr, "Wrong number of arguments for I/O trace event 
type\n");
      exit(0);
   }
   validate_lastserv = servtime / (double) 1000;
   if (rw == 'R') {
      new->flags = READ;
   } else if (rw == 'W') {
      new->flags = WRITE;
   } else {
      fprintf(stderr, "Invalid R/W value: %c\n", rw);
      exit(0);
   }
   new->devno = 0;
   new->buf = 0;
   new->opid = 0;
   new->cause = 0;
   new->busno = 0;
   new->tempint2 = 0;
   new->tempint1 = 0;
   validate_lastblkno = new->blkno;
   validate_lastbcount = new->bcount;
   validate_lastread = new->flags & READ;
   return(new);
}

Aniket Kulkarni wrote:
> please tell me the contents of trace file whose type is validate.
> For ascii trace file following are the contents
> 1.request arrival time
> 2.device number
> 3.block number
> 4.request size
> 5.request flags
> Like that please tell contents of validate trace files(such as 
> barracuda.trace, cheetah9LP.trace)
> aniket
>
>
> On 7/12/06, *Xiaoyu Yao* <xyao at cse.unl.edu <mailto:xyao at cse.unl.edu>> 
> wrote:
>
>     Do you want to collect trace yourself from your system?
>     If that is the case, there are many linux kernel patches can do this
>     such as LL_TRACE for 2.4 kernel.
>
>     Xiaoyu
>
>     Aniket Kulkarni wrote:
>     > We have trace files in the valid directory like   barracuda.trace,
>     > cheetah4LP.trace, cheetah9LP.trace & etc.
>     > These files having some entries such as request flag, block
>     > no.,request size, etc.
>     > How to extract this information from the hard disk?
>     > aniket
>     >
>     > On 7/12/06, *Xiaoyu Yao* <xyao at cse.unl.edu
>     <mailto:xyao at cse.unl.edu> <mailto:xyao at cse.unl.edu
>     <mailto:xyao at cse.unl.edu>>>
>     > wrote:
>     >
>     >     Which format of trace do you use?
>     >     Please include more details if you want help.
>     >
>     >     Xiaoyu
>     >
>     >     Aniket Kulkarni wrote:
>     >     > I have problem to extract trace from my own computer.
>     >     > Are there special programs to extract it.
>     >     > Please help me out.
>     >     > aniket
>     >     >
>     >    
>     ------------------------------------------------------------------------
>     >     >
>     >     > _______________________________________________
>     >     > Disksim-users mailing list
>     >     > Disksim-users at ece.cmu.edu
>     <mailto:Disksim-users at ece.cmu.edu>
>     <mailto:Disksim-users at ece.cmu.edu <mailto:Disksim-users at ece.cmu.edu>>
>     >     > https://sos.ece.cmu.edu/mailman/listinfo/disksim-users
>     >     >
>     >
>     >
>
>




More information about the Disksim-users mailing list