LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices


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

Rep: Reputation: 0
Question 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.
 
  


Reply

Tags
malloc, time



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 06:29 PM.

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