niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
[PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
Author Message
Xin LI
*nix forums beginner


Joined: 09 Nov 2004
Posts: 44

PostPosted: Thu Nov 10, 2005 3:43 am    Post subject: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

Dear folks,

Here is a patchset that taught inetd(Cool about kqueue, and some other
cleanups that raises WARNS level from 2 to 3, etc.

http://people.freebsd.org/~delphij/for_review/patch-inetd-kqueue

The kqueue part was a continuation of jmg@'s patchset.

Thanks in advance!

Cheers,
Back to top
Maxim Konovalov
*nix forums beginner


Joined: 23 Mar 2004
Posts: 15

PostPosted: Thu Nov 10, 2005 2:27 pm    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

On Thu, 10 Nov 2005, 11:43+0800, Xin LI wrote:

Quote:
Dear folks,

Here is a patchset that taught inetd(Cool about kqueue, and some other
cleanups that raises WARNS level from 2 to 3, etc.

http://people.freebsd.org/~delphij/for_review/patch-inetd-kqueue

The kqueue part was a continuation of jmg@'s patchset.

Can I ask: why?

--
Maxim Konovalov
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Xin LI
*nix forums beginner


Joined: 09 Nov 2004
Posts: 44

PostPosted: Thu Nov 10, 2005 4:58 pm    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

On 11/10/05, Maxim Konovalov <maxim@macomnet.ru> wrote:
[...]
Quote:
Can I ask: why?

My intention is to give kqueue more exposure.

Cheers,
Back to top
John-Mark Gurney
*nix forums addict


Joined: 16 Jun 2003
Posts: 89

PostPosted: Thu Nov 10, 2005 8:48 pm    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

Maxim Konovalov wrote this message on Thu, Nov 10, 2005 at 17:27 +0300:
Quote:
On Thu, 10 Nov 2005, 11:43+0800, Xin LI wrote:

Dear folks,

Here is a patchset that taught inetd(Cool about kqueue, and some other
cleanups that raises WARNS level from 2 to 3, etc.

http://people.freebsd.org/~delphij/for_review/patch-inetd-kqueue

The kqueue part was a continuation of jmg@'s patchset.

Can I ask: why?

Or to ask a different question, why continue to use select? When I
originally did the patch for inetd, I was VERY surprised at how little
of the logic I had to change to make it use kqueue...

Part of the reason I never committed it was that I did most of my work
on 3.x at the time, and I had serious tcp connection rate issues with
4.x (-current) at the time, and people wanted benchmarks, but w/ 4.x,
I couldn't get more than a hundred connections per second, while my
3.x box could do thousands...

--
John-Mark Gurney Voice: +1 415 225 5579

"All that I will do, has been done, All that I have, has not."
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Bruce M Simpson
*nix forums beginner


Joined: 14 Aug 2003
Posts: 41

PostPosted: Fri Nov 11, 2005 2:04 pm    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

On Thu, Nov 10, 2005 at 12:48:49PM -0800, John-Mark Gurney wrote:
Quote:
Here is a patchset that taught inetd(Cool about kqueue, and some other
cleanups that raises WARNS level from 2 to 3, etc.
The kqueue part was a continuation of jmg@'s patchset.
Can I ask: why?
Or to ask a different question, why continue to use select? When I
originally did the patch for inetd, I was VERY surprised at how little
of the logic I had to change to make it use kqueue...

I'm ambivalent about the change. On one hand, more exposure for kqueue
considered a good thing. On the other, this means change in inetd which
causes it to deviate from common BSD -- although I think we're happy for
inetd to deviate because we already have special cases for IPSEC in there,
which is actually quite cool.

On a slightly different note, writing a BSD-only routing daemon with
kqueue is quite easy -- it readily facilitates event driven programming
and explicit co-routines.

If you can divide your program up into logical event-driven steps, whilst
preserving the state you need, kqueue makes dispatch more simple. select()
alone involves copying and maintenance of multiple fd_sets, as well as
converting the results you get back into things which make sense.

What I'd like to see from someone with free time on their hands is to look
at how kqueue might be used within XORP, which has used a select() driven
event loop for far too long: http://www.xorp.org/

Regards,
BMS
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Antony Mawer
*nix forums beginner


Joined: 12 Nov 2005
Posts: 1

PostPosted: Sat Nov 12, 2005 12:03 am    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

On 12/11/2005 1:04 AM, Bruce M Simpson wrote:
Quote:
I'm ambivalent about the change. On one hand, more exposure for kqueue
considered a good thing. On the other, this means change in inetd which
causes it to deviate from common BSD -- although I think we're happy for
inetd to deviate because we already have special cases for IPSEC in there,
which is actually quite cool.

While on the topic of inetd and deviating from the other BSDs, I noticed
when playing with pf that OpenBSD has the ability to bind services to
specific interfaces in the inetd.conf file. Is there any interest in
bringing this capability across to the FreeBSD inetd?

I noticed the OpenBSD PR database suggests this came from NetBSD:

http://cvs.openbsd.org/cgi-bin/query-pr-wrapper?numbers=175&full=yes

Quote:
Fix:
re-import the code from NetBSD or elsewhere.

Though I haven't delved into this further. Is anyone else interested in
seeing this imported? If no one else takes up the challenge I might have
a look in a couple of weeks time, although at the moment I'm suffering
from ENOTIME.

Cheers
Antony

_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
Back to top
Xin LI
*nix forums beginner


Joined: 09 Nov 2004
Posts: 44

PostPosted: Sat Nov 12, 2005 6:00 am    Post subject: Re: [PATCH FOR REVIEW] kqueue'ify inetd(8) and several other cleanups Reply with quote

On 11/12/05, Antony Mawer <fbsd-arch@mawer.org> wrote:
Quote:
On 12/11/2005 1:04 AM, Bruce M Simpson wrote:
While on the topic of inetd and deviating from the other BSDs, I noticed
when playing with pf that OpenBSD has the ability to bind services to
specific interfaces in the inetd.conf file. Is there any interest in
bringing this capability across to the FreeBSD inetd?

I noticed the OpenBSD PR database suggests this came from NetBSD:

Yes, that was in my TODO list, too. Personally I'd prefer OpenBSD's
version, however, the change is not just to import their changes, as
we already did many changes against inetd(Cool, which made simple
re-import impractical.

Cheers,
--
Xin LI <delphij@delphij.net> http://www.delphij.net
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [7 Posts] View previous topic :: View next topic
The time now is Thu Jan 08, 2009 8:14 am | All times are GMT
navigation Forum index » *nix » BSD » FreeBSD » mail-lists » Architecture
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts [PATCH] Mantaining turnstile aligned to 128 bytes in i386... Attilio Rao Architecture 5 Tue Jul 25, 2006 3:13 pm
No new posts SUSE 10.1 new patch Butternut Squash Suse 3 Fri Jul 21, 2006 3:27 am
No new posts Problems with make-kpkg and skas patch Todd A. Jacobs Debian 0 Fri Jul 21, 2006 12:30 am
No new posts someone using apmd on ppc please test patch for #222635 Aníbal Monsalve Salazar devel 1 Thu Jul 20, 2006 11:50 pm
No new posts HPSBMA02133 SSRT061201 rev.1 - HP Oracle for OpenView (Of... Security Alert HP-UX 0 Thu Jul 20, 2006 6:43 pm

Proliant Server Memory | Personal Injury Attorney Los Angeles | Ken Follet | Debt Help | Loans
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.4319s ][ Queries: 16 (0.3273s) ][ GZIP on - Debug on ]