[Top][All Lists]

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

[lwip-devel] [bug #27147] sys_mbox_fetch processor hogging

From: Joseph Thomas-Kerr
Subject: [lwip-devel] [bug #27147] sys_mbox_fetch processor hogging
Date: Fri, 31 Jul 2009 02:15:10 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/ Safari/532.0


                 Summary: sys_mbox_fetch processor hogging
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jokester01au
            Submitted on: Fri 31 Jul 2009 02:15:06 AM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: Faulty Behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: 
            lwIP version: CVS Head




I'm running this stack on a soft-processor on a Xilinx FPGA, and I've found
that the sys_mbox_fetch loop tends to hog the processor. I added a yield just
before the goto in this command (see attached diff from 1.3.1rc2) and this
addresses the problem.

I looked in the system abstraction for a function to perform yield (eg
sleep(0), but that doesn't seem to work that way here), but couldn't find

Obviously the posix call I've used isn't suitable for inclusion in the LWIP
source, but perhaps an adapter function could be added and this yield put in



File Attachments:

Date: Fri 31 Jul 2009 02:15:06 AM GMT  Name: sys.c_yield.diff  Size: 192B  
By: jokester01au



Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]