[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/3.0.195.1 Safari/532.0 |
URL:
<http://savannah.nongnu.org/bugs/?27147>
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
_______________________________________________________
Details:
Hi,
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
one.
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
place?
Regards,
Joe.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Fri 31 Jul 2009 02:15:06 AM GMT Name: sys.c_yield.diff Size: 192B
By: jokester01au
<http://savannah.nongnu.org/bugs/download.php?file_id=18502>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?27147>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #27147] sys_mbox_fetch processor hogging,
Joseph Thomas-Kerr <=