Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11830 closed defect (invalid)

uhttpd cpu utilization

Reported by: Andre Maree <andrem@…> Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: luci cpu utilization Cc:

Description

Seems we have gone backwards with the latest version from trunk. Compiled 32643 this morning, slightest changes via Luci either crash uhttpd or causes CPU utilization to shoot up to 90% or more and stay there. Luci console remain stuck on "Waiting for router"

Rebooting or restarting uhttpd fixed problem until next change.

Running on RouterStation Pro

Attachments (1)

.config (128.2 KB) - added by chris chalvantzis <c.chalvantzis@…> 6 years ago.
ASUS RT-N10+ Openwrt config

Download all attachments as: .zip

Change History (14)

comment:1 Changed 6 years ago by c.chalvantzis@…

I have also experienced uhttpd random crashes on ramips when using luci with r32643.

comment:2 Changed 6 years ago by c.chalvantzis@…

I built r32647 and did a full reset and reconfigure of the router (ASUS Asus RT-N10+) using luci. Luci now seems to be faster and did not crash through the reconfiguration process.

comment:3 Changed 6 years ago by chris chalvantzis <c.chalvantzis@…>

uhttpd just crashed again... Nothing in the logs (dmesg/logread).

Changed 6 years ago by chris chalvantzis <c.chalvantzis@…>

ASUS RT-N10+ Openwrt config

comment:4 Changed 6 years ago by c.chalvantzis@…

I think I can reproduce the error. uhttpd crashes (segmentation fault) if

  1. Go to any page in Luci other than overview (e.g. Firewall)
  2. Before this page completely loads jump to the overview page

then an XML error is reported by firefox and uhttpd crashes.

comment:5 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with r32651, the I/O model got reworked to avoid a number of epoll issues.

comment:6 Changed 6 years ago by John

  • Resolution fixed deleted
  • Status changed from closed to reopened

Same problem with r32690 and wt54gl 1.1, the only package that I have add is LuCI.
LuCI is very slow, I see that uttpd is using 90% CPU and crash after minutes.

Thanks

comment:7 Changed 6 years ago by jow

  • Priority changed from high to response-needed

What uhttpd version? See opkg list_installed. Any oom errors in dmesg? brcm47xx on wrt54gl is instable even without uhttpd, I am not convinced that this is the "same problem".

comment:8 Changed 6 years ago by c.chalvantzis@…

Linux Kernel >= 2.6 should be unbelievably slow on a 200 MHz CPU and 16 MB RAM. You need Linux Kernel 2.4. if available.

comment:9 Changed 6 years ago by John

Thanks for your help!

BusyBox v1.19.4 (2012-07-13 21:44:28 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Bleeding Edge, r32704)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
root@OpenWrt:~# opkg list_installed
base-files - 111-r32704
busybox - 1.19.4-2
ddns-scripts - 1.0.0-20
dnsmasq - 2.59-4
dropbear - 2011.54-2
firewall - 2-53
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iptables-mod-conntrack-extra - 1.4.10-4
iptables-mod-filter - 1.4.10-4
iptables-mod-ipopt - 1.4.10-4
jshn - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
kernel - 3.3.8-1-1ec1ecbba4e8b30cf13ac1251c3802bd
kmod-diag - 3.3.8-10
kmod-ifb - 3.3.8-1
kmod-ipt-conntrack - 3.3.8-1
kmod-ipt-conntrack-extra - 3.3.8-1
kmod-ipt-core - 3.3.8-1
kmod-ipt-filter - 3.3.8-1
kmod-ipt-ipopt - 3.3.8-1
kmod-ipt-nat - 3.3.8-1
kmod-ipt-nathelper - 3.3.8-1
kmod-lib-crc-ccitt - 3.3.8-1
kmod-lib-textsearch - 3.3.8-1
kmod-ppp - 3.3.8-1
kmod-pppoe - 3.3.8-1
kmod-pppox - 3.3.8-1
kmod-sched-connmark - 3.3.8-1
kmod-sched-core - 3.3.8-1
kmod-switch - 3.3.8-5
kmod-tun - 3.3.8-1
libblobmsg-json - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libc - 0.9.33.2-1
libgcc - 4.6-linaro-1
libip4tc - 1.4.10-4
libiwinfo - 35
libiwinfo-lua - 35
libjson - 0.9-2
liblua - 5.1.4-8
liblzo - 2.05-1
libnl-tiny - 0.1-3
libopenssl - 1.0.1c-1
libubox - 2012-07-08-cca2ed6c8cdb3555fea43ff63ba1c9905dd7a164
libubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libubus-lua - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
libuci - 2012-03-28.1-1
libuci-lua - 2012-03-28.1-1
libxtables - 1.4.10-4
lua - 5.1.4-8
luci - trunk+svn8884-1
luci-app-ddns - trunk+svn8884-1
luci-app-firewall - trunk+svn8884-1
luci-app-openvpn - trunk+svn8884-1
luci-app-qos - trunk+svn8884-1
luci-app-upnp - trunk+svn8884-1
luci-i18n-english - trunk+svn8884-1
luci-lib-core - trunk+svn8884-1
luci-lib-ipkg - trunk+svn8884-1
luci-lib-lmo - trunk+svn8884-1
luci-lib-nixio - trunk+svn8884-1
luci-lib-sys - trunk+svn8884-1
luci-lib-web - trunk+svn8884-1
luci-mod-admin-core - trunk+svn8884-1
luci-mod-admin-full - trunk+svn8884-1
luci-proto-core - trunk+svn8884-1
luci-proto-ppp - trunk+svn8884-1
luci-sgi-cgi - trunk+svn8884-1
luci-theme-base - trunk+svn8884-1
luci-theme-openwrt - trunk+svn8884-1
miniupnpd - 1.6.20110730-6
mtd - 17
netifd - 2012-07-12-857874b2d4f92b800ecc12a5e52adeaf3855b101
nvram - 9
openssl-util - 1.0.1c-1
openvpn - 2.2.2-2
openvpn-easy-rsa - 2.2.2-2
opkg - 618-2
ppp - 2.4.5-6
ppp-mod-pppoe - 2.4.5-6
qos-scripts - 1.2.1-6
tc - 3.3.0-1
ubus - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
ubusd - 2012-06-01-a62e2f8c15a65efb1a82404d8f31e3bfc1cbe7d9
uci - 2012-03-28.1-1
uhttpd - 40
zlib - 1.2.7-1

No errors with dmesg, CPU is 90/100%:
http://i48.tinypic.com/34nky8y.png

comment:10 Changed 6 years ago by jow

uhttpd consumes 14% according to your screenshot, thats quite normal for such a weak cpu. Note that the majority of cpu resources is spent in system context, nothing uhttped can do anything about.

comment:11 Changed 6 years ago by John

I switch to 10.03.1 and now all is fine (kernel 2.4) many thanks and sorry for the disturb...
Please close this ticket :)

comment:12 Changed 6 years ago by jow

  • Resolution set to invalid
  • Status changed from reopened to closed

comment:13 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.