Welcome, Guest. Please login or register.
January 02, 2010, 02:20:02 PM

Login with username, password and session length

346870 Posts
38329 Topics
87129 Members

Latest Member: wilson52

Search:     Advanced search | Tag Cloud
+  Welcome to the Comodo Forum
|-+  Archive Boards
| |-+  Comodo Firewall
| | |-+  Help for v2
| | | |-+  CPU USAGE GOES TO 100% with new 2.4 [Resolved in version 3]
« previous next »
Pages: 1 ... 9 10 [11] 12 Go Down Print
Author Topic: CPU USAGE GOES TO 100% with new 2.4 [Resolved in version 3]  (Read 74928 times)
Alexo
Comodo Family Member
***
Offline Offline

Posts: 62


« Reply #150 on: March 21, 2007, 10:06:34 PM »

At finally, the "problem" is here, look ->



No, the problem is not there.

Here's a ticket I opened with Comodo:

I noticed CPU usage spikes on every page load in browser, using P2P apps, etc.
The culprit is cmdagent.exe.

Running ProcMon and opening http://img186.imageshack.us/my.php?image=comodo0023tb.png in IE6 logged 438,940(!!!) file operations between cmdagent.exe and cpf.exe

See attached CSV file: http://rapidshare.com/files/22180032/log1.zip
« Last Edit: March 21, 2007, 10:13:43 PM by Alexo » Logged
Little Mac
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 6254



« Reply #151 on: March 22, 2007, 09:03:24 AM »

Looks like your NetBIOS is running amok, Alexo, which is likely causing the firewall to run amok as well...

LM
Logged

You read my sig block.  That's enough personal interaction for one day. Kewl
Quill
Volunteer
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 2731


Follow the White Rabbit...


« Reply #152 on: March 22, 2007, 04:09:54 PM »

Eeek! A NetBios frenzy.

I'd look into that, it looks a little scary...

Logged

"Well, I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it."

Forum Policy
Alexo
Comodo Family Member
***
Offline Offline

Posts: 62


« Reply #153 on: March 23, 2007, 01:24:54 PM »

NetBIOS?  How do you figure?
Logged
Little Mac
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 6254



« Reply #154 on: March 23, 2007, 01:37:31 PM »

nbdname(137), nbdgram(138)

These are NetBIOS entries.

You'll get those time to time if you have NetBIOS service active, but your log is chock full of them!  That doesn't look good to me.

LM
Logged

You read my sig block.  That's enough personal interaction for one day. Kewl
Alexo
Comodo Family Member
***
Offline Offline

Posts: 62


« Reply #155 on: March 23, 2007, 02:42:06 PM »

The log that I posted shows file system activity
No mention of nbdname or nbdgram there.

So my question still stands.
Logged
Little Mac
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 6254



« Reply #156 on: March 23, 2007, 03:00:25 PM »



Running ProcMon and opening http://img186.imageshack.us/my.php?image=comodo0023tb.png in IE6 logged 438,940(!!!) file operations between cmdagent.exe and cpf.exe


Is the link above not yours?  This is what I'm referring to.

LM
Logged

You read my sig block.  That's enough personal interaction for one day. Kewl
Alexo
Comodo Family Member
***
Offline Offline

Posts: 62


« Reply #157 on: March 23, 2007, 03:29:32 PM »

No, clicking the link above is what I browsed to to demonstrate how cmdagent.exe goes bananas when I browse to a site.

Originally, it was posted by axlfsi.
Logged
Little Mac
Global Moderator
Comodo's Hero
*****
Offline Offline

Posts: 6254



« Reply #158 on: March 23, 2007, 03:37:50 PM »

My apologies to you, then; I thought that was yours...

In that case, axlfsi has NetBIOS running amok!  Grin

You have cmdagent.exe running amok!  Was your .CSV file generated by Process Monitor?

LM
Logged

You read my sig block.  That's enough personal interaction for one day. Kewl
Alexo
Comodo Family Member
***
Offline Offline

Posts: 62


« Reply #159 on: March 23, 2007, 07:58:53 PM »

Yes, procmon
Logged
frazzled
Comodo Member
**
Offline Offline

Posts: 48


« Reply #160 on: April 20, 2007, 04:05:56 AM »

Quote
nbdname(137), nbdgram(138)

These are NetBIOS entries.

You'll get those time to time if you have NetBIOS service active, but your log is chock full of them!  That doesn't look good to me.

This thread is drifting.
Before I reply to the quoted passage, let me explain that I, too, have the "cmdagent.exe high CPU usage" problem. It is not a spike -- it is an ongoing condition, once triggered, which results in sluggishness so extreme that the PC is basically unusable. USUALLY, exiting the Comodo firewall GUI (cpf.exe) will immediatley 'fix' the problem, but sometimes a reboot is necessary. FWIW (in response to earlier posts, toward trying to find the common denominator / "trigger") I don't have IE7, I don't have eMule or any type of peer-to-peer app installed (nor any IM / messaging apps). Also, the number of events logged by the firewall on my PC are 'minimal' (per my ruleset) ~~ some days none, the max has been fewer than a dozen entries per day.


Okay, those reported as "NetBIOS entries"...

they might NOT be Netbios connections at all.
Those entries may well be DNS traffic.
Yes, DNS traffic -- being reported as port 137/138 traffic

Yeah, the screenshot shows all inbound events; I'm guessing a permit/noLog rule was in effect  and the matching outbound events weren't logged. I don't know whether the remote IPs match those of the poster's DNS serevers, but they probably do. Yeah, I can see there are "several" (more than 2) remote IPs involved but, hey, my own ipconfig includes five DNS server assignments (local DNS proxy + 2 ISP servers + 2 OpenDNS servers, FWIW)

I can't say whether they represent "DNS traffic which has been mis-identified by the firewall and incorrectly labeled/logged" or whether WinXP SP2 actually does, given a certain network configuration, attempt to place DNS queries via port 137 and/or other ports in the Netbios range!
Huh?
Yeah, it sounds wacky, but I followed Alice down the rabbit hole -- searching all over the 'net trying to research and understand this, and that "maybe it actually does" statement (above) is where I wound up.

I found that I can "make the reported Netbios traffic cease", and have the traffic 'correctly' reported as port 53 traffic, if I remove Netbios ( TCP}}Properties ) but then I can't communicate with the other PCs on the LAN here. So what? Well, for starters, this PC hosts a shared printer...

Initially, I really got upset at thinking "rogue Netbios traffic" was going on. Elsewhere in the Comodo forums, I had read "make a rule blah-blah... what you're seeing is 'peer' traffic from old torrent stuff". Naw, even if that were accurate, it is not applicable in my scenario. Then I noticed that my PC was initiating the traffic! After more reading, I followed the advice to "uncheck register this connection in ControlPanel }} Network Properties. The volume of traffic did decrease after this, but it didn't cease entirely, and the only remote IPs logged are those of my assigned DNS servers. (I later discovered that one of my local proxy apps is the source of the periodic {3-4 min intervals} DNS traffic.)

Next I read that upon net start (Win 2003 server and) WinXP first try to broadcast via port 445, then fallback to port 138 if any older Win98 (etc) PCs are found on the LAN... and that one "solution" might be to disable Netbios and employ the NWLink IPX/SPX protocol instead. Well, that wasn't do-able for me. On this LAN, we each have a static IP (no DHCP and WINS in the equation) and (but) there are a few Win98 PCs.

I wound up working around the issue by creating 4 in/out application-level 'permit' rules -- one for each DNS server -- for each of my 3 browsers (Opera/Firefox/MSIE)

Guess what? (Seems it might be relevant)
To make the 'noise' stop, I found that I also needed a similar set of 4 rules for Acrobat Reader!

I scratched my head prior to creating application-level rules for the browsers -- they should all be utilizing proxied connections via 127.0.0.1 -- but, from having watched the alert popups and noting their timing, I realized that the proxy is sometimes bypassed.  So, AcroReader doesn't respect one's http proxy settings, eh? Good to know, and that adds yet another degree to my disdain for that app.

Anyhow, if you peek inside a DNS packet... AND inside a Netbios packet, you'll find that the data is remarkably similar. The Comodo firewall is "stateful", but is it actually sniffing the packets as to their content? If so, the 'mis-identified' traffic would be a bug. I don't think packet sniffing is the issue here, though.

I can't believe (er, cringe to imagine) that our NAT router is 'leaking' Netbios traffic. As well as a gateway, it can perform as a DHCP server. Although we're not currently using that router functionality on our LAN, maybe WinXP still recognizes it as such. Heh, I just checked -- yep, the router is still 'enabled' as a DHCP provider for the LAN. On the WAN side, the router in turn has an assigned gateway... but release/renew has never had an effect, so I don't know whether the DHCP is involved between the router and the ISP's assigned gateway.

So, I can't be certain until/unless I disable the DHCP for the LAN at the router, but I suspect the firewall app is correctly reporting DNS traffic occurring on ports 137/138.
-=-
Observing the firewall report the traffic on port53 (after diabling Netbios, as I mentioned earlier in this post) supports this notion that, yeah, right now WinXP really is using the "Netbios" ports to place DNS requests. Does the port assignment get translated by the router? (I would expect the router is transparent.) I bet the ISPs nameservers are actually listening/responding on those ports in addition to port 53.

Quote
https://honor.trusecure.com/pipermail/firewall-wizards/1999-January/004533.html

The answer (I think): Windows based machines that try to resolve your
hostname will do a NetBIOS node status request to port 137 (NetBIOS
name service port, see RFC 1001/1002). It has to do with the
'gethostbyaddr()' sockets API function. Whereas a UNIX box might
resolve via DNS and NIS, Microsoft resolves via DNS and NetBIOS.

'gethostbyaddr()' sockets API function
^--------- multiple apps concurrently placing these API calls
might be triggering "cmdagent.exe high CPU usage" problem

Logged
frazzled
Comodo Member
**
Offline Offline

Posts: 48


« Reply #161 on: April 20, 2007, 02:56:07 PM »

Sorry, I was mixing apples-n-oranges when I typed that last night.
My mutiple application level rules address port 53 traffic (UDP out, any destination, port53) , not ports in the Netbios range. (The intent was monitor which apps, and when, were bypassing the localhost DNS proxy app.)
Quote
I wound up working around the issue by creating 4 in/out application-level 'permit' rules -- one for each DNS server -- for each of my 3 browsers (Opera/Firefox/MSIE)
The permit/noLog rule which apparently silenced the 'noise' similar to that in the posted screenshot  was/is an ApplicationMonitor rule:
permit application = "System" (with parent="system")
TCP/UDP in/out to any destination IP
via this set of enumerated ports: 135,136,137,138,139,445

The tradeoff (trusting the NAT router doesn't leak Netbios traffic) isn't an ideal workaround, but that's where I landed.

Logged
angelus
Newbie
*
Offline Offline

Posts: 3


« Reply #162 on: May 20, 2007, 01:13:17 PM »

Hi all, I made a post at http://forums.comodo.com/index.php/topic,6819.msg65735.html#msg65735 , detailing the steps I made to lower cpu usage in cmdagent and cpf to acceptable levels.
Logged
bluetooth
Newbie
*
Offline Offline

Posts: 2


« Reply #163 on: June 01, 2007, 12:04:18 AM »

In my computer, it is the "system" process occupies the 100% CPU, its PID is 8.
A clean installlation and reboot. After reboot, the CPU is 100% without open the IE.
If I choose "allow all" for CPF, the CPU usage will return to normal after several seconds.
I use Windows 2000, NOD32, in a company LAN. No virus or malware is found.

I cannot find the solution for me. Can somebody help me?
Logged
D.G.K.
Newbie
*
Offline Offline

Posts: 3


« Reply #164 on: June 21, 2007, 07:03:28 PM »

Man I saw Comodo and thought wow this fw looks great and as soon as i ditch ZA for it I get this 100% cpu usage prob. But! I think I figured it out.

For some reason the application monitor and network monitor aren't communicating right. Let's take uTorrent for instance. In application monitor I set it to "allow all activities." That means CPF should ignore all activities for this app right? So, I go look at the network log and I see every packet coming in on the port associated with uTorrent is being blocked. At this point my CPU usage on core 1 is 90%.

I set network monitor to "Off" mode which should disable it right? It's still blocking packets in the log. I tried restarting CPF just in case it needs a restart for settings to take effect but no dice there.

Finally I added an exception for uTorrent in the network monitor to allow traffic for that port and low and behold, the packets are no longer being blocked. Not only that but the CPU usage is mostly gone.

Not only that, I went so far as to set uTorrent to blocked in the application monitor. It's kinda funny but application monitor has no effect on the program or atleast it's overrided by the network monitor. I'm guessing application monitor works different than the way I'm thinking. I bet it probably only affects the way apps interact with each other locally, but application monitor should let you control the way apps access the internet too. Shoulda made it so where application monitor overrides network monitor and network monitor handles the extra communications not defined in app monitor.

If my whole hypothesis is wrong i'd appreciate no flames from the fw gurus here.  Viva Comodo

Logged
Tags:
Pages: 1 ... 9 10 [11] 12 Go Up Print 
« previous next »
Jump to:  

SSL Certificate Free Virus Removal Firewall
Page created in 0.051 seconds with 17 queries.
Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Design by 7dana.com