Forum Discussion
Altera_Forum
Honored Contributor
16 years agoAlberto!
I have just ran the benchmark from my post #35 (http://alteraforum.org/forum/showpost.php?p=100185&postcount=35) with trivial simulation of "data processing". The results are following (100M network, DBM3C40 board, Nios @100MHz, worst case memory layout, full-mac, Quatus 10.0sp1): Original code Benchmark: 95.4 Mib/sec Original + memset(_payload, ++_cnt, PAYLOAD_SIZE) just before udp_send() Benchmark: 83.2 Mib/sec Original + memmove(((char *)_payload)+1, _payload, PAYLOAD_SIZE-1) just before udp_send() Benchmark: 45.4 Mib/sec It gets closer to what you have, isn't it? So, it looks like you should optimize complete program, not just lwIP code. This may be a hard work, but Bill gave a good roadmap. As for me I'm not working currently on lwIP part of my project because still playing with UDPOFFLOAD. By the way, it streams very nice @ 100M network - about 95Mib/sec with zero load on Nios. @1000M I observe about 750Mib/sec traffic, but about 20% of packets are lost. Now trying to slow down their generator to see it in more realistic conditions... Best regards, Igor