Is there any particular reason why your script creates "data.tmp", but then copies a different file "data.dat"?

On Thu, Jan 27, 2011 at 2:19 AM, Dave Hylands <> wrote:
Hi AJ,

On Wed, Jan 26, 2011 at 10:46 AM, AJ ONeal <> wrote:
> I have the OMAP3530 clocked at 720MHz and when writing either to tmpfs
> (/dev/shm) or SDHC (/) the CPU is pegged 100%.
> 10% is userspace
> 90% is kernel (2.6.36)
> #!/bin/bash
> dd if=/dev/zero of=~/data.tmp bs=512K count=1
> while true
> do
>   cp ~/data.dat /dev/shm/
> done
> Any ideas what could be going on here?

I'm pretty sure that you're just copying from memory to memory (file cache).

Dave Hylands

Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
gumstix-users mailing list

Thomas Epperson
Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life. - Terry Pratchett.