Issue 7 in socket-sentry: High network usage on system using ldap authentication

0 views
Skip to first unread message

socket...@googlecode.com

unread,
Apr 1, 2010, 10:55:10 AM4/1/10
to socket-s...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 7 by mirekm967: High network usage on system using ldap
authentication
http://code.google.com/p/socket-sentry/issues/detail?id=7

When the system is configured to use LDAP for user authentication and as
user base, then socksent-service is continuously exchanging high amount of
the data with ldap server.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

socket...@googlecode.com

unread,
Apr 1, 2010, 11:12:51 AM4/1/10
to socket-s...@googlegroups.com

Comment #1 on issue 7 by r...@hasselbaum.net: High network usage on system

Is your LDAP server also your DNS server? If so, this is expected behavior
if you've
enabled host name lookups. Socket Sentry does not initiate traffic with any
server
other than the DNS server. (And even those results are cached.)

socket...@googlecode.com

unread,
Apr 1, 2010, 2:27:44 PM4/1/10
to socket-s...@googlegroups.com
Updates:
Status: Invalid

Comment #2 on issue 7 by r...@hasselbaum.net: High network usage on system

Marking INVALID on assumption that this is really DNS traffic, since SS
doesn't
participate in any other kind of traffic. To eliminate DNS queries, host
name lookups
should be disabled (the default).

socket...@googlecode.com

unread,
Apr 2, 2010, 3:48:53 AM4/2/10
to socket-s...@googlegroups.com

Comment #3 on issue 7 by mirekm967: High network usage on system using ldap
authentication
http://code.google.com/p/socket-sentry/issues/detail?id=7

No it is not.
I dumped packets exchaged between socksent-service and ldap server, and it
seems, that
the service is asking for user using kde before each refreshing of applet
data. I
thing that the user info, should be saved somewhere once access is granted.

socket...@googlecode.com

unread,
Apr 2, 2010, 9:37:44 AM4/2/10
to socket-s...@googlegroups.com
Updates:
Status: Accepted

Comment #4 on issue 7 by r...@hasselbaum.net: High network usage on system

Ahh, OK, this is because SS is asking libc to supply the owner of each
process and on
machines that use LDAP, this must be causing a network round trip. I'll
have to see
if there's another way to get (or at least cache) this data.

socket...@googlecode.com

unread,
Apr 2, 2010, 9:41:47 AM4/2/10
to socket-s...@googlegroups.com
Updates:
Owner: r...@hasselbaum.net

Comment #5 on issue 7 by r...@hasselbaum.net: High network usage on system

(No comment was entered for this change.)

socket...@googlecode.com

unread,
Apr 2, 2010, 9:45:49 AM4/2/10
to socket-s...@googlegroups.com
Updates:
Labels: -Priority-Medium Priority-High

Comment #6 on issue 7 by r...@hasselbaum.net: High network usage on system

Upgrading to high. Should try to resolve in the next point release.

socket...@googlecode.com

unread,
Apr 4, 2010, 8:29:10 AM4/4/10
to socket-s...@googlegroups.com
Updates:
Status: Started

Comment #7 on issue 7 by r...@hasselbaum.net: High network usage on system

Couldn't find anything in /proc. The "ps" command uses the same libc call.
The "top"
command does, as well, but it has a cache. I suppose that's the way to go,
even
though I intended for SS to maintain radio silence unless host lookups was
turned on.

socket...@googlecode.com

unread,
Apr 5, 2010, 8:18:59 PM4/5/10
to socket-s...@googlegroups.com
Updates:
Status: Fixed

Comment #8 on issue 7 by r...@hasselbaum.net: High network usage on system

Fixed in revs f5905277f9 and 1e4c345d27 to land in release 0.9.2. SS now
performs
process owner username lookups asynchronously and caches the results.

socket...@googlecode.com

unread,
Apr 7, 2010, 11:14:56 AM4/7/10
to socket-s...@googlegroups.com

Comment #9 on issue 7 by mirekm967: High network usage on system using ldap
authentication
http://code.google.com/p/socket-sentry/issues/detail?id=7

I found the reason of the bug. There were two things together.
One of them was crash of nscd, there is bug in glibc since about 3 years,
that is
not corrected until now. Now I switched to unscd, and it solves problem of
big data
exchange.
But from the side of socketsentry there is still an issue. If nscd is not
running,
socketsentry ask ldap for user/group of each task accessing the network.
Once it
started asking the ldap, it access the network by itself, and asks for
username of
socksent-service, and then it is going to endless loop. If all other jobs
don't
connect the network, socksent-service do, becuase it asks for the user
assigned to
itself.

Since unscd daemon is running, this problem don't disturb me as well. So if
you
like, you could change this behavior (so the socksent-service remember
association
of user and group to itself).

Anyway Thank you very much for good job.

socket...@googlecode.com

unread,
Apr 7, 2010, 11:40:01 AM4/7/10
to socket-s...@googlegroups.com

Comment #10 on issue 7 by r...@hasselbaum.net: High network usage on system

As of release 0.9.2, Socket Sentry is caching the results of user database
lookups
itself. Even if it does not get a response from libc, it will not request a
lookup
for the same UID again until its own cache entry expires some time later. I
think
that solves the problem even if libc/nscd misbehaves.

Reply all
Reply to author
Forward
0 new messages