Re: [PATCH] Add locking to twe(4) so it no longer uses Giant

2012-08-08 Thread John Baldwin
On Tuesday, August 07, 2012 10:11:01 AM Mike Tancsa wrote: > On 8/3/2012 5:26 PM, John Baldwin wrote: > >>If there's a tool for poking at the drives/controller, I would use > >>that, plus camcontrol. Of course you want a data intensive workload > > > > (iometer/iozone/xdd with async and sy

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Konstantin Belousov
On Tue, Aug 07, 2012 at 05:03:13PM +0200, Hans Petter Selasky wrote: > On Sunday 05 August 2012 10:33:13 Hans Petter Selasky wrote: > > On Friday 03 August 2012 10:32:47 Ed Schouten wrote: > > > 2012/8/1 Hans Petter Selasky : > > > > I think the problem is like this, that in order to re-use the uni

ECMP/FreeBSD its a dream?

2012-08-08 Thread Alisson
Hi... everybody knows the stability of freebsd... but... and the protocol ECMP? its a dream? to use 2 routes with diferent gateways? to load balance? ECMP its a dream? ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listi

Re: ECMP/FreeBSD its a dream?

2012-08-08 Thread Michael Pounov
Hi ... You can do that with pf from recent several years :) On Wed, 8 Aug 2012 09:39:43 -0300 Alisson wrote: > Hi... > > everybody knows the stability of freebsd... but... and the protocol ECMP? > its a dream? > > to use 2 routes with diferent gateways? > > to load balance? > > ECMP its a

Re: ECMP/FreeBSD its a dream?

2012-08-08 Thread Vincent Hoffman
On 08/08/2012 13:39, Alisson wrote: > Hi... > > everybody knows the stability of freebsd... but... and the protocol ECMP? > its a dream? I havent tried but google says http://lists.freebsd.org/pipermail/cvs-src/2008-April/089956.html Its in since 2008 Vince > to use 2 routes with diferent gatew

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
On Wednesday 08 August 2012 13:31:33 Konstantin Belousov wrote: > On Tue, Aug 07, 2012 at 05:03:13PM +0200, Hans Petter Selasky wrote: > > On Sunday 05 August 2012 10:33:13 Hans Petter Selasky wrote: > > > On Friday 03 August 2012 10:32:47 Ed Schouten wrote: > > > > 2012/8/1 Hans Petter Selasky : >

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Ed Schouten
2012/8/8 Hans Petter Selasky : >> I have a question regarding the changed fragment of code. Why don't you use >> unr(9) KPI to manage unit numbers ? > > Probably I could, but right now the unr interface doesn't support pending unit > free which I need for other reasons, see below. What does `pendi

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
On Wednesday 08 August 2012 19:24:18 Ed Schouten wrote: > > Ed: I would really like to see a custom argument for the tsw_free(), > > because it only needs to know the unit number, and the xsc for UCOM is > > freed when this is called and cannot be referred. Is it possible to have > > a separate "vo

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
On Wednesday 08 August 2012 19:24:18 Ed Schouten wrote: > 2012/8/8 Hans Petter Selasky : > >> I have a question regarding the changed fragment of code. Why don't you > >> use unr(9) KPI to manage unit numbers ? > > > > Probably I could, but right now the unr interface doesn't support pending > > u

Re: [PATCH] Add locking to twe(4) so it no longer uses Giant

2012-08-08 Thread Mike Tancsa
On 8/8/2012 7:27 AM, John Baldwin wrote: >> Looks like it breaks 3dm2 and the tw_cli. With the patch, I am not able >> to see the 8006 controller I added. > > Ugh, ok. A few questions: > > 1) Does the driver see any attached drives/volumes? Yes > > 2) If it does, does basic I/O to the drives

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Ed Schouten
Hi Hans, 2012/8/8 Hans Petter Selasky : > Are you sure that the new softc won't be used in any callbacks when > tty_rel_gone() is called, except for tsw_free() ? Yes. Otherwise you would have already seen a kernel panic. See /sys/sys/ttydevsw.h; it has assertions on the locking. > It is like a d

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Konstantin Belousov
On Wed, Aug 08, 2012 at 07:42:24PM +0200, Hans Petter Selasky wrote: > On Wednesday 08 August 2012 19:24:18 Ed Schouten wrote: > > 2012/8/8 Hans Petter Selasky : > > >> I have a question regarding the changed fragment of code. Why don't you > > >> use unr(9) KPI to manage unit numbers ? > > > > >

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
On Wednesday 08 August 2012 23:51:55 Konstantin Belousov wrote: > On Wed, Aug 08, 2012 at 07:42:24PM +0200, Hans Petter Selasky wrote: > > On Wednesday 08 August 2012 19:24:18 Ed Schouten wrote: > > > 2012/8/8 Hans Petter Selasky : > > > >> I have a question regarding the changed fragment of code.

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
On Wednesday 08 August 2012 22:46:28 Ed Schouten wrote: > Hi Hans, > > 2012/8/8 Hans Petter Selasky : > > Are you sure that the new softc won't be used in any callbacks when > > tty_rel_gone() is called, except for tsw_free() ? > > Yes. Otherwise you would have already seen a kernel panic. See >

Re: ttydev_cdevsw has no d_purge

2012-08-08 Thread Hans Petter Selasky
Hi, I've updated the ucom patch. 1) Use unrhdr. Suggested by ed. 2) Implement tty_set_softc() and use that when dereffing ucom unit numbers. Please test and report back. --HPS === sys/tty.h == --- sys/tty.h (revision 239054) +++ sy