Hi,
I am working a project, which is using AM3352 CPU. During testing our WEB server running on the CPU, I found CPU usage can be easily reaching 100% just by navigating among different HTML pages. I use oprofile tool to get a report, which shows CPU spend a lot time on openssl bn_mul_mount(). Following is detail about my platform and oprofile report. BTW, I also tried running our codes on BeagleBone Black and got the same result.
Hardware platform: CPU core part is based on BeagleBone Black (1 GHz, DDR3 512MB).
Software platform: Kernel and uboot is based on Sitara SDK 7.0, uClibc v0.9.33.2, openssl v1.0.1c.
Oprofile report:
-------------------------------------------------------------
CPU: CPU with timer interrupt, speed 1e+06 MHz (estimated)
Profiling through timer interrupt
samples % app name symbol name
6283 41.4282 /boot/vmlinux cpuidle_enter_state
1098 7.2399 /lib/libcrypto.so.1.0.0 bn_mul_mont
338 2.2287 /boot/vmlinux __do_softirq
224 1.4770 /boot/vmlinux cpdma_chan_submit
-------------------------------------------------------------
Does anyone know if there is a way to improve it?
Regards,
Yong Zou