mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 2.6.15] Adding kernel-level identd dispatcher
@ 2006-03-24 16:21 Edward Chernenko
  2006-03-25 19:18 ` Jan Engelhardt
  2006-03-27 17:56 ` Trond Myklebust
  0 siblings, 2 replies; 13+ messages in thread
From: Edward Chernenko @ 2006-03-24 16:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: edwardspec

This patch adds ident daemon to net/gnuidentd/
directory.
Apply to: 2.6.15.1.
Patch is here:
http://unwd.sourceforge.net/gnuidentd-2.6.15.patch

I used two threads: one for connections handling and
another for tracking /etc/passwd changes through
inotify.
Additionally, root can set users hiding rules using
file in /proc. 

I'm awaiting your notes/tips.
Please CC me to <edwardspec@gmail.com>

Signed-Off-by: Edward Chernenko <edwardspec@gmail.com>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-24 16:21 [PATCH 2.6.15] Adding kernel-level identd dispatcher Edward Chernenko
@ 2006-03-25 19:18 ` Jan Engelhardt
  2006-03-26 23:12   ` Jan Engelhardt
  2006-03-27 17:56 ` Trond Myklebust
  1 sibling, 1 reply; 13+ messages in thread
From: Jan Engelhardt @ 2006-03-25 19:18 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: linux-kernel, edwardspec

>This patch adds ident daemon to net/gnuidentd/
>directory.
>Apply to: 2.6.15.1.
>Patch is here:
>http://unwd.sourceforge.net/gnuidentd-2.6.15.patch
>
>I used two threads: one for connections handling and
>another for tracking /etc/passwd changes through
>inotify.
>Additionally, root can set users hiding rules using
>file in /proc. 
>
>I'm awaiting your notes/tips.


I dislike this concept. khttpd once tried the same (moving 
userspace to kernelspace) -- and it's out again.




Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-25 19:18 ` Jan Engelhardt
@ 2006-03-26 23:12   ` Jan Engelhardt
  2006-03-27 12:27     ` Edward Chernenko
  0 siblings, 1 reply; 13+ messages in thread
From: Jan Engelhardt @ 2006-03-26 23:12 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: linux-kernel, edwardspec

>>This patch adds ident daemon to net/gnuidentd/
>>directory.
>>Apply to: 2.6.15.1.
>>Patch is here:
>>http://unwd.sourceforge.net/gnuidentd-2.6.15.patch
>>
>>I used two threads: one for connections handling and
>>another for tracking /etc/passwd changes through
>>inotify.
>>Additionally, root can set users hiding rules using
>>file in /proc. 
>>
>>I'm awaiting your notes/tips.

Are you even allowed to use the name "GNU identd"?
I'm not seeing your identd listed on GNU.org, that is, having
a page at http://www.gnu.org/software/identd/ like e.g. GRUB does.



Jan Engelhardt
-- 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-26 23:12   ` Jan Engelhardt
@ 2006-03-27 12:27     ` Edward Chernenko
  0 siblings, 0 replies; 13+ messages in thread
From: Edward Chernenko @ 2006-03-27 12:27 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-kernel, edwardspec

--- Jan Engelhardt <jengelh@linux01.gwdg.de> wrote:
> 
> Are you even allowed to use the name "GNU identd"?
> I'm not seeing your identd listed on GNU.org, that
> is, having
> a page at http://www.gnu.org/software/identd/ like
> e.g. GRUB does.
> 

Only portable (but not Linux-specific) software coud
be placed in gnu.org, if you don't know. 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-24 16:21 [PATCH 2.6.15] Adding kernel-level identd dispatcher Edward Chernenko
  2006-03-25 19:18 ` Jan Engelhardt
@ 2006-03-27 17:56 ` Trond Myklebust
  2006-03-28 10:14   ` Edward Chernenko
  1 sibling, 1 reply; 13+ messages in thread
From: Trond Myklebust @ 2006-03-27 17:56 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: linux-kernel, edwardspec

On Fri, 2006-03-24 at 08:21 -0800, Edward Chernenko wrote:
> This patch adds ident daemon to net/gnuidentd/
> directory.
> Apply to: 2.6.15.1.
> Patch is here:
> http://unwd.sourceforge.net/gnuidentd-2.6.15.patch
> 
> I used two threads: one for connections handling and
> another for tracking /etc/passwd changes through
> inotify.
> Additionally, root can set users hiding rules using
> file in /proc. 
> 
> I'm awaiting your notes/tips.
> Please CC me to <edwardspec@gmail.com>
> 
> Signed-Off-by: Edward Chernenko <edwardspec@gmail.com>

Justification, please.

You haven't even tried to explain to us what is so broken about the
userland identd that it needs to be replaced with a kernel version.

Cheers,
  Trond


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-27 17:56 ` Trond Myklebust
@ 2006-03-28 10:14   ` Edward Chernenko
  2006-03-28 13:36     ` Trond Myklebust
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Chernenko @ 2006-03-28 10:14 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-kernel, edwardspec

--- Trond Myklebust <trond.myklebust@fys.uio.no>
wrote:
>
> Justification, please.
> 
> You haven't even tried to explain to us what is so
> broken about the
> userland identd that it needs to be replaced with a
> kernel version.
> 

My point is that everything which follows this
conditions should be moved into kernel:
 - must dispatch requests in a fixed time
 - must work rarely, sleep most time
 - must depend on internal kernel variables (for
example, established connections table)

Don't forget that many years ago there was echo daemon
in userspace. But as it's highly effective to dispatch
all echo requests in kernel, it was moved into
low-level TCP implementation. 

I think that ident protocol also matches this
criteria.

Edward Chernenko <edwardspec@gmail.com>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-28 10:14   ` Edward Chernenko
@ 2006-03-28 13:36     ` Trond Myklebust
  2006-03-28 15:48       ` Edward Chernenko
  0 siblings, 1 reply; 13+ messages in thread
From: Trond Myklebust @ 2006-03-28 13:36 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: linux-kernel, edwardspec

On Tue, 2006-03-28 at 02:14 -0800, Edward Chernenko wrote:
> --- Trond Myklebust <trond.myklebust@fys.uio.no>
> wrote:
> >
> > Justification, please.
> > 
> > You haven't even tried to explain to us what is so
> > broken about the
> > userland identd that it needs to be replaced with a
> > kernel version.
> > 
> 
> My point is that everything which follows this
> conditions should be moved into kernel:
>  - must dispatch requests in a fixed time
>  - must work rarely, sleep most time
>  - must depend on internal kernel variables (for
> example, established connections table)
> 
> Don't forget that many years ago there was echo daemon
> in userspace. But as it's highly effective to dispatch
> all echo requests in kernel, it was moved into
> low-level TCP implementation. 
> 
> I think that ident protocol also matches this
> criteria.

Most servers are designed for low latency. A lot of them sleep a lot,
and a fair number of them also go poking around the kernel variables
in /proc (which exists precisely in order to export internal kernel
variables to userspace programs). I'll bet even your average Oracle
database application fits those criteria.

Echo made sense to move into the kernel because in addition to the above
it is a required feature on all Internet hosts, is pretty much stateless
(and/or depends only on internal IP stack state), and needs extra low
latency because it is designed to be used for timing purposes by
clients.
The same criteria hardly apply to identd.

Cheers,
  Trond


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-28 13:36     ` Trond Myklebust
@ 2006-03-28 15:48       ` Edward Chernenko
  2006-03-28 15:53         ` Trond Myklebust
  0 siblings, 1 reply; 13+ messages in thread
From: Edward Chernenko @ 2006-03-28 15:48 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-kernel, edwardspec



--- Trond Myklebust <trond.myklebust@fys.uio.no>
wrote:

> Most servers are designed for low latency. A lot of
> them sleep a lot,
> and a fair number of them also go poking around the
> kernel variables
> in /proc (which exists precisely in order to export
> internal kernel
> variables to userspace programs). I'll bet even your
> average Oracle
> database application fits those criteria.
> 
> Echo made sense to move into the kernel because in
> addition to the above
> it is a required feature on all Internet hosts, is
> pretty much stateless
> (and/or depends only on internal IP stack state),
> and needs extra low
> latency because it is designed to be used for timing
> purposes by
> clients.
> The same criteria hardly apply to identd.

If so, then why khttpd _was_ included into kernel?

Edward Chernenko <edwardspec@gmail.com>

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-28 15:48       ` Edward Chernenko
@ 2006-03-28 15:53         ` Trond Myklebust
  2006-03-28 20:30           ` Edward Chernenko
  0 siblings, 1 reply; 13+ messages in thread
From: Trond Myklebust @ 2006-03-28 15:53 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: linux-kernel, edwardspec

On Tue, 2006-03-28 at 07:48 -0800, Edward Chernenko wrote:
> 
> --- Trond Myklebust <trond.myklebust@fys.uio.no>
> wrote:
> 
> > Most servers are designed for low latency. A lot of
> > them sleep a lot,
> > and a fair number of them also go poking around the
> > kernel variables
> > in /proc (which exists precisely in order to export
> > internal kernel
> > variables to userspace programs). I'll bet even your
> > average Oracle
> > database application fits those criteria.
> > 
> > Echo made sense to move into the kernel because in
> > addition to the above
> > it is a required feature on all Internet hosts, is
> > pretty much stateless
> > (and/or depends only on internal IP stack state),
> > and needs extra low
> > latency because it is designed to be used for timing
> > purposes by
> > clients.
> > The same criteria hardly apply to identd.
> 
> If so, then why khttpd _was_ included into kernel?

That has been widely acknowledged as a mistake. You'll note that khttpd
was removed prior to the release of linux-2.6.0. Nobody misses it.

Cheers,
  Trond


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-28 15:53         ` Trond Myklebust
@ 2006-03-28 20:30           ` Edward Chernenko
  0 siblings, 0 replies; 13+ messages in thread
From: Edward Chernenko @ 2006-03-28 20:30 UTC (permalink / raw)
  To: Trond Myklebust; +Cc: linux-kernel, edwardspec

--- Trond Myklebust <trond.myklebust@fys.uio.no>
wrote:
> > 
> > If so, then why khttpd _was_ included into kernel?
> 
> That has been widely acknowledged as a mistake.
> You'll note that khttpd
> was removed prior to the release of linux-2.6.0.
> Nobody misses it.
> 

That's bad. I think that some people need this, so my
module will be distributed like Tux webserver,
separately from kernel.

Anyway, can you help me by explaining your opinion
about my code, not about development phylosophy?
That's my first work and it's important to me to find
if I done something unefficient.

Edward Chernenko <edwardspec@gmail.com>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-26 19:49 Edward Chernenko
  2006-03-26 22:42 ` Ray Lee
@ 2006-03-28  1:59 ` Herbert Xu
  1 sibling, 0 replies; 13+ messages in thread
From: Herbert Xu @ 2006-03-28  1:59 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: jengelh, linux-kernel

Edward Chernenko <edwardspec@yahoo.com> wrote:
> 
> Comparing with khttpd, we have no need to make
> transfers between
> userspace and kernelspace;  additionally, ident daemon
> depends on
> kernel connections table. This is very efficient to
> avoid using proc
> interface by userspace program here.

Check out the pidentd in Debian.  It uses netlink instead of procfs which
is much more scalable.

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
  2006-03-26 19:49 Edward Chernenko
@ 2006-03-26 22:42 ` Ray Lee
  2006-03-28  1:59 ` Herbert Xu
  1 sibling, 0 replies; 13+ messages in thread
From: Ray Lee @ 2006-03-26 22:42 UTC (permalink / raw)
  To: Edward Chernenko; +Cc: Jan Engelhardt, linux-kernel

> Comparing with khttpd, we have no need to make
> transfers between userspace and kernelspace;

For any of this to be motivating to anyone here, you'll have to
present an argument as to why this can't be done in userspace. identd
isn't a terribly complex thing -- one would think that a carefully
crafted userspace daemon could saturate any reasonable network
connection.

Conversely, if it can't be done fast from userspace, then people to
hear about that. That means that there's some task the kernel needs to
be made more faster at doing.

And if whatever potential performance problems with the kernel are
fixed, then all applications, including your userspace identd too,
will benefit from the fixes.

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: [PATCH 2.6.15] Adding kernel-level identd dispatcher
@ 2006-03-26 19:49 Edward Chernenko
  2006-03-26 22:42 ` Ray Lee
  2006-03-28  1:59 ` Herbert Xu
  0 siblings, 2 replies; 13+ messages in thread
From: Edward Chernenko @ 2006-03-26 19:49 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: linux-kernel

2006/3/25, Jan Engelhardt <jengelh@linux01.gwdg.de>:
>
> I dislike this concept. khttpd once tried the same
(moving
> userspace to kernelspace) -- and it's out again.
>

Comparing with khttpd, we have no need to make
transfers between
userspace and kernelspace;  additionally, ident daemon
depends on
kernel connections table. This is very efficient to
avoid using proc
interface by userspace program here.

--
Edward Chernenko <edwardspec@gmail.com>



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2006-03-28 20:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-24 16:21 [PATCH 2.6.15] Adding kernel-level identd dispatcher Edward Chernenko
2006-03-25 19:18 ` Jan Engelhardt
2006-03-26 23:12   ` Jan Engelhardt
2006-03-27 12:27     ` Edward Chernenko
2006-03-27 17:56 ` Trond Myklebust
2006-03-28 10:14   ` Edward Chernenko
2006-03-28 13:36     ` Trond Myklebust
2006-03-28 15:48       ` Edward Chernenko
2006-03-28 15:53         ` Trond Myklebust
2006-03-28 20:30           ` Edward Chernenko
2006-03-26 19:49 Edward Chernenko
2006-03-26 22:42 ` Ray Lee
2006-03-28  1:59 ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®