opennopd will start consuming 100% of CPU core after issuing show sessions
Status: Alpha
Brought to you by:
yaplej
When I open the CLI and type show sessions, the table will stop drawing after about 2-3 rows and you get no prompt, only CTRLC will exit the CLI. After that, you can see in 'top' that some of the CPU cores will be 100% utilized continously by opennopd.
Not sure. Build a network with NAT-ed, Masqueraded connections going through NOPs, and have about 10 pepole connect... that's how I got it.
None I could collect.
Does this just randomly happen?
Yeah looks like it... OR it COULD happen when there're lots of masqueraded connections going on.
Anyway just now I did a test with only single client doing anything sensible and it didn't happen
Last time this happened there were - don't remember exactly but - at least 10 NAT-ed, masqueraded client machines going on about their business,
EDIT : actually that's weird... where's port 445?
EDIT2: ah well maybe clients don't always use it... I'm forwarding a whole array of legacy Samba ports...
Last edit: Levente Peres 2015-02-28
Ooops got a bad one...
It even died.
/var/log/messages says:
Yah. I think that the "show sessions" function is going to need a total rewrite. It has way to many caveats.
It only shows sessions if it knows what one is the client & server. There could be other sessions being tracked and they just won't appear.
I'm not tracking usage of the session records so while one process is reading the session another could be closing it. This might be why the "show sessions" command sometimes locks, stalls, crashes, freezes or just doesn't work correctly.
Its just some quick speculation right now. There does seem to be some problem with that particular function though.
Ok. I'll just avoid that particular command for the time being then... no big deal right now...
I just fixed some bugs in the session manager that could have been causing this. This is only fixed in my feature branch right now.
[dec372]
Related
Commit: [dec372]