Re: Converting Sun Automounter maps

2000-09-23 Thread Max Khon

hi, there!

On Fri, 22 Sep 2000, Daniel Eischen wrote:

> On Fri, 22 Sep 2000, Stephen Hocking wrote:
> > I've stumbling into the wonderful world of auto-mounting, and trying to 
> > convert some maps from a Sun box to the FreeBSD format. I have amd.conf set up 
> > OK as per the man page, but keep on getting errors when changing into the 
> > relevant directorys (like amd can't find an appropriate match). Has anyone 
> > been down this path?
> 
> Somewhat related to this...
> 
> I've tried to get FreeBSD to behave with Sun automount home directories.
> When all the (Sun) home directories are on one system, I could get
> by by exporting the home directory on the Sun and automounting this
> as /home on the FreeBSD box.  But we're now expanding so that home
> directories will exist on 2 different Sun boxen, and this will no
> longer work.  I've resorted to disable automounting of users home 
> directories on the Suns (where /home/ could be automounted to
> any Sun box/filesystem) and am now auotmounting /home/ 
> instead.  So home directories are /home/box1/user23 or /home/box2/user134.
> FreeBSD can now deal with this by automounting box1 and box2 under /home.
> 
> amd-utils doesn't seem to support the autofs mapping needed to
> allow FreeBSD to exist in such an environment where each users home 
> directory is automounted.  I remember searching the newsgroups
> regarding this issue, and there did seem to be some initial support
> for autofs though.

we do automounting user homes this way:

--- cut here (amd.home amd map) ---
/defaults   
type:=nfs;opts:=rw,vers=3,proto=tcp,intr,soft,nodevs,nosuid,rsize=8192,wsize=8192;

#
# master users
ros host==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
oleghost==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
nik host==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
[...]
sol host==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
ilnar   host==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
eug host==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}
paulhost==master;type:=link;fs:=/usr/home/${key} || 
rhost:=master;rfs:=/usr/home;sublink:=${key}

#
# biboca users
al  host==biboca;type:=link;fs:=/usr/home/${key} || 
rhost:=biboca;rfs:=/usr;sublink:=home/${key}

#
# lark users
fjoehost==lark;type:=link;fs:=/usr/home/${key} || 
rhost:=lark;rfs:=/usr;sublink:=home/${key}

#
# tiamat users
osyahost==tiamat;type:=link;fs:=/usr/home/${key} || 
rhost:=tiamat;rfs:=/usr;sublink:=home/${key}

#
# lizard users
cs  host==lizard;type:=link;fs:=/usr/home/${key} || 
rhost:=lizard;rfs:=/usr;sublink:=home/${key}

#
# xaa users
xaa host==xaa;type:=link;fs:=/usr/home/${key} || 
rhost:=xaa;rfs:=/usr;sublink:=home/${key}

#
# drugon users
als host==drugon;type:=link;fs:=/usr/home/${key} || 
rhost:=drugon;rfs:=/usr;sublink:=home/${key}
blayhost==drugon;type:=link;fs:=/usr/home/${key} || 
rhost:=drugon;rfs:=/usr/home;sublink:=${key}
plesk   host==drugon;type:=link;fs:=/usr/home/${key} || 
rhost:=drugon;rfs:=/usr;sublink:=home/${key}
--- cut here ---

/fjoe



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Frustration with SCSI system

2000-09-23 Thread Warner Losh

In message <[EMAIL PROTECTED]> Wes Peters writes:
: SanDisk does, in the controller chip.  Good technology.

Ah.  that explains why I didn't see it in the datasheets on the cell
chips...  That, or I'm starting to come down with CRS :-)

Warner


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Limits of TCP in FreeBSD kernel?

2000-09-23 Thread David Miller

Hi All:)

I'm looking at building an eight or twelve port fast ethernet router, and
I got to wondering how well a FreeBSD box could handle that much traffic.

Assume, for the moment, that hardware is not an issue.  Assume that I have
a gigahertz processor, 4 way interleaved memory, 4 separate fast/wide PCI
busses. (Thanks to the guys on -hardware for helping me locate it)

I tried ping -f localhost on an 800 MHz athlon, and netstat -w 1 -I lo0
indicated about 80,000 pps.  The system was 100% busy doing this, about
85% system usage.  I'm thinking this is probably spent largely switching
in and out of kernel mode to a) have ping send the packet and b) respond
to it.  If this is correct, the number of packets it could handle while
staying within kernel mode would be considerably larger.  Or I could be
sniffing glue and the cost of copying packets in and out would exceed that
of context switching.

How many packets per second could I expect to get under ideal
circumstances?


Thanks in advance:)

--- David



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Limits of TCP in FreeBSD kernel?

2000-09-23 Thread Warner Losh

In message <[EMAIL PROTECTED]> David Miller 
writes:
: I tried ping -f localhost on an 800 MHz athlon, and netstat -w 1 -I lo0

ping -f doesn't use TCP at all.

: indicated about 80,000 pps.  The system was 100% busy doing this, about
: 85% system usage.

Sounds about right.  You asked ping to do as much work as it can and
it is doing it.

: I'm thinking this is probably spent largely switching
: in and out of kernel mode to a) have ping send the packet and b) respond
: to it.  If this is correct, the number of packets it could handle while
: staying within kernel mode would be considerably larger.  Or I could be
: sniffing glue and the cost of copying packets in and out would exceed that
: of context switching.

The number of packets is limited by the bandwidth of the pipe coming
into the machine, even for gigabit ethernet.  Also, larger packets
generally do better than smaller ones due to decreated interrupt
overhead.

ping -f isn't a good measure of throughput because it uses ICMP
packets and isn't coded for maximum speed.  ftp may be a better way to
estimate this, but you may need have a really large file in order to
get good measurements.  Since you are doing 5MB/s with ping's 64 byte
packets, you should likely get 50-100MB/s with TCP/IP and ftp, plus or
minus.  Make sure that the file you pick is in the buffer cache so
that you don't take the hit of reading it into RAM.  Also, you might
want to consider using the ttcp testing program to get numbers.

Since you are using the loopback device, you don't need to worry about 
a quality ethernet card, but might if you want to go external to the
box. 

: How many packets per second could I expect to get under ideal
: circumstances?

80,000 pps is a 5MB/s or 41Mb/s.  For a TCP streaming connection, you
can expect much higher data rates.  100Mb/s ethernet easily can be
saturated, while 1Gb/s ethernet can be saturated with a few tweaks
and using jumbo-frames.  Zero copy operations are important for
gigabit ethernet because the data rates are so high.  Ken Merry
<[EMAIL PROTECTED]> and others have done some work in this area.

Warner



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Denying ISDN using Radius

2000-09-23 Thread Mustafa N. Deeb

hi,

I don't know if someone did this before,
I want to deny ISDN connections to my PRI's,  unless the user is in the 
ISDN group.
can I make radius allow/deny ISDN based on GID

cheers



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



FreeBSD, BSDi differences

2000-09-23 Thread steveb99

I'm still new to FreeBSD and like it so far, but I'm thinking of ways I can
use it at work. I hear about BSDi and that it is used in many network
appliances like f5's BigIP load balancers and other similar products. What
I've read BSDi is used because of it excellent TCP stack and other
networking.  So how different is FreeBSD TCP stack and networking from
BSDi's?

Steve B.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: FreeBSD, BSDi differences

2000-09-23 Thread Kris Kennaway

On Sat, 23 Sep 2000, steveb99 wrote:

> I'm still new to FreeBSD and like it so far, but I'm thinking of ways I can
> use it at work. I hear about BSDi and that it is used in many network
> appliances like f5's BigIP load balancers and other similar products. What
> I've read BSDi is used because of it excellent TCP stack and other
> networking.  So how different is FreeBSD TCP stack and networking from
> BSDi's?

Very little.

Both FreeBSD and BSDi are derived from the same code. There are no doubt a
few differences, but based on what I've seen in other parts of the BSD/OS
code I'd be surprised if theirs had received as much work as our network
code has.

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe <[EMAIL PROTECTED]>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



putting FreeBSD in an extended partition

2000-09-23 Thread Zhiui Zhang


I am wondering whether there is a good reason for not putting FreeBSD in a
DOS extended partition. I have installed four O.S.es on my laptop and know
that could be a limitation if FreeBSD can not be put into a DOS extended
partition. I do not see any limitations in the boot loader or kernel that
prevent this. Thanks for any enlightment.

-Zhihui



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Turning off KMEMSTATS in kern_malloc.h

2000-09-23 Thread Soumen Biswas



Hello ,
 
What might be the side effects of undefining KMEMSTATS in 
/usr/src/sys/kern/kern_malloc.h  ( I am using FBSD 2.2.5 
) 
 
Regards 
Soumen