esp32-p4-ev-board

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

esp32-p4-ev-board

Postby chegewara » Tue Aug 13, 2024 5:22 pm

Hi,
at the beginning i have to say i am very impressed how this kit is prepared, especially 7" display is impressive.
Also factory demo installed on it is very nice, even if i didnt connect speaker yet.

Now i have a question:
- does anyone tried to do USB performance test, with MSC for example?

Im not sure if my library is so bad or there is some other issue, but i am having very bad reading speed with "fread".
My pendive on PC can read with 40MB+/s and on P4 its about 550kB/s. Its over 80x factor.

Sorry, but i didnt tested with espressif msc library yet.


PS most likely its my library, because i already improved performance almost 2x

chegewara
Posts: 2362
Joined: Wed Jun 14, 2017 9:00 pm

Re: esp32-p4-ev-board

Postby chegewara » Thu Aug 15, 2024 8:46 am

Yep,
it was definitely issue with my code. After long battle with myself i have optimized read and here is best result:
- I (3603) File: Read speed 20.05 MiB/s

espressif example:
- I (2165) example: Read speed 12.36 MiB/s (due to small bug in example)
- I (1937) example: Read speed 18.18 MiB/s - after "fixing" example


I think that P4 performance is very good. The same pendrive on PC over HUB to downgrade to high speed is reading around 40MB/s.

PS here is performance test with different size for read buffer and setvbuf

Code: Select all

I (6460) File: perf start, buffer size: 2048, setvbuf: 0
I (15991) File: Read speed 1.10 MiB/s
I (15991) File: perf start, buffer size: 2048, setvbuf: 2048
I (17395) File: Read speed 7.47 MiB/s
I (17395) File: perf start, buffer size: 2048, setvbuf: 4096
I (24380) File: Read speed 1.50 MiB/s
I (24380) File: perf start, buffer size: 2048, setvbuf: 6144
I (35652) File: Read speed 0.93 MiB/s
I (35652) File: perf start, buffer size: 2048, setvbuf: 8192
I (51210) File: Read speed 0.67 MiB/s
I (51210) File: perf start, buffer size: 4096, setvbuf: 0
I (51746) File: Read speed 19.58 MiB/s
I (51746) File: perf start, buffer size: 4096, setvbuf: 4096
I (52546) File: Read speed 13.11 MiB/s
I (52546) File: perf start, buffer size: 4096, setvbuf: 8192
I (58343) File: Read speed 1.81 MiB/s
I (58343) File: perf start, buffer size: 4096, setvbuf: 12288
I (68422) File: Read speed 1.04 MiB/s
I (68422) File: perf start, buffer size: 4096, setvbuf: 16384
I (79317) File: Read speed 0.96 MiB/s
I (79317) File: perf start, buffer size: 8192, setvbuf: 0
I (79839) File: Read speed 20.08 MiB/s
I (79840) File: perf start, buffer size: 8192, setvbuf: 8192
I (80387) File: Read speed 19.16 MiB/s
I (80387) File: perf start, buffer size: 8192, setvbuf: 16384
I (85556) File: Read speed 2.03 MiB/s
I (85556) File: perf start, buffer size: 8192, setvbuf: 24576
I (91538) File: Read speed 1.75 MiB/s
I (91539) File: perf start, buffer size: 8192, setvbuf: 32768
I (98336) File: Read speed 1.54 MiB/s

Who is online

Users browsing this forum: No registered users and 42 guests