LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   time taken by memset (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/time-taken-by-memset-746425/)

SlevinKelvera 08-10-2009 08:05 AM

time taken by memset
 
Hello,

I am trying to perform a simple experiment. I want to find out how much the memset will take in different embedded os's.

First of I tried to memset a malloced buffer of 2MB in wince 6.0 and I was able to do it in 5ms.

If I try the same in linux the memset takes around 10ms!! Almost double.

Now, I was wondering if caching would cause such huge numbers in linux. In that case how do I enable caching for my malloc'ed buffer in linux?

Any ideas or thoughts apperciated.


All times are GMT -5. The time now is 01:22 PM.