Re: kern/134157: [dummynet] dummynet loads cpu for 100% and make a system frozen and unstable [regression]

2009-05-05 Thread Oleg Bulyzhin
The following reply was made to PR kern/134157; it has been noted by GNATS.

From: Oleg Bulyzhin 
To: Andrey Golenischev 
Cc: bug-follo...@freebsd.org
Subject: Re: kern/134157: [dummynet] dummynet loads cpu for 100% and make a
system frozen and unstable [regression]
Date: Tue, 5 May 2009 11:19:18 +0400

 On Tue, May 05, 2009 at 12:02:44AM +0300, Andrey Golenischev wrote:
 > Yes i'm using mpd (tried with mpd4 and mpd5. Tried this on several PC's -
 > the same problem :( If i have 30-50 online users - it is ok. 100+ - dummynet
 > 100% loads and server become unstable/freezing.
 > 
 > net.inet.ip.fw.one_pass: 1
 > net.isr.direct: 1
 > 
 Could you try with net.isr.direct=0? Let me know if something will change.
 
 -- 
 Oleg.
 
 
 === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- o...@rinet.ru ===
 
 
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: Request feedback on IPv6 multicast listen on ::

2009-05-05 Thread Bruce Simpson

JINMEI Tatuya / 神明達哉 wrote:

I believe you can safely remove it.  The KAME repository version of
that code was already deprecated long time ago. 


Thanks for clearing this up. I couldn't find anything which referenced 
the code, and as you pointed out its implementation was not complete, so 
I will leave it out.


regards,
BMS
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


RE: Slow local TCP transfers on -CURRENT

2009-05-05 Thread Qing Li

> 
> Qing (added to CC) is aware of the problem. Not sure how far 
> off the fix is.
> 

I am resuming the work on it, hoping to get it verified and
finalized in a day or so. Sorry about the delay.

-- Qing


___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


IPv6 duplicate address detection

2009-05-05 Thread Bob Van Zant
I'm working on a piece of software that, among other things, allows an
administrator to easily configure IPv6 interfaces on a FreeBSD host. I've
run into a problem where whenever I reconfigure an interface with an IPv6
address FreeBSD marks the new address as being a duplicate.

The problem is that I'm following RFC 2461 [1] in that I send an unsolicited
neighbor advertisement to ff02::1 immediately after configuring the
interface.

This unsolicited neighbor advertisement is interpreted by FreeBSD as being a
response to the neighbor solicitation it sends around the same time as part
of duplicate address detection (DAD). This leads FreeBSD to think that the
address is already in use, it doesn't notice that it is the one already
using it.

I want this to mean that there's a bug in the IPv6 implementation in that it
shouldn't trigger a DAD failure if it sees an unsolicited NA from itself
when sent from the same physical interface.

An alternative view on this is that I shouldn't be sending out any packets,
especially unsolicited NAs, using or referencing a tentative address.

I'm writing to freebsd-net to ask what others think.

If people agree that the address shouldn't be marked as a duplicate then I
have a python script that reproduces the problem and a patch to nd6_nbr.c to
attach to a problem report that I'll file.

-Bob


[1] RFC 2461 section 7.2.6 paragraph 1:

   In some cases a node may be able to determine that its link-layer
   address has changed (e.g., hot-swap of an interface card) and may
   wish to inform its neighbors of the new link-layer address quickly.


___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Configure networking outside rc.conf

2009-05-05 Thread Giulio Ferro

I was wondering if there was a way to cleanly configure networking
without using rc.conf but only ifconfig and other utilities

This is what I mean: let's suppose that I have a complex network
configuration to launch on my machine, for example:
- many physical nics (with different speed, mtu, duplex...)
- many aliases on them
- many vlans
- many carped interfaces
- ng_fec
- ...

What I ask is: can I, set up networking in a way that is equivalent to
creating the configuration in /etc/rc.conf and then using
"/etc/rc.d/netif restart" ?

I know how to set up the example configuration above, what I
don't know is if I can do that cleanly, that is, cleaning the state of
all interfaces, truncating vlans, etc., and then creating them again
with ifconfig, ngctl, etc.

Thanks in advance.
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: Configure networking outside rc.conf

2009-05-05 Thread Chris Cowart
Giulio Ferro wrote:
> I was wondering if there was a way to cleanly configure networking
> without using rc.conf but only ifconfig and other utilities
> 
> This is what I mean: let's suppose that I have a complex network
> configuration to launch on my machine, for example:
> - many physical nics (with different speed, mtu, duplex...)
> - many aliases on them
> - many vlans
> - many carped interfaces
> - ng_fec
> - ...
> 
> What I ask is: can I, set up networking in a way that is equivalent to
> creating the configuration in /etc/rc.conf and then using
> "/etc/rc.d/netif restart" ?
> 
> I know how to set up the example configuration above, what I
> don't know is if I can do that cleanly, that is, cleaning the state of
> all interfaces, truncating vlans, etc., and then creating them again
> with ifconfig, ngctl, etc.

Assuming the NICs are displayed by ifconfig -a or inserted into
cloned_interfaces in /etc/rc.conf, you can create the following scripts:

/etc/start_if.vlan100
/etc/stop_if.vlan100

Where start_if.vlan100 is sourced by the netif start and stop_if.vlan100
is sourced by the netif stop.

For example:

| ccowart dev-aux etc $ cat /etc/start_if.vlan81
| ifconfig vlan81 vlan 81 vlandev em0
| ifconfig vlan81 inet 10.81.1.1/16

I don't know that two files per interface is any cleaner than a really
long /etc/rc.conf (I usually prefer the latter, but I generally am not
dealing with more than 20-40 lines at most).

-- 
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley


pgpphEhA06Ws4.pgp
Description: PGP signature


Re: kern/134251: skype-2.0.0.72 broke with recent kernel changes in 7.2: all skype-out calls disconnect after 1 minute

2009-05-05 Thread remko
Synopsis: skype-2.0.0.72 broke with recent kernel changes in 7.2: all skype-out 
calls disconnect after 1 minute

Responsible-Changed-From-To: freebsd-bugs->freebsd-net
Responsible-Changed-By: remko
Responsible-Changed-When: Wed May 6 05:04:06 UTC 2009
Responsible-Changed-Why: 
Seems like something networking

http://www.freebsd.org/cgi/query-pr.cgi?pr=134251
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: kern/134251: skype-2.0.0.72 broke with recent kernel changes in 7.2: all skype-out calls disconnect after 1 minute

2009-05-05 Thread Chagin Dmitry
The following reply was made to PR kern/134251; it has been noted by GNATS.

From: Chagin Dmitry 
To: Yuri 
Cc: freebsd-gnats-sub...@freebsd.org
Subject: Re: kern/134251: skype-2.0.0.72 broke with recent kernel changes
in 7.2: all skype-out calls disconnect after 1 minute
Date: Wed, 6 May 2009 09:00:32 +0400

 --W/nzBZO5zC0uMSeA
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 On Wed, May 06, 2009 at 12:49:19AM +, Yuri wrote:
 >=20
 > >Number: 134251
 > >Category:   kern
 > >Synopsis:   skype-2.0.0.72 broke with recent kernel changes in 7.2: =
 all skype-out calls disconnect after 1 minute
 > >Confidential:   no
 > >Severity:   serious
 > >Priority:   high
 > >Responsible:freebsd-bugs
 > >State:  open
 > >Quarter:   =20
 > >Keywords:  =20
 > >Date-Required:
 > >Class:  sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Wed May 06 00:50:02 UTC 2009
 > >Closed-Date:
 > >Last-Modified:
 > >Originator: Yuri
 > >Release:7.2-PRERELEASE
 > >Organization:
 > n/a
 > >Environment:
 > >Description:
 > Looks like outgoing skype calls are broken by some kernel change between =
 Feb 25, 2009 and Arp 25, 2009.
 >=20
 > Symptom is that time counter of the call counts seconds with much lower t=
 han 1Hz frequency and all outgoing calls disconnect after 1 minute.
 >=20
 > On Feb 25 it was 7.1-STABLE. On Apr 25 it's 7.2-PRERELEASE.
 >=20
 > This is a very serious usability issue and should be fixed before 7.2 is =
 made STABLE.
 >=20
 > It may cause other adverse effects in other Linux apps.
 >=20
 
 Try kern.hz=3D100 (in /boot/loader.conf) and report any resalts.
 
 --=20
 Have fun!
 chd
 
 --W/nzBZO5zC0uMSeA
 Content-Type: application/pgp-signature
 Content-Disposition: inline
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.10 (FreeBSD)
 
 iEYEARECAAYFAkoBGW8ACgkQ0t2Tb3OO/O22UQCfUXT/NePexqXzR2nGKFdV1D6x
 5f0AoK+S8qNNjrIDHAyUpp9ehyqdpY57
 =iJ/Z
 -END PGP SIGNATURE-
 
 --W/nzBZO5zC0uMSeA--
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Installworld failed with net options are added in kernel config

2009-05-05 Thread Sam Wun
Hi,

With 7.2, I have added the following options in the kernel config file
then compiled...
 MY STUFF #
##options IPDIVERT#divert sockets
device  pf  #PF OpenBSD
packet-filter firewall
device  pflog   #logging support
interface for PF
device  pfsync  #synchronization
interface for PF
device  carp#Common Address Redundancy Protocol
device  enc #IPSec interface (needs FAST_IPSEC)

options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_CDNR
options ALTQ_PRIQ
options ALTQ_NOPCC

options NETGRAPH#netgraph(4) system
options NETGRAPH_ASYNC
options NETGRAPH_BPF
options NETGRAPH_CISCO
options NETGRAPH_ECHO
options NETGRAPH_ETHER
options NETGRAPH_FRAME_RELAY
options NETGRAPH_HOLE
options NETGRAPH_IFACE
options NETGRAPH_KSOCKET
options NETGRAPH_LMI
# MPPC compression requires proprietary files (not included)
#optionsNETGRAPH_MPPC_COMPRESSION
options NETGRAPH_MPPC_ENCRYPTION
options NETGRAPH_ONE2MANY
options NETGRAPH_PPP
options NETGRAPH_PPPOE
options NETGRAPH_PPTPGRE
options NETGRAPH_RFC1490
options NETGRAPH_SOCKET
options NETGRAPH_TEE
options NETGRAPH_TTY
options NETGRAPH_UI
options NETGRAPH_VJC
#stuff for squid
options MSGMNB=16384 # max # of bytes in a queue
options MSGMNI=128   # number of message queue identifiers
options MSGSEG=4096 # number of message segments per queue
options MSGSSZ=256  # size of a message segment
options MSGTQL=16384 # max messages in system

options SHMSEG=64   # max shared mem id's per process
options SHMMNI=128   # max shared mem id's per system
options SHMMAX=8388608  # max shared memory segment size (bytes)
options SHMALL=8192 # max amount of shared memory (pages)

#stuff for postgresql
options SHMMAXPGS=131072
options SEMMNI=64
options SEMMNS=240
options SEMUME=40
options SEMMNU=120


However, when it comes to installworld, it failed with the following errors:

cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/key_defined.3x
> key_defined.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/keybound.3x
> keybound.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/keyok.3x > keyok.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/legacy_coding.3x
> legacy_coding.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/ncurses.3x
> ncurses.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/resizeterm.3x
> resizeterm.3
cat /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/wresize.3x
> wresize.3
sh /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/MKterminfo.sh
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/terminfo.head
 /usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/include/Caps
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/terminfo.tail
>terminfo.5
tr: not found
/usr/src/lib/ncurses/ncurses/../../../contrib/ncurses/man/MKterminfo.sh:
cannot open unsorted61466: No such file or directory
*** Error code 2

Stop in /usr/src/lib/ncurses/ncurses.
*** Error code 1

Stop in /usr/src/lib/ncurses.
*** Error code 1

Stop in /usr/src/lib.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

What is wrong with it?

Your suggestion is  highly appreciated.

Thanks
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"


Re: kern/134251: skype-2.0.0.72 broke with recent kernel changes in 7.2: all skype-out calls disconnect after 1 minute

2009-05-05 Thread dchagin
Synopsis: skype-2.0.0.72 broke with recent kernel changes in 7.2: all skype-out 
calls disconnect after 1 minute

Responsible-Changed-From-To: freebsd-net->dchagin
Responsible-Changed-By: dchagin
Responsible-Changed-When: Wed May 6 05:51:58 UTC 2009
Responsible-Changed-Why: 
Grab it, bug in Linux emulation layer. linux_times() should use kern.hz
instead of own constant. I will fix this soon.


http://www.freebsd.org/cgi/query-pr.cgi?pr=134251
___
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"