Re: Memory performance / Cache problem

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

 



On Monday 12 October 2009 10:54:09 ext epsi@xxxxxx wrote:
> I found the memory performance of newer kernels are quit poor on an
> EVM-Omap3 board. It works with 2-6 times performance on the old 2.6.22
> kernel from TI's PSP.
>
> Possible reasons:
> - problem in config the kernel (did omap3_evm_defconfig)
> - problem in kernel
> - kernel expects some settings from uboot, which are not done there
>
> I have tried the 2.6.29rc3 (from TI's PSP) and the 2.6.31 from git-tree.
> Both behave quite simular:
>
> Transport in MByte:
>   memcpy =   204.073, loop4 =   183.212, loop1 =    81.693, rand =
> 4.534
>
> while the 22 kernel:
>  memcpy =   453.932, loop4 =   469.934, loop1 =   125.031, rand =
> 29.631
>
> Can someone give me help or can at least confirm that?

The numbers from 2.6.22 kernel look much better than anything I have ever
seen with OMAP3.

How are you doing benchmarking? Is source buffer properly initialized?

The point is that if you just happen to allocate a large buffer without
initializing it, it may end up having all the memory pages referencing to a
single zero page in physical memory. In this case reading from this buffer
will in fact be perfectly cached in L1 cache and memcpy would look fast.

If it is not the case, investigating how to boost memory performance in the
latest kernels is very interesting for sure.

-- 
Best regards,
Siarhei Siamashka
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux