miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Miro + miniupnpd 1.2 = CPU through the roof

 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs
View previous topic :: View next topic  
Author Message
Kerrnel



Joined: 12 Mar 2009
Posts: 1

PostPosted: Thu Mar 12, 2009 9:39 pm    Post subject: Miro + miniupnpd 1.2 = CPU through the roof Reply with quote

Not sure what's going on (yet)...

Miro on a machine behind the firewall (pf) running. Switched from linuxigd to miniupnpd to test. CPU goes to 50% and with -d log goes nuts (below).

[ Side note: May I request to add a '-D' flag to not fork w/o debug messaging - to run from runit / launchd etc.). I've added a local pkgsrc patch to do so for now. ]

Information:

$ uname -a
NetBSD lowe 5.0_RC2 NetBSD 5.0_RC2 (AKUA-$Revision: 1.915.2.2 lowe-50-c 090217 $) #0: Wed Feb 18 17:27:19 CET 2009

With -d enabled

2009-03-12 21:03:55.439252500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439358500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439385500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439408500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439431500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439454500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439477500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439500500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439523500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439547500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439620500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439644500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439667500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439690500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439735500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439758500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439781500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439803500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439826500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439848500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439884500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439907500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.439930500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.439952500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.439975500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.439997500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.440020500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.440063500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.440087500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.440111500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.440144500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.440169500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.440193500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.440216500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s
2009-03-12 21:03:55.440239500 miniupnpd[1477]: UPnP permission rule 3 matched : port mapping accepted
2009-03-12 21:03:55.440262500 miniupnpd[1477]: port 8630 tcp already redirected to 10.8.8.16:8630, replacing
2009-03-12 21:03:55.440284500 miniupnpd[1477]: NAT-PMP request received from 10.8.8.16:49198 12bytes
2009-03-12 21:03:55.440306500 miniupnpd[1477]: NAT-PMP port mapping request : 8630->10.8.8.16:8630 tcp lifetime=3600s


--- Patch request ---

--- miniupnpd.c.orig 2009-03-12 22:17:31.000000000 +0100
+++ miniupnpd.c 2009-03-12 22:19:36.000000000 +0100
@@ -339,6 +339,7 @@
int i;
int pid;
int debug_flag = 0;
+ int nofork_flag = 0;
int options_flag = 0;
int openlog_option;
struct sigaction sa;
@@ -592,6 +593,8 @@
break;
case 'd':
debug_flag = 1;
+ case 'D':
+ nofork_flag = 1;
break;
case 'w':
if(i+1 < argc)
@@ -678,11 +681,12 @@
"\t-q sets the ALTQ queue in pf.\n"
"\t-T sets the tag name in pf.\n"
#endif
+ "\t-D don't fork (implied by -d as well).\n"
"", argv[0], pidfilename);
return 1;
}

- if(debug_flag)
+ if(nofork_flag)
{
pid = getpid();
}
Back to top
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Mar 17, 2009 10:18 am    Post subject: Reply with quote

looks like something on your network (10.8.8.16:49198) keeps sending NAT-PMP requests.
You should identify which program is doing that !
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Tue Mar 17, 2009 10:19 am    Post subject: Reply with quote

you could also disable NAT-PMP Smile
_________________
Main miniUPnP author.
https://miniupnp.tuxfamily.org/
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpd Bugs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.