[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] FSL Driver Overhead



Jonathan Jung wrote:

As you can see, software version consumes 1m 33 s of CPU time running the openssl code. The hardware/software combo takes only 10 seconds of time executing the openssl code, but requires 1 minute and 56 seconds of overhead in unrelated system calls, I'm sure is because of the reading and writing to the FSL.

Reading/writing to FSL takes time only when the FSL FIFO if full on writing or empty on reading. Be sure your FSL FIFO is depth enough. Then you can count how many times the driver wait on the
fifo by adding a couple of counters like this:

write_tasklet_func:

fsl_nput(fsl_fifo->id, value, fsl_status);
if(fsl_nodata(fsl_status))
{
write_full_counter++;
do_reschedule++;
break;
}

read_tasklet_func:

fsl_nget(fsl_fifo->id, val, fsl_status);
if(fsl_nodata(fsl_status))
{
read_empty_counter++;
break;
}

Try it and report the counters value

Happy new year,
Claudio Lanconelli
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/