Project

General

Profile

Actions

Bug #1895

closed

netstat doesn't show all inet sessions on SMP system

Added by thomas.nikolajsen over 13 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

On SMP system using after starting a ssh login
netstat command doesn't always show session:

On system A (192.168.1.253/24) having one ssh login to system B (192.168.1.238/
24),
it isn't shown by `netstat -f inet'; system B (UP) will show session.
With two ssh sessions to B, the last is shown by netstat on A (both on B).

ssh session to system C (192.168.1.242/24) is always shown on system A.

(ip-addrs just in case they gives different result)

`netstat -c<CPU> ..' doesn't show missing session either.

`sockstat -4c' gives same result (both use the same sysctl)

This is all using current master.

Actions #1

Updated by dillon over 13 years ago

:New submission from Thomas Nikolajsen <>:
:
:On SMP system using after starting a ssh login
:netstat command doesn't always show session:

I tracked it down.  There is a bogus generation count test in
the inpcb listing code that does not take into account sockets
which are moved between cpus when they are bound.
-Matt
Actions #2

Updated by thomas.nikolajsen over 13 years ago

Yes, it works now, thanks,

Actions

Also available in: Atom PDF