您尚未登录。

#1 Re: 全志 SOC » v3s hardware h264 encoder » 2021-12-02 23:37:03

unturned3 说:

That is strange... Do you know which part of the driver program is invoking frequently copy_to_user? I suppose using memory mapping would be a more efficent way to transfer data from the kernel to userspace, but maybe special circumtances in the driver doesn't allow that.

in my previous post I put a link about memory mapping instead use copy_to_user

#2 Re: 全志 SOC » v3s hardware h264 encoder » 2021-12-02 16:37:36

niyazfattahov 说:
p3im4n 说:

HI Mr @niyazfattahov

HAve you solved  "data - cpu load 100%" problrm?


hi
no, I didn't find solution.
I think it is related with memory transaction, all I found out is that function like copy_from_user() consuming cpu ~ 40% at least

HI Mr @niyazfattahov
maybe this help


https://stackoverflow.com/questions/20365114/linux-driver-development-how-to-investigate-copy-to-user-timing#:~:text=Update%20(January).%20Thanks,more%20copy_to_user()%20bottleneck

please let me know if it works for you

#3 Re: 全志 SOC » v3s hardware h264 encoder » 2021-12-01 21:24:15

niyazfattahov 说:

@sprintf
Thank you for help, I succesfully run cedarx in linux 5.4, but I can encode 640x480 at 50fps max from ov5640 camera data - cpu load 100%. How many fps do you get ?


HI Mr @niyazfattahov

HAve you solved  "data - cpu load 100%" problrm?

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn