M. Warner Losh | 1 Feb 2008 01:57

Re: cvs commit: src/sys/netgraph netgraph.h ng_base.c ng_iface.c

In message: <47A223A7.8030503 <at> FreeBSD.org>
            Alexander Motin <mav <at> FreeBSD.org> writes:
: M. Warner Losh wrote:
: > In message: <200801310851.m0V8pmNB093625 <at> repoman.freebsd.org>
: >             Alexander Motin <mav <at> FreeBSD.org> writes:
: > :  Implement stack protection based on GET_STACK_USAGE() macro.
: > :  This fixes system panics possible with complicated netgraph setups
: > :  and allows to avoid unneded extra queueing for stack unwrapping.
: > 
: > How does this help?  What are the units?  The code is almost entirely
: > opaque given its magic numbers (100?  64?).
: 
: It helps perfectly! Numbers are really magic (empirical), they means 80% 
: and 50% of stack used respectively.

Comments about this should be made.  How the heck is one supposed to
know these mappings...

:  > Also, if you are checking to see if the stack usage is too big,
:  > it may already be too late.
: 
: It should not. Most of netgraph nodes actually consume not so much 
: stack, so 20% is more then enough for most. If some specific node 
: consumes more, or it makes heavy outside calls (like border nodes as 
: ng_iface or ng_ksocket) it should be declared as HI_STACK to make sure 
: that at least half of stack will be available for it.
: 
: There will always be some part of magic as nobody can say for sure how 
: much stack is required to pass packet via all network stack to TCP 
: socket and then back. But while netgraph engine allows to decouple stack 
(Continue reading)

Benno Rice | 1 Feb 2008 08:17
Picon
Favicon

cvs commit: src/sys/netgraph ng_pppoe.c

benno       2008-02-01 07:17:26 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pppoe.c 
  Log:
  Band-aid recent commit by mav by replacing a variable in a CTR statement with
  the variable that appears as if it should've been there.

  Pointy hat to:          mav
  Not tested either by:   benno

  Revision  Changes    Path
  1.90      +1 -1      src/sys/netgraph/ng_pppoe.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Alexander Motin | 1 Feb 2008 08:25
Picon
Favicon

cvs commit: src/sys/netgraph ng_pppoe.c

mav         2008-02-01 07:25:06 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_pppoe.c 
  Log:
  Tune the message for better informativity.
  Print the hook pointer as other functions do.

  Revision  Changes    Path
  1.91      +2 -1      src/sys/netgraph/ng_pppoe.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Alexander Motin | 1 Feb 2008 08:27
Picon
Favicon

Re: cvs commit: src/sys/netgraph ng_pppoe.c

Benno Rice пишет:
> benno       2008-02-01 07:17:26 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:
>     sys/netgraph         ng_pppoe.c 
>   Log:
>   Band-aid recent commit by mav by replacing a variable in a CTR statement with
>   the variable that appears as if it should've been there.

Thanks and sorry.

--

-- 
Alexander Motin
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Alexander Motin | 1 Feb 2008 12:01
Picon
Favicon

cvs commit: src/sys/netgraph ng_base.c

mav         2008-02-01 11:01:15 UTC

  FreeBSD src repository

  Modified files:
    sys/netgraph         ng_base.c 
  Log:
  Add comments about stack protection mechanism.

  Revision  Changes    Path
  1.143     +8 -0      src/sys/netgraph/ng_base.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Gleb Smirnoff | 1 Feb 2008 12:20
Picon
Favicon

cvs commit: src/sys/netinet ip_carp.c

glebius     2008-02-01 11:20:42 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/netinet          ip_carp.c 
  Log:
  Belated MFC of rev. 1.49:
    Do not leak lock in the case of EEXIST error.

  PR:             kern/92776

  Revision   Changes    Path
  1.27.2.12  +6 -2      src/sys/netinet/ip_carp.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Robert Watson | 1 Feb 2008 12:59
Picon
Favicon

cvs commit: src/sys/kern vfs_aio.c

rwatson     2008-02-01 11:59:15 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             vfs_aio.c 
  Log:
  Use FEATURE() macro to advertise aio availability.

  Revision  Changes    Path
  1.238     +2 -0      src/sys/kern/vfs_aio.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Max Laier | 1 Feb 2008 13:56
X-Face

Re: cvs commit: src/sys/netinet ip_carp.c

On Friday 01 February 2008, Gleb Smirnoff wrote:
> glebius     2008-02-01 11:20:42 UTC
>
>   FreeBSD src repository
>
>   Modified files:        (Branch: RELENG_6)
>     sys/netinet          ip_carp.c
>   Log:
>   Belated MFC of rev. 1.49:
>     Do not leak lock in the case of EEXIST error.
>
>   PR:             kern/92776
>
>   Revision   Changes    Path
>   1.27.2.12  +6 -2      src/sys/netinet/ip_carp.c

Thanks, also: kern/120130

--

-- 
/"\  Best regards,                      | mlaier <at> freebsd.org
\ /  Max Laier                          | ICQ #67774661
 X   http://pf4freebsd.love2party.net/  | mlaier <at> EFnet
/ \  ASCII Ribbon Campaign              | Against HTML Mail and News
M. Warner Losh | 1 Feb 2008 16:34

Re: cvs commit: src/sys/netgraph ng_base.c

In message: <200802011101.m11B1G9O001216 <at> repoman.freebsd.org>
            Alexander Motin <mav <at> FreeBSD.org> writes:
: mav         2008-02-01 11:01:15 UTC
: 
:   FreeBSD src repository
: 
:   Modified files:
:     sys/netgraph         ng_base.c 
:   Log:
:   Add comments about stack protection mechanism.

Thanks!

Warner
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"

Dmitry Morozovsky | 1 Feb 2008 18:35
Picon
Favicon

cvs commit: src/sys/netgraph ng_base.c

marck       2008-02-01 17:35:46 UTC

  FreeBSD src repository (doc committer)

  Modified files:
    sys/netgraph         ng_base.c 
  Log:
  Reword recent comment a bit.

  Revision  Changes    Path
  1.144     +3 -3      src/sys/netgraph/ng_base.c
_______________________________________________
cvs-src <at> freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-src
To unsubscribe, send any mail to "cvs-src-unsubscribe <at> freebsd.org"


Gmane