Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 08-10-2009, 08:05 AM   #1
LQ Newbie
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Question time taken by memset


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.


malloc, time

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IO write using O_DIRECT flag with and without memset() after malloc() naik_yogesh Linux - Software 0 04-01-2009 06:28 AM
realloc doesn't work unless memset is called sydney-troz Programming 5 02-29-2008 08:28 PM
using memset() functions for graphics gvp87 Programming 2 02-05-2008 05:10 PM
graphic function with memset() gvp87 Programming 1 01-31-2008 12:04 AM
memset vs char arr initialization syseeker Programming 4 03-29-2006 09:01 AM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration