seeking help to rewrite the msdos filesystem

2002-11-12 Thread Tomas Pluskal

Hello,

I believe that everybody here knows about the "slow msdosfs" problem, that
is AFAIK caused by implementation without clustering.
For me this is very annoying, because I use digital camera, and ZIP drive,
and FAT on both of them. Speed is about 10 times lower than it could be..
I would like to rewrite the msdosfs driver to use clustering (in fact, I
have chosen it as school project, so I have to do it anyway :).

Is there anybody, who could spend few minutes and write me some
information about how these filesystems are implemented, what should I
read first, and what steps to follow to implement clustering ?
I am ready to do the hard work :)

Thanks

Tomas Pluskal


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



Greetings

2002-11-12 Thread kseseko seko
From: Kuzo M. Seseko
 Alternative Email Address: [EMAIL PROTECTED]


My name is Kuzo Mobutu Seseko, the daughter of the late
President
of Republic of Zaire,
now living in exile in South Africa.
The circumstances that led to my living in South Africa at
the moment
cannot be new to you , I
know you must know the history of my family.
However , during the days of my father’s reign we were into
solid
minerals exploration and mining which was the soul base of
our family
business, mostly diamond and gold.
But unfortunately, before my father passed on, he was on
exile in
Europe which made it impossible for us to organize our
businesses
especially mining before the political hostility which saw
him out of
office began.
Last year a security company in our country wrote me
informing me of
a deposit made by my father in my name which is still
with them. I
intended leaving the deposit with them sequel to my return
home so
that I can fall on that to start up a business ,but
unfortunately,
the rebel hostilities at home which have refused to stop up
till this
moment has made me to think otherwise.
Hence I am considering asking the security company to
transfer the
sum to an oversea country with a stable economy and
favorable
political condition, so that I can find an indigenous
business man
/ investor in that country to work with in partnership and
invest
this money.

I know your country is an advanced democracy with a more
stable
economy than that of African countries.
Hence I would want us to seek how to invest this sum
agreeing on a
working percentage.However due to my living status here
in South Africa I would want you
to keep this offer confidential.

Get back to me suggesting what we are to do, while I will
furnish you
with my contact telephone numbers and fax in South Africa
and that of
my lawyers.
I wish you strength.

K. Seseko.
_
Gagne une PS2 ! Envoie un SMS avec le code PS au 61166
(0,35€ Hors coût du SMS)




boot from USB ZIP or USB HDD

2002-11-12 Thread Anton Vinokurov
Hi!

Is there any way to boot FreeBSD from USB flash device which can be detected
as 'usb zip' by BIOS?

I have EasyDisk 32M flash device, which can be formatted under Windows as
bootable, and my motherboard could boot Windows from it, same time writing
standart FreeBSD boot block and label as described in handbook (fine for my
HDD) results in displaying '-' sign at the first moment of system boot,
following by hangup.

I should buy USB HDD capable flash device (unfortunately my EasyDisk support
only USB ZIP) and try again, or it is completely impossible to boot FreeBSD
from usb flash?

Yours,

Anton L. Vinokurov, CCNA
[EMAIL PROTECTED]
NeTAMS Development Team


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



Re: boot from USB ZIP or USB HDD

2002-11-12 Thread Bernd Walter
On Tue, Nov 12, 2002 at 06:10:08PM +0300, Anton Vinokurov wrote:
> Hi!
> 
> Is there any way to boot FreeBSD from USB flash device which can be detected
> as 'usb zip' by BIOS?
> 
> I have EasyDisk 32M flash device, which can be formatted under Windows as
> bootable, and my motherboard could boot Windows from it, same time writing
> standart FreeBSD boot block and label as described in handbook (fine for my
> HDD) results in displaying '-' sign at the first moment of system boot,
> following by hangup.
> 
> I should buy USB HDD capable flash device (unfortunately my EasyDisk support
> only USB ZIP) and try again, or it is completely impossible to boot FreeBSD
> from usb flash?

As long as the BIOS serves it as a normal disk there is no reason why
FreeBSB couldn't boot from it.
You already wrote that this is true.
As long as FreeBSD support the drive in general there is not reason why
you can't have the / filesystem on it.
If both points hold true there is no difference in having a traditional
connected disk.

-- 
B.Walter  COSMO-Project http://www.cosmo-project.de
[EMAIL PROTECTED] Usergroup   [EMAIL PROTECTED]


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



Re: boot from USB ZIP or USB HDD

2002-11-12 Thread Anton Vinokurov
My motherboard (VIA Epia) support booting from USB-FDD, USB-ZIP, USB-HDD and
USB-CDROM. I have no idea how it works and what the difference between all
this methods. My USB flash device could be formatted as "bootable" under
Windows as USB ZIP device, and when I set "boot from USB ZIP" in BIOS - all
is fine, and I see "a:>" DOS prompt. But setting "USB HDD or USB HDD or USB
CDROM" as boot device at BIOS fails - boot block cannot be found.

The problem is that FreeBSD boot block (boot0, boot1 or boot2 - I don't
know) assumed that booting is performed from HDD device, but it is untrue.
Maybe I should use different boot blocks? Is it possible to boot FreeBSD
form ZIP device (seen by BIOS as ZIP, not HDD or FDD)? I know that we have
different boot block to boot from CD (/boot/cdboot) and maybe we should have
something like /boot/zipboot?

Anton L. Vinokurov, CCNA
[EMAIL PROTECTED]
NeTAMS Development Team


> USB booting support is down to two things: BIOS and kernel support.
>
> If the BIOS can probe and boot from it in a similar way to how one might
> boot from an El Torito CDROM, then the BIOS has done its bit.
>
> Going further, some BIOSes support making these devices visible to DOS, I
> assume - I don't have any first hand experience of this.
>
> The problem here is that you won't even get as far as the loader *unless*
> the BIOS is able to interpret the USB device as a hard disk drive. If the
> BIOS emulates a fixed disk device in a traditional sense then standard
> boot code will work fine.
>
> However, if its USB boot emulation doesn't extend to the BIOS
> interrupts used by the standard FreeBSD boot sector, you won't even get
> as far as the loader.
>
> Once the kernel has started to boot, it will need to have a disk driver
which
> can understand the disk it's booting from, otherwise it will fail to mount
> root.
>
> I don't have time to do further research on this right now but I suggest
> you contact your BIOS vendor for information, or research on their web
site.
>
> BMS
>


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



how to control tagged queueing?

2002-11-12 Thread Dan Ellard

I'm experimenting with the effects of SCSI tagged queueing on file
system performance.  Is there any kind of global toggle somewhere in
the kernel to turn tagged queueing on and off, and/or knob to limit
the number of outstanding tags?  Tagged queue management all seems to
be done at the device level, and I haven't found hooks for controlling
it at a higher level (but I thought I'd ask before running off to
write something).

I'm running 4.6.2p4, in case things have changed.  (If there's a nicer
interface in 4.7, I'll install it immediately!)

Thanks,
-Dan



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



Re: how to control tagged queueing?

2002-11-12 Thread Chris Dillon
On Tue, 12 Nov 2002, Dan Ellard wrote:

> I'm experimenting with the effects of SCSI tagged queueing on file
> system performance.  Is there any kind of global toggle somewhere in
> the kernel to turn tagged queueing on and off, and/or knob to limit
> the number of outstanding tags?  Tagged queue management all seems
> to be done at the device level, and I haven't found hooks for
> controlling it at a higher level (but I thought I'd ask before
> running off to write something).
>
> I'm running 4.6.2p4, in case things have changed.  (If there's a
> nicer interface in 4.7, I'll install it immediately!)

man camcontrol

Specifically:

camcontrol tags [device id] [generic args] [-N tags] [-q] [-v]
camcontrol negotiate [device id] [generic args] [-T enable|disable]

--
 Chris Dillon - cdillon(at)wolves.k12.mo.us
 FreeBSD: The fastest and most stable server OS on the planet
 - Available for IA32 (Intel x86) and Alpha architectures
 - IA64, PowerPC, UltraSPARC, ARM, and S/390 under development
 - http://www.freebsd.org

No trees were harmed in the composition of this message, although some
electrons were mildly inconvenienced.



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



Interesting

2002-11-12 Thread scottl
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA



-
This email was sent using FREE Catholic Online Webmail.
Please tell your family, friends and children about COL Webmail!
http://webmail.catholic.org/



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



Interesting

2002-11-12 Thread scottl
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA



-
This email was sent using FREE Catholic Online Webmail.
Please tell your family, friends and children about COL Webmail!
http://webmail.catholic.org/



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



Interesting

2002-11-12 Thread scottl
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA



-
This email was sent using FREE Catholic Online Webmail.
Please tell your family, friends and children about COL Webmail!
http://webmail.catholic.org/



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



Interesting

2002-11-12 Thread scottl
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA
FUCK SCOTT LONG AND FUCK BILL FUMEROLA



-
This email was sent using FREE Catholic Online Webmail.
Please tell your family, friends and children about COL Webmail!
http://webmail.catholic.org/



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



Network connection problem: SIS, miibus

2002-11-12 Thread Paul Everlund
Hi all!

Did try questions, without any reply, so I'm trying here...

I have a friend who decided to try FreeBSD 4.6.2 and it works just
fine except one thing, his connection to the internet.

He has a sis network card, which is compiled into the kernel, with
miibus that is required.

He gets a connection just fine, for about half a minute, then it
doesn't work anymore, with long periods of "wait" time.

A ping to an address works perfectly after a reboot, next minute a
ping to the same address does not work.

Also, issuing kldstat, the miibus is there, which it should not,
as it's compiled into the kernel. If I recall correct, it's not
there when it's first working, but later it is, when not working.

There is also an arp message, that looks as if some change of MAC-
address has taken place, which seem to be strange.

One last thing, ifconfig says the sis is using full-duplex. Is
that ok, if maybe not the other side can handle full-duplex?

I can provide more information if needed to help me solve this pro-
blem, so that he can start using FreeBSD full time.

Thanks in advance for any reply!

Best regards,
Paul



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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread Rich Morin
My spouse had the problem of creating a bootable copy of A/UX on a
single floppy.  She decided to write a "doitall" program that had
functionality from a number of small commands.  This amortized the
overhead a great deal.

A similar approach could be used for /(s)bin: lump several programs
together into a single binary, but give the binary links for each
of the original names (and have the program respond according to
the name used, ala vi/ex).

My general reaction, however, is that this issue (shrinking sbin)
is not worth trashing the software engineering of piles of commands.

-r
--
email: [EMAIL PROTECTED]; phone: +1 650-873-7841
http://www.cfcl.com/rdm- my home page, resume, etc.
http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection

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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread Justin Wojdacki
Rich Morin wrote:
> 
> My spouse had the problem of creating a bootable copy of A/UX on a
> single floppy.  She decided to write a "doitall" program that had
> functionality from a number of small commands.  This amortized the
> overhead a great deal.
> 
> A similar approach could be used for /(s)bin: lump several programs
> together into a single binary, but give the binary links for each
> of the original names (and have the program respond according to
> the name used, ala vi/ex).
> 
> My general reaction, however, is that this issue (shrinking sbin)
> is not worth trashing the software engineering of piles of commands.
> 
> -r
> --
> email: [EMAIL PROTECTED]; phone: +1 650-873-7841
> http://www.cfcl.com/rdm- my home page, resume, etc.
> http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
> http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
> http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message

If you're seriously interested in this, take a look at busybox. 

http://busybox.lineo.org

Not sure how compatible the licensing is for FreeBSD base software
though.

-- 
-
Justin Wojdacki
[EMAIL PROTECTED] (408) 350-5032
Communications Processors Group -- Analog Devices

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



CD audio interpolation

2002-11-12 Thread Sean Hamilton
Greetings,

If I read /dev/acd0t1, will the CD-ROM interpolate over scratches and stuff?
Is there any way of identifying them?

thanks,

sh


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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread Amit Rao
On Tuesday 12 November 2002 02:34 pm, Justin Wojdacki wrote:
> Rich Morin wrote:
> > My spouse had the problem of creating a bootable copy of A/UX on a
> > single floppy.  She decided to write a "doitall" program that had
> > functionality from a number of small commands.  This amortized the
> > overhead a great deal.
> >
> > A similar approach could be used for /(s)bin: lump several programs
> > together into a single binary, but give the binary links for each
> > of the original names (and have the program respond according to
> > the name used, ala vi/ex).
> >
> > My general reaction, however, is that this issue (shrinking sbin)
> > is not worth trashing the software engineering of piles of commands.
> >
> > -r
> > --
> > email: [EMAIL PROTECTED]; phone: +1 650-873-7841
> > http://www.cfcl.com/rdm- my home page, resume, etc.
> > http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
> > http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
> > http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
> >
> > To Unsubscribe: send mail to [EMAIL PROTECTED]
> > with "unsubscribe freebsd-hackers" in the body of the message
>
> If you're seriously interested in this, take a look at busybox.
>
> http://busybox.lineo.org
>
> Not sure how compatible the licensing is for FreeBSD base software
> though.

Make that http://www.busybox.net/

Its GPL.


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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread The Anarcat
The same approach is used in creating sysinstall related binaries or
in PicoBSD. The utility is called crunchgen(1).

The examples section even features ways to do exactly that with /sbin.

A.

On Tue Nov 12, 2002 at 11:32:26AM -0800, Rich Morin wrote:
> My spouse had the problem of creating a bootable copy of A/UX on a
> single floppy.  She decided to write a "doitall" program that had
> functionality from a number of small commands.  This amortized the
> overhead a great deal.
> 
> A similar approach could be used for /(s)bin: lump several programs
> together into a single binary, but give the binary links for each
> of the original names (and have the program respond according to
> the name used, ala vi/ex).
> 
> My general reaction, however, is that this issue (shrinking sbin)
> is not worth trashing the software engineering of piles of commands.
> 
> -r
> -- 
> email: [EMAIL PROTECTED]; phone: +1 650-873-7841
> http://www.cfcl.com/rdm- my home page, resume, etc.
> http://www.cfcl.com/Meta   - The FreeBSD Browser, Meta Project, etc.
> http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
> http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-hackers" in the body of the message
> 

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



A quick gdb help

2002-11-12 Thread Zhihui Zhang

I need to set a variable value in gdb:

(gdb) set xyz = 1  <- works
(gdb) set i = 1<- syntax error near '1'

I guess i must have special meaning in gdb. But what if I insist setting
it, is there a way?   Thanks.

-Zhihui


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



Re: A quick gdb help

2002-11-12 Thread Chuck Tuffli
On Tue, Nov 12, 2002 at 02:56:10PM -0500, Zhihui Zhang wrote:
> 
> I need to set a variable value in gdb:
> 
> (gdb) set xyz = 1  <- works
> (gdb) set i = 1<- syntax error near '1'
> 
> I guess i must have special meaning in gdb. But what if I insist setting
> it, is there a way?   Thanks.

'i' is shorthand (or an alias) for the info command. Not sure if you
can effectively "unalias" i.

-- 
Chuck Tuffli
Agilent Technologies, Storage and Networking

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



Re: A quick gdb help

2002-11-12 Thread Amit Rao
On Tuesday 12 November 2002 02:56 pm, Zhihui Zhang wrote:
> I need to set a variable value in gdb:
>
> (gdb) set xyz = 1  <- works
> (gdb) set i = 1<- syntax error near '1'
>
> I guess i must have special meaning in gdb. But what if I insist setting
> it, is there a way?   Thanks.

This works:
set (i) = 1 

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



Re: A quick gdb help

2002-11-12 Thread Amit Rao
On Tuesday 12 November 2002 03:03 pm, Chuck Tuffli wrote:
> On Tue, Nov 12, 2002 at 02:56:10PM -0500, Zhihui Zhang wrote:
> > I need to set a variable value in gdb:
> >
> > (gdb) set xyz = 1  <- works
> > (gdb) set i = 1<- syntax error near '1'
> >
> > I guess i must have special meaning in gdb. But what if I insist setting
> > it, is there a way?   Thanks.
>
> 'i' is shorthand (or an alias) for the info command. Not sure if you
> can effectively "unalias" i.

Actually its short for set input-radix
(gdb) help set i
Set default input radix for entering numbers.

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



RE: Network connection problem: SIS, miibus

2002-11-12 Thread Luoqi Chen
> From: [EMAIL PROTECTED]
> [mailto:owner-freebsd-hackers@;FreeBSD.ORG]On Behalf Of Paul Everlund
> Sent: Tuesday, November 12, 2002 10:42 AM
> To: [EMAIL PROTECTED]
> Subject: Network connection problem: SIS, miibus
> 
> 
> Hi all!
> 
> Did try questions, without any reply, so I'm trying here...
> 
> I have a friend who decided to try FreeBSD 4.6.2 and it works just
> fine except one thing, his connection to the internet.
> 
> He has a sis network card, which is compiled into the kernel, with
> miibus that is required.
> 
Could you post the output from the `pciconf -l | grep sis' command?
I have a couple of machines with integrated sis ethernet controllers
(sis962 south bridge), and the if_sis driver would not work without
some tweaking. If your friend is using something similar, I could
send a patch for him to try.

-lq

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



Re: A quick gdb help

2002-11-12 Thread Peter Edwards
I tend to avoid using "set", and use "print", with an assignment expression:
eg "print i = 1" or "p i = 1". It removes any namespace conflicts between
variables in the target process and gdb settings.
--
Peter.

> I need to set a variable value in gdb:
> 
> (gdb) set xyz = 1  <- works
> (gdb) set i = 1<- syntax error near '1'
> 
> I guess i must have special meaning in gdb. But what if I insist setting
> it, is there a way?   Thanks.
> 
> -Zhihui

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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread Poul-Henning Kamp
In message , Rich Morin writes:

>My spouse had the problem of creating a bootable copy of A/UX on a
>single floppy.  She decided to write a "doitall" program that had
>functionality from a number of small commands.  This amortized the
>overhead a great deal.

man crunchgen.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

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



Re: how to control tagged queueing?

2002-11-12 Thread Dan Ellard
On Tue, 12 Nov 2002, Chris Dillon wrote:

> > I'm experimenting with the effects of SCSI tagged queueing on file
> > system performance.  Is there any kind of global toggle somewhere in
> > the kernel to turn tagged queueing on and off, and/or knob to limit
> > the number of outstanding tags?  Tagged queue management all seems
> > to be done at the device level, and I haven't found hooks for
> > controlling it at a higher level (but I thought I'd ask before
> > running off to write something).
> >
> > I'm running 4.6.2p4, in case things have changed.  (If there's a
> > nicer interface in 4.7, I'll install it immediately!)
>
> man camcontrol
>
> Specifically:
>
> camcontrol tags [device id] [generic args] [-N tags] [-q] [-v]
> camcontrol negotiate [device id] [generic args] [-T enable|disable]

Thanks, that's exactly what I needed.

And thanks to the other people who have responded!

-Dan



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



Re: [hackers] Re: Netgraph could be a router also.

2002-11-12 Thread Terry Lambert
David Gilbert wrote:
> > "Terry" == Terry Lambert <[EMAIL PROTECTED]> writes:
> Terry> By "it", I guess you mean "FreeBSD"?
> Terry> What are your performance goals?
> 
> Right now, I'd like to see 500 to 600 kpps.
> 
> Terry> Where is FreeBSD relative to those goals, right now, without
> Terry> you doing anything to it?
> 
> Without any work, we got 75 kpps.
> 
> Terry> Where is FreeBSD relative to those goals, right now, if you
> Terry> tune it very carefully, but don't hack any code?
> 
> With a few patches, including polling and some tuning, we got 150 to
> 200 kpps.
> 
> Note that we've been focusing on pps, not Mbs.  With 100M cards (what
> we're currently using) we want to focus on getting the routing speed
> up.

These stats are moderately meaningless.

The problem is that they don't tell me about where you are measuring
your packets-per-second rate, or how it's being measured, or whether
the interrupt or processing load is high enough to trigger livelock,
or not, or the size of the packet.  And is that a unidirectional or
bidirectional rate?  UDP?

I guess I could guess with 200kpps:

100mbit/s  /  200kp/s  =  500 bytes per packet

...and that an absolute top end.  Somehow, I think the packets are
smaller.  Bidirectionally, not FDX, we're talking 250 bytes per
packet maximum theoretical throughput.


> One of the largest problems we've found with GigE adapters on FreeBSD
> is that their pps ability (never mind the volume of data) is less than
> half that of the fxp driver.

I've never found this to be the case, using the right hardware,
and a combination of hard and soft interrupt coelescing.  You'd
have to tell me what hardware you are using for me to be able to
stare at the driver.  My personal hardware recommendation in this
regard would be the Tigon III, assuming that the packet size was
1/3 to 1/6th the MTU, as you implied by your numbers.

Personnally, I would *NOT* use polling, particularly if you were
using user space processing with Zebra, since any load at all would
push you to the point of starving the user space process for CPU
time; it's not really worth it (IMO) to do the work necessary to go
to weighted fair share queueing for scheduling, if it came to that.


> But we havn't tested every driver.  The Intel GigE cards were
> especially disapointing.

Have you tried the Tigon III, with Bill Paul's driver?

If so, did you include the polling patches that I made against
the if_ti driver, and posted to -net, when you tested it?

Do you have enough control over the load clients that you can
ramp the load up until *just before* the performance starts to
tank?  If so, what's the high point of the curve on the Gigabit,
before it tanks (and it will)?


> Terry> If you are willing to significantly modify FreeBSD, and address
> Terry> all of the latency issues, a multiport Gigabit router is
> Terry> doable, but you haven't even mentioned the most important
> Terry> aspect of any high speed networking system, so it's not likely
> Terry> that you're going to be able to do this effectively, just
> Terry> approaching it blind.
> 
> We've been looking at the click stuff... and it seems interesting.  I
> like some aspects of the netgraph interface better and may be paying
> for an ng_route to be created shortly.

Frankly, I am not significantly impressed by the Click and
other code.  If all you are doing is routing, and everything
runds in a fixed amount of time at interrupt, it's fine, but
it quickly gets less fine, as you move away from that setup.

If you are running Zebra, you really don't want Click.

If you can gather enough statistics to graph the drop-off curve,
so it's possible to see why the problems you are seeing are
happening, then I can probably provide you some patches that
will increase performance for you.  It's important to know if
you are livelocking, or if you are running out of mbufs, or if
it's a latency issue you are facing, or if we are talking about
context switch overhead, instead, etc..

-- Terry

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



Re: [hackers] Re: Netgraph could be a router also.

2002-11-12 Thread Nicolas Christin
On Tue, 12 Nov 2002, Terry Lambert wrote:

>   100mbit/s  /  200kp/s  =  500 bytes per packet
> 
> ...and that an absolute top end.  Somehow, I think the packets are
> smaller.  

Just for the record... 

Measurement studies[1] (and NLANR traces[2]) suggest that the average
packet size on the Internet is between 400-500 bytes, depending on
the backbone link you're monitoring. According to the same
studies/traces, packet size distribution can be approximated relatively
accurately by a tri-modal distribution, with about 40% ~40 to 44-byte
packets, 20% ~572 to 576-byte packets, and 20% 1500-byte packets. The 20
remaining percent are more or less uniformly distributed between 40 and
4000 bytes. This is all of course a rather crude approximation (which 
is not helped by the fact I'm quoting these numbers off the top of my
head - I'll post a correction if I'm blatantly wrong, but I think my
memory still works ok), but it may be helpful to get a rough idea of the
'typical' packet size one can observe.

The point is, 200 Kpps should be relatively close to what you should see
on a 100 Mbps FDX link.

[1] http://www.caida.org/outreach/resources/learn/packetsizes
[2] http://pma.nlanr.net/PMA/

Best,
-- 
Nicolas Christin 
Ph.D. Candidate, University of Virginia, Computer Science
http://www.cs.virginia.edu/~nicolas 


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



Re: CD audio interpolation

2002-11-12 Thread Daniel O'Connor
On Wed, 2002-11-13 at 06:14, Sean Hamilton wrote:
> If I read /dev/acd0t1, will the CD-ROM interpolate over scratches and stuff?
> Is there any way of identifying them?

I believe it's basically up to your CD ROM drive - all the acd driver
does is ask it for track info, I don't believe it does anything special
to the data.

FWIW I use dd if=/dev/acd0tX bs=2352 to make my mp3's and it has never
made a bad one yet (with a 52x Mitsubishi and a 24x TEAC laptop CDROM).

Admittedly all my CD's are basically archival and once I rip them I
almost never play them again, but IMHO new drive are perfectly capable
of reading audio without too much hassle.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



miniBSD buids and runs ok on Advantek WEB 2143 box

2002-11-12 Thread Murray Taylor
Manuel,

As the subject says, we built miniBSD following your scripts etc
to make a ipf firewall box. We will be also using the same platform
as a ipf / ppp dialer for our remote sites. (freeing up some desktops
that are currently being used ;-)  )

http://www.advantech.com.tw/eplatforms/web2143.asp


Thanks for the guiding efforts!

Murray Taylor
Special Projects Engineer

-
Bytecraft Systems & Entertainment
Phone: 61 3 8710 2555
Fax: 61 3 8710 2599
Direct: 61 3 9238 4275
Mobile: 61 0417 319 256
Email: [EMAIL PROTECTED]
or visit us on the web
http://www.bytecraftsystems.com
http://www.bytecraftentertainment.com



This Email has been scanned for Viruses by MailMarshal
an automated gateway email virus scanner.



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



Shared files within a jail

2002-11-12 Thread Hans Zaunere

After much searching and contemplation, I've decided to ask the
question directly:

I'm implementing a jail server, which will provide a very limited set
of resources (Apache/MySQL/PHP).  Setup is going well, however I've run
into a little snag that I hope can be worked out.

I want to allow the users the ability to compile and use their own
instances of Apache and MySQL from within the jail.  But instead of
duplicating the basic system libs and bins, I'd like to maintain a
single repository of this, which can then be read-only from within the
jail.  Options:

-- Symlinks won't work because of the chroot.
-- Mounts from within the jail aren't allowed, plus a single partition
can't be mounted multiple times, AFAIK.
-- I don't have NFS setup, and I would like to avoid it as much as
possible.
-- mount_null seems to be the answer, however the warning at the end of
the man page is scary.

Is there any combination of these (or anything I'm forgetting) that
could help me here?  Is mount_null stable?

I've had an account on a jail server which had /shared visible within
the jail, and symlinks to /bin, /usr/lib and such.  I'm not sure how
this was actually implemented, and I'd be interested if anyone has seen
or heard of any solutions to this type of problem.

Best,



=
Hans Zaunere
New York PHP
http://nyphp.org
[EMAIL PROTECTED]

__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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



Re: Shared files within a jail

2002-11-12 Thread Daniel O'Connor
On Wed, 2002-11-13 at 13:38, Hans Zaunere wrote:
> -- Symlinks won't work because of the chroot.
> -- Mounts from within the jail aren't allowed, plus a single partition
> can't be mounted multiple times, AFAIK.
> -- I don't have NFS setup, and I would like to avoid it as much as
> possible.
> -- mount_null seems to be the answer, however the warning at the end of
> the man page is scary.
> 
> Is there any combination of these (or anything I'm forgetting) that
> could help me here?  Is mount_null stable?
> 
> I've had an account on a jail server which had /shared visible within
> the jail, and symlinks to /bin, /usr/lib and such.  I'm not sure how
> this was actually implemented, and I'd be interested if anyone has seen
> or heard of any solutions to this type of problem.

You should be able to use hardlinks for this sort of thing.

Make sure you mark them immutable though, otherwise someone in a jail
could compromise other users of those libraries [in another jail].

--
>  
> Daniel O'Connor software and network engineer
> for Genesis Software - http://www.gsoft.com.au
> "The nice thing about standards is that there
> are so many of them to choose from."
>   -- Andrew Tanenbaum
> GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



Re: Shared files within a jail

2002-11-12 Thread Hans Zaunere

> > I've had an account on a jail server which had /shared visible
> > within the jail, and symlinks to /bin, /usr/lib and such.  I'm not
> > sure how this was actually implemented, and I'd be interested if
> > anyone has seen or heard of any solutions to this type of problem.
> 
> You should be able to use hardlinks for this sort of thing.

Two issues arise:  
1) I'd like to be able to link an entire directory for convience and
maintenance purposes.

2) Cross partition links not possible.

Number 2 is really the kicker, as far as I can tell.  Is there some way
around this?

Hans



__
Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos
http://launch.yahoo.com/u2

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



Re: Shared files within a jail

2002-11-12 Thread Daniel O'Connor
On Wed, 2002-11-13 at 14:17, Hans Zaunere wrote:
> Two issues arise:  
> 1) I'd like to be able to link an entire directory for convience and
> maintenance purposes.

Write a script :)

> 2) Cross partition links not possible.
> 
> Number 2 is really the kicker, as far as I can tell.  Is there some way
> around this?

Don't think so, you're stuck :(

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



Re: Shared files within a jail

2002-11-12 Thread Matthew Dillon
Try using null mounts.  The warning is in there because making the
null mount code work is a real hack and the authors aren't entirely
sure that everything's gotten covered.  That said, use of a null mount
is certainly a lot safer if the stuff behind the mount is mostly
static.  

Note that you can also use localhost NFS mounts to replicate pieces of
filesystems within jails, but you need to remember that the kernel 
will wind up caching multiple copies of the data for these two cases
and that NFS has file locking issues.

Finally, keep in mind that disk space these days is quite cheap.  
Duplicating the data is not as bad a way to go as you might think, and 
it allows you to incrementally upgrade each jail.  It may suffice to use
the null mount trick *only* for the big binaries and libraries that you
really want to share, and it may be reasonable to use softlinks to
accomplish it, like this:

JAIL FILESYSTEM:

/   complete copy of /
/usrcomplete copy of /usr
/mntnull mount of the master /
/mnt/usrnull mount of the master /usr

And then use softlinks to enforce binary sharing by default:

/bin/*  instead of the binaries make softlinks to /mnt/bin
/usr/bin/*  ... softlinks to /mnt/usr/bin
/usr/lib/*  ... softlinks to /mnt/usr/lib
/usr/local/lib/*... softlinks to /mnt/usr/local/lib
/usr/local/bin/*... softlinks to /mnt/usr/local/bin

So that way the user can remove the softlink and install his own
copy of the software if he wishes, and mess with anything else as well.

That's just an example.  There are a thousand ways to do it.

-Matt
Matthew Dillon 
<[EMAIL PROTECTED]>


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



Re: GDB & Linux binaries.

2002-11-12 Thread Marcel Moolenaar
On Sun, Nov 10, 2002 at 07:44:21PM -0700, [EMAIL PROTECTED] wrote:
> > > I'm guessing this is because the linux libc library file is in
> > > /usr/compat/linux/lib, how do I get GDB to use it instead? Or is it even
> > > possible.
> 
> That's interesting. I already asked similar question here, on freebsd-hackers@,
> but was immediately sent to freebsd-questions@, where I didn't get any answer. :)

freebsd-emulation@ is the place to go, really.

> > I believe you can install the linux_devtools* port and get gdb for
> > Linux.
> > There is also linux_kdump which groks ktrace output from linux binaries.
> I tried Linux 'gdb' - it doesn't break on breakpoints; is says that ptrace()
> syscall is not implemented. Linux RedHAT 7.2 emulation + 'linux_devtools'.

You're running -stable, right?

See i386/33300. Gordon stacked it on my plate. I'm very much focussed
on getting FreeBSD/ia64 in a releasable state so I might not get to
it soon, but it'll be done... eventually :-)

-- 
 Marcel Moolenaar USPA: A-39004  [EMAIL PROTECTED]

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



Re: Shared files within a jail

2002-11-12 Thread Cameron Grant
> Try using null mounts.  The warning is in there because making the
> null mount code work is a real hack and the authors aren't entirely
> sure that everything's gotten covered.  That said, use of a null mount
> is certainly a lot safer if the stuff behind the mount is mostly
> static.

null mounts, in -stable at least, are broken for this purpose.  on
connection, sshd revoke()s some device- its pty, i assume, and when this
hits the nullfs layer a null pointer is dereferenced.  if i had vfs-clue i'd
have fixed it when i found the panic about two weeks ago.  when i overcame
this by putting the jails /dev on an nfs loopback, i managed to produce two
more different panics.

-cg


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



Re: Shared files within a jail

2002-11-12 Thread Matthew Dillon

:> is certainly a lot safer if the stuff behind the mount is mostly
:> static.
:
:null mounts, in -stable at least, are broken for this purpose.  on
:connection, sshd revoke()s some device- its pty, i assume, and when this
:hits the nullfs layer a null pointer is dereferenced.  if i had vfs-clue i'd
:have fixed it when i found the panic about two weeks ago.  when i overcame
:this by putting the jails /dev on an nfs loopback, i managed to produce two
:more different panics.
:
:-cg

Well, that sounds like an addressable bug.  But I don't see any
paricular reason why it would be a show-stopper.  /dev doesn't
take up any significant amount of space, just copy it for each jail.

-Matt


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



Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Hans Zaunere wrote:
> I want to allow the users the ability to compile and use their own
> instances of Apache and MySQL from within the jail.  But instead of
> duplicating the basic system libs and bins, I'd like to maintain a
> single repository of this, which can then be read-only from within the
> jail.  Options:
> 
> -- Symlinks won't work because of the chroot.
> -- Mounts from within the jail aren't allowed, plus a single partition
> can't be mounted multiple times, AFAIK.
> -- I don't have NFS setup, and I would like to avoid it as much as
> possible.
> -- mount_null seems to be the answer, however the warning at the end of
> the man page is scary.

It's less scary, since you will be mounting read-only.

-- Terry

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



Re: A quick gdb help

2002-11-12 Thread Alexander Pohoyda
Zhihui Zhang <[EMAIL PROTECTED]> writes:

> (gdb) set xyz = 1  <- works
> (gdb) set i = 1<- syntax error near '1'
> 
> I guess i must have special meaning in gdb. But what if I insist setting
> it, is there a way?   Thanks.

Use `set var[iable] i = 1' or `p[rint] i = 1'.

More information in `Assignment to variables' node at `info gdb'.


-- 
Alexander Pohoyda
<[EMAIL PROTECTED]>

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



Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Matthew Dillon wrote:
> Try using null mounts.  The warning is in there because making the
> null mount code work is a real hack and the authors aren't entirely
> sure that everything's gotten covered.  That said, use of a null mount
> is certainly a lot safer if the stuff behind the mount is mostly
> static.

The problem is in the VM object alias code.  Specifically, the
getpages/putpages have to be implemented in terms of read/write,
so that there are not two vm_object_t's that refer to the same
data, since there is no "upcall" to notify of changes in a lower
layer, and therefore guarantee coherency.

This basically means that the "pig tricks" that most people who
don't know any better do, like using both mmap() and file I/O
against the same file, require explicit calls to msync() to
ensure cache coherency.  Most people who write code these days
don't expect to have to call msync, and even if they expect to,
they're not entirely sure of when/why/how to call it.

This is the same reason that dropping the getpages/putpages VOPs
from the SMBFS implementation "fixes" the "cp" problem (by making
"cp" dork like "dd", by converting the getpages() request into a
read() request, instead).  But doing that introduces the same
cache coherency problems, again.

You can basically ignore this problem entirely, since your mounts
are going to be read-only, and you aren't going to have to worry
about someone dirtying pages through a nullfs mount.


> Note that you can also use localhost NFS mounts to replicate pieces of
> filesystems within jails, but you need to remember that the kernel
> will wind up caching multiple copies of the data for these two cases
> and that NFS has file locking issues.

Yes.  This will also work, if the man page for nullfs turns out to
be "too scary".  ;^).  Same coherency issues.

> Finally, keep in mind that disk space these days is quite cheap.
> Duplicating the data is not as bad a way to go as you might think, and
> it allows you to incrementally upgrade each jail.  It may suffice to use
> the null mount trick *only* for the big binaries and libraries that you
> really want to share, and it may be reasonable to use softlinks to
> accomplish it, like this:

And, in fact, this is what I tend to do.  But since the case in point
is for MySQL/Apache/etc., there's probably a lot more jhail instances
than what you are used to seeing.  This is a shared hosting platform,
which is trying to pretend it's not shared, right?

If you go this route, you may want to bump up the number of inodes
by quite a bit above the default...

-- Terry

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



Re: Shared files within a jail

2002-11-12 Thread Terry Lambert
Cameron Grant wrote:
> null mounts, in -stable at least, are broken for this purpose.  on
> connection, sshd revoke()s some device- its pty, i assume, and when this
> hits the nullfs layer a null pointer is dereferenced.  if i had vfs-clue i'd
> have fixed it when i found the panic about two weeks ago.  when i overcame
> this by putting the jails /dev on an nfs loopback, i managed to produce two
> more different panics.

1)  Use devfs instead.

2)  Mount a devfs instance in each jail.  Problem solved.

-- Terry

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



Re: Shrinking /(s)bin: A Proposal

2002-11-12 Thread M. Warner Losh
I just link bin and sbin dynamically when I want to make a small
image.  Works great, no hacks needed so long as / and /usr are the
same partition, which they are on the CF's I make.  A minimally
bootable FreeBSD system is on the order of 6MB uncompressed.

Warner

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



RE: miniBSD buids and runs ok on Advantek WEB 2143 box

2002-11-12 Thread Murray Taylor
Australian $647.00
plus a PSU  

-Original Message-
From: Scott Ullrich [mailto:sullrich@;CRE8.COM] 
Sent: Wednesday, November 13, 2002 12:42 PM
To: 'Murray Taylor'
Subject: RE: miniBSD buids and runs ok on Advantek WEB 2143 box


Do you mind me asking how much those little boogers go for?

Those are nice!

Thanks in advance.

-scott

-Original Message-
From: Murray Taylor [mailto:murraytaylor@;bytecraftsystems.com]
Sent: Tuesday, November 12, 2002 8:16 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: miniBSD buids and runs ok on Advantek WEB 2143 box


Manuel,

As the subject says, we built miniBSD following your scripts etc
to make a ipf firewall box. We will be also using the same platform
as a ipf / ppp dialer for our remote sites. (freeing up some desktops
that are currently being used ;-)  )

http://www.advantech.com.tw/eplatforms/web2143.asp


Thanks for the guiding efforts!

Murray Taylor
Special Projects Engineer

-
Bytecraft Systems & Entertainment
Phone: 61 3 8710 2555
Fax: 61 3 8710 2599
Direct: 61 3 9238 4275
Mobile: 61 0417 319 256
Email: [EMAIL PROTECTED]
or visit us on the web
http://www.bytecraftsystems.com
http://www.bytecraftentertainment.com



This Email has been scanned for Viruses by MailMarshal
an automated gateway email virus scanner.



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


This Email has been scanned for Viruses by MailMarshal
an automated gateway email virus scanner.





This Email has been scanned for Viruses by MailMarshal
an automated gateway email virus scanner.



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