portupgrade O(n^m)?

2007-02-14 Thread David Gilbert
I have 734 ports installed on my laptop right now.  I'm pretty sure,
at times, I've had over 1000 ports on my laptop.

On machine with moderate numbers of ports (most servers seem to have
50 to 200 ports), portupgrade takes a moderate amount of time to start
work.  On machines like my laptop, portupgrade seems to take much more
time to run.  I assume it's solving the dependency graph before it
decides what to upgrade first, but is this truly a O(n^2) problem?  It
seems like the implemented algorithm is O(n^2).

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: portupgrade O(n^m)?

2007-02-14 Thread David Gilbert
 Jeremy == Jeremy Messenger [EMAIL PROTECTED] writes:

Jeremy Give ports-mgmt/portmaster a try.

I just did.  One flaw it has is that I have two no longer supported
ports installed.  I want to run portmaster -a, but when it finds tund
(and I assume it would also stop for xsysinfo), it stops.  I put a
file '+IGNOREME' in the pkg directories for these two ports, but the
process continues to stop.

I'd rather not just delete their package info --- it is still correct.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


4th loading a module.

2007-02-10 Thread David Gilbert
I'm no forth expert --- but I have a basic understanding on how it
goes together.  I can also follow expamples.

What I want to do is load a module (if_iwiNG or snd_ich) based on a
menu choice at the beastie menu.  I have successfully added the manu
item and a variable --- following the example.  I tried adding:

dup bootwifikey @ = if
s YES s if_iwiNG_load setenv
0 boot
then

to the end, but it doesn't work.  load_modules has already been
called.  I tried (out of the blue)

 s if_iwiNG load_module

... but that's not the correct recipe (at least... 4th crashes if I
load that code).

I don't see any other examples of loading a single module by command.

I'd appreciate it if someone could provide the requisite magic
incantation.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


dump reads more than restore writes?

2007-01-07 Thread David Gilbert
I've got a command line like the following:

dump -0af - /dev/ad1s1g | restore -rf -

... and I'm watching gstat.  ad1s1g is not mounted.  The disk on which
the restore is running is also quiet (nobody using the disk).

And gstat says that ad1 is consistently reading 31 to 37 megabytes per
second and ad2 (the restore disk) is consistently writing 10 to 13
megabytes per second.  This is over hours --- the figures never catch
up.

So... is gstat wrong?  Is dump reading substantially more than restore
is writing?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dump reads more than restore writes?

2007-01-07 Thread David Gilbert
 Dan == Dan Nelson [EMAIL PROTECTED] writes:

Dan If you have a lot of small files, dump may be rereading directory
Dan information.  Dump has a cache option that can help, but make
Dan sure you also dump a snapshot (i.e. always use -L when using -C).

Several people have suggested this, but actually it has the same
behaviour when using -C (I often use -C 32).  This filesystem is not
mounted, so -L is not required, but I do use -L when required.

But the filesystem is 95% full (aren't they all) and the vast majority
of the files on it are media files --- ie: movies, mp3's, ISOs,
etc.  Very few files under a meg.  Probably not too many files over
100 meg as most of the files on the disk are in rar format.

... now Azurus (used to obtain most of the files) writes holey files.
One chunk at a time (512k-ish to 4meg-ish).  Those could end up being
not-very-contiguous, but I'd expect them to consist (by majority) of
full filesystem blocks.

The amazing part (to me) is how consistent it is.  If this is not a
reporting error of gstat, it makes dump look _very_ wasteful.  If the
numbers are being reported correctly, it means that dump is reading
600 gig to copy a 200 gig disk.  !?!

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Detecting buffer space with UDP.

2006-12-15 Thread David Gilbert
I'm using kqueue() with a EVFILT_WRITE to send udp packets over a
gigabit interface (the job here is to stress test DNS servers).  I'd
like to send packets at wire rates, but somehow the EVFILT_WRITE is
always triggered and I'm dropping a lot of packets on the floor.

Is there a way (preferably with kqueue()) to wait on the bandwidth
available on the card?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


dhclient-script impotence.

2006-10-23 Thread David Gilbert
According to the documentation, dhclient calls dhclient-script for
every action.  It does not.  It appears that dhclient only calls
dhclient-script (now) to set the media.  At the very least, the
documentation is wrong.  But the functionality that was
dhclient-script was useful in many ways... not the least of which is
situations where adding a default route is not the right activity.

I have also noticed that dhclient (the new one) doesn't appear to
correctly notice atheros wireless state changes.  It doesn't appear to
try to reacquire ip addresses when you roam into a new open access
point network.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


PCI express support?

2006-08-20 Thread David Gilbert
I got a PCI express version of the Intel gigabit adaptor to try.
Heh.  Comes with a big-ass heatsink on the card.  I found that a bit
amusing.

But it doesn't probe up.  Is this because PCI Express is not supported
(1x in this case --- the little slot), or because I need to put in the
constants for this card?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: openospfd

2006-08-16 Thread David Gilbert
 Yann == Yann Berthier [EMAIL PROTECTED] writes:

Yann On Tue, 15 Aug 2006, at 19:59, David Gilbert wrote:

 Is there anyone actively working on openospfd (the port)?

YannI ended up taking a snapshot of openospf at that time and
Yann removing all route labels reference to compile it. It was
Yann running fine, except that we decided to go for static routes due
Yann to routes through an interface deleted as it should upon a link
Yann down event, but not reinstalled upon a following link up, with
Yann the routing table still insisting on using another interface
Yann when the directly connected one was now available. Certainly ?
Yann it was my hack's fault being too intrusive, but we where not
Yann comfortable with this situation ...

YannNot too much of a problem for the number of routes considered
Yann in this part of the infrastructure but still ...

Could I possibly have a copy of what you used?  It may turn out to be
useful to me.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


openospfd

2006-08-15 Thread David Gilbert
Is there anyone actively working on openospfd (the port)?

There are systemic things like the fact they want to ignore lo0
destined routes (although I know how to patch that), but there are
less obvious things that I havn't figured out.

Like the fact that our version ignores if_tun and if_gre.  This might
be fixed in openbsd code, but it seems at least a little non-trivial
to make the newer code work here.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: disklabel differences FreeBSD, DragonFly

2006-07-30 Thread David Gilbert
 Dmitry == Dmitry Marakasov [EMAIL PROTECTED] writes:

Dmitry * Matthew Dillon ([EMAIL PROTECTED]) wrote:
 felt that 8 partitions is restrictive.  My main home server has 10
 and the main DragonFly box has 11.
 
 There is another solution for FreeBSD folks, however.  You *DO*
 have four slices to play with.  You can put a disklabel with 8
 partitions in it on each one (for 32 total).  It isn't as
 convenient, but it does work.

Dmitry About `lack' of partitions - don't forget that labels can be
Dmitry nested.  Just do `bsdlabel -w /dev/ad0s1e` - you'll get
Dmitry /dev/ad0s1ea.

Don't also forget that gpt(8) exists and seems to provide for large
numbers of partitions.  It even seems to be compiled into GENERIC by
default.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kqueue doesn't see if_tun

2006-07-26 Thread David Gilbert
 Alexander == Alexander Leidinger [EMAIL PROTECTED] writes:

Alexander Quoting John-Mark Gurney [EMAIL PROTECTED]
Alexander (from Mon, 24 Jul 2006 14:36:42 -0700):

 No one has written a d_kqfilter entry for tun... so, until someone
 does, kqueue will not work on tun...

Alexander Would you please come up with an entry for our ideas list
Alexander (http://www.freebsd.org/projects/ideas/) for identifying
Alexander pieces where kqueue support is missing and adding
Alexander appropriate support? Something similar to existing entries
Alexander or better (the more is explained, the higher the
Alexander probability that someone tries to do it). A plain text
Alexander version would be enough.

If someone would apply the patch in kern/100796, there's at least one
less place.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


kqueue doesn't see if_tun

2006-07-24 Thread David Gilbert
I have some code that sets up a tunnel device and registers a kqueue
filter for it ... ending roughly in:

EV_SET(kqev, cons-tunSocket, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, 
cons-fsdkq);
kevent(fsd-kq, kqev, 1, NULL, 0, NULL);

This event never fires.  In another part of a the code, I have a timer
--- so I call the tunnel reading function from there and (low and
behold) there is a packet.

Does EVFILT_READ just not work on tunnel devices?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


more if_tun frustration.

2006-07-19 Thread David Gilbert
To recap, I have

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 
inet 192.168.12.2 -- 192.168.22.1 netmask 0x 
Opened by PID 15236

And I see:

[4:18:[EMAIL PROTECTED]:/usr/home/dgilbert netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
defaultxx.yy.zz.33UGS 1  3393155   bge0
xx.yy.zz.32/27 link#1 UC  00   bge0
xx.yy.zz.3300:80:c8:c9:22:31  UHLW2  115   bge0   1178
127.0.0.1  127.0.0.1  UH  0  6251818lo0
192.168.22.1   192.168.12.2   UH  00   tun0

frstratingly, when I ask:

[4:21:[EMAIL PROTECTED]:/usr/home/dgilbert route get 192.168.22.1
   route to: 192.168.22.1
destination: default
   mask: default
gateway: strike1
  interface: bge0
  flags: UP,GATEWAY,DONE,STATIC

And even more frustratingly, when I do:

[4:16:[EMAIL PROTECTED]:/usr/home/dgilbert route add 192.168.24.1 192.168.12.2
add host 192.168.24.1: gateway 192.168.12.2

I then see:

[4:18:[EMAIL PROTECTED]:/usr/home/dgilbert netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default66.96.20.33UGS 1  3393155   bge0
66.96.20.32/27 link#1 UC  00   bge0
66.96.20.3300:80:c8:c9:22:31  UHLW2  115   bge0   1178
127.0.0.1  127.0.0.1  UH  0  6251818lo0
192.168.22.1   192.168.12.2   UH  00   tun0
192.168.24.1   192.168.12.2   UGHS00   bge0

!?!

Clearly, both 24.1 and 22.1 should route via tun0.  Even though 22.1
says tun0 here, it in fact routes via bge0.

Any clues offered as to what I'm doing wrong?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: On the use of Tun interfaces.

2006-07-18 Thread David Gilbert
 matt == matt  [EMAIL PROTECTED] writes:

[ responding to my lack of tun routing ]

matt Have you set net.inet.ip.forwarding=1 via sysctl?

yes.

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


On the use of Tun interfaces.

2006-07-17 Thread David Gilbert
The man pages of if_tun are out-of-date in some respects, but with
comments from the group and reading the sources of ppp, I have worked
around most of the problems I've found.  However, I'm stuck with one
quandry.  My tunnel setup process produces the following:

tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500
inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 
inet 192.168.12.2 -- 192.168.22.1 netmask 0x 
Opened by PID 86506

but then I ask:

[3:14:[EMAIL PROTECTED]:~/devel/failsafe route get 192.168.22.1
   route to: 192.168.22.1
destination: default
   mask: default
gateway: strike1
  interface: bge0

and indeed:

[3:15:[EMAIL PROTECTED]:~/devel/failsafe netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
defaultxx.yy.zz.33UGS 0  1629642   bge0
xx.yy.zz.32/27 link#1 UC  00   bge0
xx.yy.zz.3300:80:c8:c9:22:31  UHLW2   16   bge0   1046
127.0.0.1  127.0.0.1  UH  0  4111852lo0
192.168.22.1   192.168.12.2   UH  00   tun0

shouldn't the last route there be active?  Any clues here?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


curious 6.1 GRE behaviour.

2006-06-20 Thread David Gilbert
I was using some GRE tunnels on 6.1-RELEASE recently.  The odd thing
I'm finding is that the initial creation of the tunnel using
cloned_interfaces and ifconfig_gre0=blah results in the gre0
interface being created without the running bit set.

tcpdump on the interface or even ifconfig gre0 up starts it.

This is also odd because the UP flag is set.  Ie:
[1:2:[EMAIL PROTECTED]:~ ifconfig
[...]
gre0: flags=9011UP,POINTOPOINT,LINK0,MULTICAST mtu 1476
tunnel inet x.x.x.x -- y.y.y.y
inet6 fe80::240:63ff:fee2:eae9%gre0 prefixlen 64 scopeid 0x5 
inet a.a.a.a -- b.b.b.b netmask 0xfffe 
[1:2:[EMAIL PROTECTED]:~ ifconfig gre0 up
[1:3:[EMAIL PROTECTED]:~ ifconfig
[...]
gre0: flags=9051UP,POINTOPOINT,RUNNING,LINK0,MULTICAST mtu 1476
tunnel inet x.x.x.x -- y.y.y.y
inet6 fe80::240:63ff:fee2:eae9%gre0 prefixlen 64 scopeid 0x5 
inet a.a.a.a -- b.b.b.b netmask 0xfffe 

Dave.
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


openospfd doesn't See gre/gif

2006-06-19 Thread David Gilbert
OpenOSPFd doesn't appear to see gre/gif interfaces ... which limits
it's usefulness.  I've hacked on the code a bit --- experiemented with
taking out the restriction that loopback routes aren't advertised
(becuase I often put the aliases for a host on the loopback
interface).

This didn't fix it --- it appears to ignore the loopback interface as
well...  but adding a route pointing to the loopback interface can
work with a small patch.

Has anyone hacked on or thought about this?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


destroying tunN

2006-06-12 Thread David Gilbert
first off, why don't if_tun devices destroy themselves when the owner
closes the device?

But... aslo, why can't I 'unplumb' an unused tunN device with
ifconfig?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


tun and SIOCSIFADDR

2006-06-05 Thread David Gilbert
I read in the if_tun manpage that it supports SIOCSIFADDR (such that
it works with ifconfig).  I like examples, so I search the ifconfig
source code for SIOCSIFADDR.  None.  Then I search the entire source
tree.  ppp uses it to set the IPX address.  Obviously SIOCSIFADDR is
not the preferred way to do this anymore.  Hints?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


gstat going negative?

2006-05-30 Thread David Gilbert
I've large array that winds up providing 1TB of disk (according to df
-h :) to a bunch of nfs users.  On the array machine, I'm using
gmirror and gconcat to build the array and right now I'm running dump
on the array.

I've got a gstat running and one curious thing is that gstat keeps
reporting 2^32-1 as the value for l(Q) (obviously, spelt out in
numbers) ... as if l(Q) is actually coming back as -1.

Odd?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


A2DP (stereo bluetooth)

2006-05-26 Thread David Gilbert
Has anyone considered A2DP support on FreeBSD?  I did a quick search
--- and it would appear that we havn't mastered bluetooth headsets
yet, but I thought I'd ask.

For the uninitated, A2DP is the Advanced Audio Distribution Profile
for bluetooth.  An example device would be the iPhono (420 and 450)
from Bluetake.  They are stereo cordless headphones.  They also suport
the AVRCP (Audio/Video Remote Control Profile) which allows track
up/down and play/pause.  The same unit also supports headset and
handsfree profiles --- and includs a mic --- so they're generally
useful.

Anyways... The audio quality coming from my Treo is excellent, and I'd
like to use them with my laptop, too.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Ricoh PCI to SD device?

2006-01-09 Thread David Gilbert
Has anyone had a look at the following:

[EMAIL PROTECTED]:1:2: class=0x080501 card=0x01aa1028 chip=0x08221180 rev=0x17 
hdr=0x00
vendor   = 'Ricoh Co Ltd'
device   = 'SD Bus Host Adapter'
class= base peripheral

This shows up on my new Dell XPS-170 laptop.  Since there is no USB
attachment for the SD card reader, I can only surmise that this is
it.  Is someone looking at this, or is this completely new?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ricoh PCI to SD device?

2006-01-09 Thread David Gilbert
 Brooks == Brooks Davis [EMAIL PROTECTED] writes:

Brooks On Mon, Jan 09, 2006 at 11:12:30AM -0500, David Gilbert wrote:
 Has anyone had a look at the following:
 
 [EMAIL PROTECTED]:1:2: class=0x080501 card=0x01aa1028 chip=0x08221180
 rev=0x17 hdr=0x00 vendor = 'Ricoh Co Ltd' device = 'SD Bus Host
 Adapter' class = base peripheral
 
 This shows up on my new Dell XPS-170 laptop.  Since there is no USB
 attachment for the SD card reader, I can only surmise that this is
 it.  Is someone looking at this, or is this completely new?

Brooks People are looking at it, but there are no docs available.
Brooks Apparently, there is some work being done to reverse engineer
Brooks it.  Linux doesn't support it either.

Wasn't there a disk extension to project evil?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can be  |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Mutlicast interface limit.

2005-10-18 Thread David Gilbert
My reading of the the code in ip_mroute.h seems to imply that FreeBSD
carries a maximum of 32 multicast interfaces by default.  Is the
correct?  MAXVIFS?

If I'm reading it correctly, it shouldn't be rocket science to extend
this limit to 64 (u_int64_t).  Will making it larger break some large
number of things, or are those macros strictly used?

In my case, with an OSPF router with potentially 100's of interfaces
(tunnels), 32 and 64 are fairly low limits.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Bluetooth GPS for timekeeping?

2005-08-09 Thread David Gilbert
I did a quick search and found some people sporadically talking about
Bluetooth GPS units back in 2003 --- but only for navigation.  While I
intend to use my bluetooth GPS for navigation, I intend to use it
primarily with my Treo 650 in that role.

But ... since there are long patches of time where I'm not mobile, I
was wondering if anyone had looked at using a Bluetooth GPS for
timekeeping.  Has anyone also ever had an ntp server sometimes use a
GPS and othertimes use other servers ... depending on the availability
of the GPS?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bluetooth GPS for timekeeping?

2005-08-09 Thread David Gilbert
 Frank == Frank Mayhar [EMAIL PROTECTED] writes:

Frank On Tue, 2005-08-09 at 14:51 -0400, David Gilbert wrote:
 But ... since there are long patches of time where I'm not mobile,
 I was wondering if anyone had looked at using a Bluetooth GPS for
 timekeeping.  Has anyone also ever had an ntp server sometimes use
 a GPS and othertimes use other servers ... depending on the
 availability of the GPS?

Frank The former would depend strongly on the characteristics of the
Frank Bluetooth protocols, at least when it comes to accuracy.
Frank Keeping time to the half-second or so would be pretty easy, I
Frank would guess.

Frank The latter is the way it already works.  Just configure other
Frank peers in your ntp.conf along with your GPS, viz:

How might you determine the accuracy of the GPS ... or the
characteristics of the Bluetooth protocols ?

The GPS docs say that the GPS chipset keep time to within 100ns.
However (and I assume this is to save power) they also say that the
position indication is only sent once per second.

In my case, the Bluetooth GPS would be talking to a Bluetooth dongle
hanging directly out a port of the server in question.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bluetooth GPS for timekeeping?

2005-08-09 Thread David Gilbert
 Maksim == Maksim Yevmenkin [EMAIL PROTECTED] writes:

 The latter is the way it already works.  Just configure other peers
 in your ntp.conf along with your GPS, viz:

Maksim you can teach ntp to talk to bluetooth gps. all you need to do
Maksim is to write a new clock driver. or you could write a simple
Maksim proxy that would get the data from bluetooth gps and make it
Maksim available at pty(4) or nmdm(4). then you could use standard
Maksim serial nmea gps ntp driver (assuming that bluetooth gps uses
Maksim nmea messages).

Well... I believe the bluetooth stack (or the tools available) already
provide a bluetooth to pty serial emulation.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bluetooth GPS for timekeeping?

2005-08-09 Thread David Gilbert
 Frank == Frank Mayhar [EMAIL PROTECTED] writes:

Frank Well, you wouldn't want to run a stratum 0 NTP server on this,
Frank but it's probably plenty good enough for a human being.  --

Hrm.  So a stratum two ntp server is going to be more or less accurate
than this type of setup?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bluetooth GPS for timekeeping?

2005-08-09 Thread David Gilbert
 Warner == Warner Losh [EMAIL PROTECTED] writes:

Warner You'd likely be money ahead by using a simpler, wired GPS
Warner receiver directly into a legacy serial port.

Heh.  But I don't have one of those.  You see, this was just a hey
... I have this ... and it's not currently in use... so it could have
a cool second life ... type project.

I suppose what you're saying is that to get accurate time ... since
bluetooth has the characteristics of a network that there would have
to be a somewhat sophisticated NTP over bluetooth protocol.  Heh.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: region code in cdrecord

2005-04-25 Thread David Gilbert
 Tim == Tim Kientzle [EMAIL PROTECTED] writes:

Tim I wouldn't rather, but I think it might be simpler.  I also
Tim seem to recall hearing about discs whose region-coding was done
Tim in such a way that they would not play on unlocked players.

Well (to put that to rest), there are two types of region coding in
use on DVDs.  The first is the one we're talking about here ... which
is a code in the files that tells the DVD player which region the disk
is.  Early unlocked players were simply patched to accept any
region.

The second type is code in the menu system that queries the region
code and then acts on it.  Early players returned '0' for this
function ... and the disks were coded to not play.

The fix for this was players that you could change the region on
... and unlocked players of this type allow you to set the region an
unlimited number of times.  locked players usually let you set the
region some small number of times.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-09 Thread David Gilbert
 Bernd == Bernd Walter [EMAIL PROTECTED] writes:

Bernd Yes - you must use 1 - there is only one out-endpoint.  0x81 is
Bernd for receiving data and endpoint 0 is the mandandory control
Bernd endpoint.  Interrupt Endpoints are not variable in size.  Both
Bernd interrupt endpoints are 8 Bytes, so you must read and write
Bernd exact 8 Bytes per transfer - 5 shouldn't work for USB compliant
Bernd devices.

I took your earlier advice and just opened ugen0.1 O_RDWR.  I've tried
sending 5 and 8 byte strings to it without effect.  To make the 8 byte
strings, I added spaces to the end of my 5 byte strings.  I've also
got a proper multitester now to verify operation.

Bernd Depends on the device's firmware.  I wouldn't be surprised if
Bernd the whole device just hangs after receiving bogus data - it
Bernd seems to be broken in many points.  But it may block if the
Bernd device has nothing to send.  An easy way to check out is using
Bernd tools like usbdevs -v and see if it hangs when accessing this
Bernd device.

usbdevs -v and udesc_dump both operate fine after trying this.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-09 Thread David Gilbert
 Bernd == Bernd Walter [EMAIL PROTECTED] writes:

Bernd Then the device is still working and just has nothing to send.
Bernd Would be helpfull to know something about the protocol used on
Bernd the endpoints.

It's pretty simple.  I'm sending (right now) MK255 and MK0 with 1
second sleeps in between.  The device has 8 relays and I should be
triggering them on and off (The MK command doesn't have output --- so
I'm not looking for it).  Here's a snippet from the manual:

The relays may be SET ( ON ) or RESET ( OFF ) individually or as an 8 bit port. 
The relay commands
include;

SKn SETS ( ON ) relay specified by n ( n = 0-7 )
# of Bytes 3
Response NONE
Example; SK2 ;closes contact K2

RKn RESETS ( OFF ) relay specified by n ( n= 0 - 7 )
# of Bytes 3
Response NONE
Example; RK1 ;opens contact K1

MKddd Sets PORTK to decimal value ddd ( ddd= 0 to 255 ) ( K7-MSB, K0 = LSB )
# of Bytes 3 , 4 or 5
Response NONE
Example; MK128 ;SETS K7, RESETS K0 - K6.

RPKn Returns status of relay specified by n ( n= 0 - 7 )
# of Bytes 4
Response 1 byte ( 0 or 1 )
Example; RPK2 ;Relay K2 is closed.
1 ( response)

PK Returns status of PORT K in decimal format.
# of Bytes 2
Response 3 bytes ( 000 to 255 in decimal )
Example; PK ;K0 -K3 are SET ( ON ), K4-K7 are RESET ( OFF ).
015 ( response)

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-09 Thread David Gilbert
 Bernd == Bernd Walter [EMAIL PROTECTED] writes:

Bernd Sounds simple.  Tried with lower case characters?  Otherwise I
Bernd would say sniff a working driver - for windows there is at
Bernd least one good freeware USB sniffer avaiable.

HA!  Found the problem --- thank-you everyone.  Aparently, this little
device expects a 0x01 as the first byte of any command.  Heh.  Works
now.

So if you need dry contact I/O ... this seems to work for FreeBSD...

/* Test the Ontrack ADU208 */
/* www.ontrak.net */

#include unistd.h
#include string.h
#include fcntl.h
#include err.h
#include sys/types.h
#include sys/uio.h

int main(int argc, char *argv[])
{
int bytes, fd;
char *s1 = \001MK255, *s2 = \001MK0, *s = s1, buf[256];

if((fd = open(/dev/ugen0.1, O_RDWR))  0)
err(1, Cannot open device);

while(1)
{
bytes = write(fd, s, strlen(s));

printf(wrote %d bytes %s\n, bytes, s);

sleep(1);

if(s == s1)
s = s2;
else
s = s1;
}

return 0;
}

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Tricky USB device.

2005-04-08 Thread David Gilbert
I've got an OnTrak ADU208.  It's a USB device that has 8 relays and
8 ttl inputs.  The documentation says it uses two interupt endpoints
... one input and one output.  It seems to expect small text commands.

Now... firstly, uhid is probing it as uhid0:

uhid0: www.ontrak.net ADU208 USB Relay I/O Interface, rev 1.10/0.00, addr 4, 
iclass 3/0

... I don't know if this is hindering me.  The usbhid* commands aren't
particularly helpful.  The port udesc_dump seems only to work on ugen
devices ... and ugen doesn't pop up for this device.

I suppose I need to know how to supress uhid ... or to make ugen show
up.  It would also be nice to know how to generically poke the
interupt enpoints...

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-08 Thread David Gilbert
 Maksim == Maksim Yevmenkin [EMAIL PROTECTED] writes:

 ... I don't know if this is hindering me.  The usbhid* commands
 aren't particularly helpful.  The port udesc_dump seems only to
 work on ugen devices ... and ugen doesn't pop up for this device.

Maksim how about getting usb hid descriptor, parsing and dumping it?
Maksim check out libusbhid - man usbhid(3). it might be that all you
Maksim need to do is to create hid report and send it to the
Maksim device. libusbhid(3) will help you with that.

Tried that.  The usb_get_report_desc() returns NULL.  This is not a
complicated device --- it's not even technically a human interface
device.

 I suppose I need to know how to supress uhid ... or to make ugen
 show up.  It would also be nice to know how to generically poke the
 interupt enpoints...

Maksim well comment out 'device uhid' from your kernel config and
Maksim rebuilding the kernel should do the trick.

I wanted to try to avoid that since I use many USB devices, but it's a
last resort kind-of-thing.

The documentation for the device describes the interface as simply
using the two interupt endpoints (read and write).

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-08 Thread David Gilbert
 Maksim == Maksim Yevmenkin [EMAIL PROTECTED] writes:

Maksim David,
 ... I don't know if this is hindering me.  The usbhid* commands
 aren't particularly helpful.  The port udesc_dump seems only to
 work on ugen devices ... and ugen doesn't pop up for this device.

Maksim how about getting usb hid descriptor, parsing and dumping it?
Maksim check out libusbhid - man usbhid(3). it might be that all
 you Maksim need to do is to create hid report and send it to the
Maksim device. libusbhid(3) will help you with that.
  Tried that.  The usb_get_report_desc() returns NULL.  This is not
 a complicated device --- it's not even technically a human
 interface device.

Maksim fine, so i presume usbhidctl(1) does not work on the device
Maksim too. why did they made look like usb hid device then?

Yeah... it appears to fail.  I have no idea, but the guy at the
company seemed to imply that he was just using a standard chip to
drive the USB logic, so it may be a function of that.

Maksim another way is to hack /sys/dev/usd/uhid.c and specifically
Maksim ignore (usb vendor id, usb product id) for the device in the
Maksim MATCH routine.  something like

Maksim if (uaa-vendor ==   uaa-product == ) return
Maksim (UMATCH_NONE);

Hrm.  I thought that there might be some general bogon list, but that
will certainly do.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Tricky USB device.

2005-04-08 Thread David Gilbert
 Bernd == Bernd Walter [EMAIL PROTECTED] writes:

Bernd Then it really shouldn't have claimed to be one in the
Bernd interface descriptor :( But the HID specification is more today
Bernd than just _human_ interface.  e.g. there are extensions for
Bernd USV, ...

[...]

Bernd Has this device multiple interfaces?  e.g. one HID and another
Bernd as described.  I often thought about getting ugen working at
Bernd interface level too.

Here's the output of udesc_dump on it.  Right now, using the current
version of libusb (not the version from ports), I can use
usb_interrupt_write(dev, 1, MK255, 5, 0) to send data to it --- and
the data is sent --- at least lights on the USB hub flash.  If I
replace '1' with anything else, it doesn't accept it.  However, it
doesn't seem to have opened the relays.

I'm also not entirely clear how/when to use usb_interrupt_read()
... as many of the commands listed in the manual return data, but
usb_inerrupt_write() doesn't seem to allow for data to be returned,
but following usb_interrupt_write(), the read will hang.

... so I'm somewhat at a loss, but I also can't find my multitester
... and will be fetching another one tonight.

I'd appreciate any random knowledge anyone can summon on this topic.

Standard Device Descriptor:
  bLength18
  bDescriptorType01
  bcdUSB 0110
  bDeviceClass   00
  bDeviceSubClass00
  bDeviceProtocol00
  bMaxPacketSize 8
  idVendor   0a07
  idProduct  00d0
  bcdDevice  
  iManufacturer  1
  iProduct   2
  iSerialNumber  3
  bNumConfigurations 1

Configuration 0:
Standard Configuration Descriptor:
  bLength 9
  bDescriptorType 02
  wTotalLength41
  bNumInterface   1
  bConfigurationValue 1
  iConfiguration  4
  bmAttributesa0 (remote-wakeup)
  bMaxPower   100 (200 mA)

Standard Interface Descriptor:
  bLength9
  bDescriptorType04
  bInterfaceNumber   0
  bAlternateSetting  0
  bNumEndpoints  2
  bInterfaceClass03
  bInterfaceSubClass 00
  bInterfaceProtocol 00
  iInterface 5

HID Descriptor:
  bLength   9
  bDescriptorType   21
  bcdHID0100
  bCountryCode  00
  bNumDescriptors   1
  bDescriptorType   22
  wDescriptorLength 102


Standard Endpoint Descriptor:
  bLength  7
  bDescriptorType  05
  bEndpointAddress 81 (in)
  bmAttributes 03 (Interrupt)
  wMaxPacketSize   8
  bInterval10

Standard Endpoint Descriptor:
  bLength  7
  bDescriptorType  05
  bEndpointAddress 01 (out)
  bmAttributes 03 (Interrupt)
  wMaxPacketSize   8
  bInterval10

Codes Representing Languages by the Device:
  bLength  4
  bDescriptorType  03
  wLANGID[0]   0409

String (index 1): www.ontrak.net

String (index 2): ADU208 USB Relay I/O Interface

String (index 3): C02053

String (index 4): Cfg1

String (index 5): EP10In

___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


quagga and OSPFD and point-to-point tunnels.

2005-03-04 Thread David Gilbert
Here is an odd situation.

If I start quagga ospfd after creating gre, tun, or gif devices, ospfd
recognises them as point-to-point interfaces and everything works.

However, if I start quagga and then create interfaces afterwards, the
interfaces are not recognised as point-to-point interfaces and OSPF
packets only travel in one direction (into the box).

I'm not sure if the problem lies solely with quagga or FreeBSD or a
little of both.

For one, does the GRE device not have the POINTOPOINT flag set
immediately?  Has someone banged their head against this problem?

It appears to cover all versions of FreeBSD, but I'm using
5.3-RELEASE-p5 to test.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Odd geom behaviour.

2004-12-20 Thread David Gilbert
I have a set of 12 disks.  2x9G and 10x4.5G.  I have a setup whereby I
run a gmirror on each pair of disks and then a gconcat on the
mirrors.  Attached is a copy of the gmirror and gconcat lists.

Now... I shutdown -r this machine (which happens to be an alpha) and
it shuts down happily.  However, _every_ time it reboots, it wishes to
rebuild the mirrors:

GEOM_MIRROR: Device m1 created (id=4055141955).
GEOM_MIRROR: Device m1: provider da1 detected.
GEOM_MIRROR: Device m1: provider da2 detected.
GEOM_MIRROR: Device m1: provider da2 activated.
GEOM_MIRROR: Device m1: provider mirror/m1 launched.
GEOM_MIRROR: Device m1: rebuilding provider da1.

(x5 more for the other mirrors).  Now this isn't particularly bad, I
suppose, except that the machine is occupied for some number of
minutes after boot with this activity.  No fsck ... the filesystem is
happy.

The machine is available for testing should someone want to look at
it.  In fact, the machine is part of my retrocluster of hardware
running FreeBSD and NetBSD (if someone needs hardware with serial
consoles to debug, this is the purpose of the retrocluster).

Anyways... ideas?

(note that in these files, the mirrors are still rebuilding)



gmirror.list
Description: Binary data


gconcat.list
Description: Binary data

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB video?

2004-12-16 Thread David Gilbert
Ok ... this is a wacky product.  Sometimes you end up with a cord that
just looks wrong ... two ends that shouldn't go together (like the X10
computer module I have --- it has a power block that plugs into the
wall and provides a phone jack.  Then there's a cable that goes phone
jack to serial --- that's just wrong.)  similarly, USB2 to VGA is
just wrong: 

http://www.tigerdirect.ca/applications/searchtools/item-Details.asp?EdpNo=1088606sku=T26-1034CMP=EMC-TIGEREMAILSRCCODE=CANEM268

That all said, is there some standard for USB video and do we plan to
support it?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nfs within jail

2004-12-14 Thread David Gilbert
 Matt == Matt  [EMAIL PROTECTED] writes:

Matt Simon 'corecode' Schubert wrote:
 On 14.12.2004, at 13:09, Matt wrote:
 
 Quick question regarding nfs (or other filesystems) inside a jail.
 As far as I can tell, it isn't possible to mount nfs shares while
 inside a jail.  Is this correct?  Is there any way around this
 limitation?  A way to browse network shares without mounting?  Or
 some such trickery?  Thanks.

Matt Thanks for your reply.  The problem is that I only have a jail
Matt account on the machine.  I'd like to access NFS shares on the
Matt LAN from within my jail.  I only need read access to the share.
Matt It has been exported to me, I just don't know how to access it.

Maybe someone (Rick Maclem? heh) could write an ftp-like client for
nfs.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isp driver not 64 bit?

2004-11-30 Thread David Gilbert
 Wilko == Wilko Bulte [EMAIL PROTECTED] writes:

Wilko On Tue, Nov 30, 2004 at 12:22:23PM -0800, Peter Wemm wrote..
 On Tuesday 30 November 2004 11:39 am, Wilko Bulte wrote:  On Mon,
 Nov 29, 2004 at 08:05:39PM -0500, [EMAIL PROTECTED]  wrote..
 
   After a bunch of frustrating debugging, I've tenatively come to
 the   conclusion that the isp(4) driver is not 64 bit safe --- at
 the   very least insofar as the amd64 platform is concerned.
 
  Side note: isp(4) has been in use for years on Alpha, and I do
 not  recall having seen problems like yours on it.  Mind you, not
 much FC  connections I ever used on it.  The only thing critical
 for success  on Alpha is loading ispfw.ko *always*.  Matt (mjacob)
 has noted that  multiple times, and he is absolutely right.
 
  Wilko
 
 I haven't seen an alpha with more than 2G of ram that we booted on.
 Is it possible that isp has never been tested with 4G ram?

Wilko Quite possible as far as Alpha is concerned.  You are correct
Wilko about the 2G, on a lot of Alpha models it is less than that
Wilko (IIRC..)

 Third, is this a machine ram size problem or a disk volume size
 problem?  The original post was about a 131G FC volume and
 calculating the wrong number of sectors and the wrong sector
 size...

Wilko Given time () I could test up to 2TB volumes using FC /
Wilko isp(4) at work.  But not on amd64 as we do not currently have
Wilko such a machine :)

I just heard back from some people still onsite.  The ISP driver
booted with everything the same except hw.physmem=2g works.  It's a
memory issue.

I didn't ever think it was a volume size issue as the volume was 131
gig ... and that's not big these days.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isp driver not 64 bit?

2004-11-30 Thread David Gilbert
 Peter == Peter Wemm [EMAIL PROTECTED] writes:

Peter On Tuesday 30 November 2004 11:39 am, Wilko Bulte wrote:
 On Mon, Nov 29, 2004 at 08:05:39PM -0500, [EMAIL PROTECTED]
 wrote..
 
  After a bunch of frustrating debugging, I've tenatively come to
 the  conclusion that the isp(4) driver is not 64 bit safe --- at
 the  very least insofar as the amd64 platform is concerned.
 
 Side note: isp(4) has been in use for years on Alpha, and I do not
 recall having seen problems like yours on it.  Mind you, not much
 FC connections I ever used on it.  The only thing critical for
 success on Alpha is loading ispfw.ko *always*.  Matt (mjacob) has
 noted that multiple times, and he is absolutely right.
 
 Wilko

Peter I haven't seen an alpha with more than 2G of ram that we booted
Peter on.  Is it possible that isp has never been tested with 4G
Peter ram?

I had the machine tested with hw.physmem=2g and it works.

Peter Secondly..  what release is this on?  I'm wondering if the
Peter horrific busdma bugs in 5.3-RELEASE might be a problem if the
Peter machine does have
 4G ram.

I updated to -STABLE as of yesterday morning and it changed the nature
of the panic somewhat, but did not fix it.

Peter Third, is this a machine ram size problem or a disk volume size
Peter problem?  The original post was about a 131G FC volume and
Peter calculating the wrong number of sectors and the wrong sector
Peter size...

Someone pointed out to me that my integer was 0xDEADBEEF ... which
somewhat squared with my use of 'options INVARIANTS' on the kernel.
Note that the scsi_da.c size printf shows the correct size.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isp driver not 64 bit?

2004-11-30 Thread David Gilbert
 Wilko == Wilko Bulte [EMAIL PROTECTED] writes:

Wilko On Mon, Nov 29, 2004 at 08:05:39PM -0500, [EMAIL PROTECTED]
Wilko wrote..
 After a bunch of frustrating debugging, I've tenatively come to the
 conclusion that the isp(4) driver is not 64 bit safe --- at the
 very least insofar as the amd64 platform is concerned.

Wilko Side note: isp(4) has been in use for years on Alpha, and I do
Wilko not recall having seen problems like yours on it.  Mind you,
Wilko not much FC connections I ever used on it.  The only thing
Wilko critical for success on Alpha is loading ispfw.ko *always*.
Wilko Matt (mjacob) has noted that multiple times, and he is
Wilko absolutely right.

I did have device ispfw in the kernel, but this card may be new enough
not to require it --- ispfw didn't change the behaviour or spit out
any boot messages.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isp driver not 64 bit?

2004-11-30 Thread David Gilbert
 David == David O'Brien [EMAIL PROTECTED] writes:

David On Tue, Nov 30, 2004 at 03:42:55PM -0500, David Gilbert wrote:
 I just heard back from some people still onsite.  The ISP driver
 booted with everything the same except hw.physmem=2g works.  It's a
 memory issue.

David Try hw.physmem=4g.  It should be the 4GB boundary, not 2GB
David boundary that is causing you trouble.

They will likely do that, but that result is slightly less important.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Integer divide panic in cambio

2004-11-29 Thread David Gilbert
Is there a divide by zero possibility in cambio?  Maybe mishandling of
a zero sized disk?  I still havn't gotten a crashdump yet as I have
more than 4 Gig of memory in the machine, but the panic is an integer
divide error with active process cambio.

Background:  I have a quad opteron server with one 2340 FC-AL Qlogic
talking to a large EMC^2 array.  On probe of the array, I get the
above error.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


path to cam_calc_geometry?

2004-11-29 Thread David Gilbert
I have a situation where the drive probe prints out the correct size
information for the drive, but the sectors and blocksize information
passed to cam_calc_geometry is bogus.  This is on an amd64 system with
the isp driver.

What is the path between these?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: isp driver not 64 bit?

2004-11-29 Thread David Gilbert
 Matt == Matt Emmerton [EMAIL PROTECTED] writes:

Matt You indicate that this probe is done properly.

 From what I see, cam_calc_geometry() is called *before* the device
 probe

Matt prints out the device size, so I'm unsure of how what you are
Matt describing can occur.

Well... cam_calc_geometry seems to get called quite a bit.  Almost
everytime you touch the disk, in fact.  fsck'ing a partition calls it,
for instance.

Console access is personally expensive (much driving, for instance),
but from memory the debugging I put in cam_calc_geometry() would print
before the correct output from dadone().  Your description reminds me
of this --- but it's no less vexing that the output from dadone() has
the correct sector and volume size and the ccg in cam_calc_geometry()
has bogus data.

I don't know if it's significant, but the correct numbers were:

279353684 sectors of 512 bytes

The ccg structure comes up with:

3737169375 sectors of 3737169374 bytes

Not entirely sensible.  Interesting that they're close values.
However, with different things on the stack, the values changed.

Matt Have you built  run a kernel compiled with options CAMDEBUG ?
Matt This may provide more insight into where things are going wrong.

I put CAMDEBUG in the kernel, but it didn't seem to change the output
that much.  It seemed to dump the control block showing when geom
tried to access the high block number --- and failed, but nothing else
particularly useful.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Dumps with more than 4gig.

2004-11-26 Thread David Gilbert
Did someone submit a patch that fixes dumps in excess of 4 Gig on
arches like amd64?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


restore hangs system creating directories.

2004-11-24 Thread David Gilbert
Consistently, I can hang my system with restore.  The archive is an
uncompressed 75 gig file.  I run restore -rvf file in a new empty
directory and restore's first chore is to create the directory tree.

restore hangs the machine.  It hangs the machine when there's othere
read/write going on or by itself.  The machine is an athlon-750 with
ata-66 disk interfaces and 384 meg of RAM.  The disk in question is a
250 gig disk formated with -b 65536 and -f 8192

Now... I can get this to work if I run

while true; do sync; sleep 1; done

in another shell.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: List of fake vs. real SATA drives.

2004-11-22 Thread David Gilbert
 João == João Carlos Mendes Luís [EMAIL PROTECTED] writes:

João What is the practical diference?  Performance?  FUJISHIMA

Well... one practical difference is: what are you paying for?  Same
old crap with a new connector?

One really practical difference is that the SiI 3114 and 3112 chipsets
(common on AMD opteron boards, at least) seem to have problems with
bridged SATA devices.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: List of fake vs. real SATA drives.

2004-11-22 Thread David Gilbert
 Charles == Charles Sprickman [EMAIL PROTECTED] writes:

Charles On Mon, 22 Nov 2004, [ISO-8859-1] João Carlos Mendes Luís
Charles wrote:
 What is the practical diference?  Performance?

Charles I don't know how much of it to believe, since it is marketing
Charles material, but the Seagate white paper on their site claims
Charles that all the command-queueing stuff brings the performance
Charles very close to that of scsi.

Charles This last weekend I put together a box with a 3Ware SATA RAID
Charles controller and two of the Seagate drives.  The controller is
Charles probably a bit of a bottleneck, but that sucker was still
Charles incredibly fast for the price (about $300 for the controller,
Charles $100 for for each of the two Seagate 160GB drives).  At $2
Charles per mirrored gigabyte, I'm not complaining.

Does the 3ware support command queueing ... or is it purely a driver
issue?  Does FreeBSD support queueing?  Does FreeBSD support queueing
on all supported SATA controllers ... or just some?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: List of fake vs. real SATA drives.

2004-11-22 Thread David Gilbert
 João == João Carlos Mendes Luís [EMAIL PROTECTED] writes:

João IIF they really have command queueing, I do believe.  So, a
João bridged SATA drive will not have command queuing, right?

Well... from what I've read, the WD bridged drives do have queueing
because they had an ATA-100 implementation of it.

João Does FreeBSD already take advantage of this?  How could I check
João if my SATA drivers have command queueing or not?

I'd like to know as well.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Snapshot corruption.

2004-11-22 Thread David Gilbert
 Brian == Brian Fundakowski Feldman [EMAIL PROTECTED] writes:

Brian Long strings of NUL bytes?  Missing data?  Spam (from the same
Brian file, or from other files)?

Well... I don't really know db file formats.  Most of the corruption I
found in berkley db files.  mailgraph uses rrd.  mailman uses some
form of berkley db, too.  I don't know what the corruption looked
like other than the db library would no longer accept it.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: List of fake vs. real SATA drives.

2004-11-22 Thread David Gilbert
 Søren == Søren Schmidt [EMAIL PROTECTED] writes:

Søren David Gilbert wrote:
 João == João Carlos Mendes Luís [EMAIL PROTECTED] writes:
 
 
 João IIF they really have command queueing, I do believe.  So, a
 João bridged SATA drive will not have command queuing, right?
 
 Well... from what I've read, the WD bridged drives do have queueing
 because they had an ATA-100 implementation of it.
 
 João Does FreeBSD already take advantage of this?  How could I
 check João if my SATA drivers have command queueing or not?
 
 I'd like to know as well.

Søren Currently the ATA driver does not support neither TCQ nor NCQ.

Søren For this to work at all both disk and controller needs to
Søren support the mode in question. I've just gotten my hands on one
Søren of the new Promise controllers that supports NCQ, but I still
Søren need disks to get it going.  I do have a few Raptor's that
Søren support the TCQ mode but initial testing shows little benefit
Søren from it so it moved to the backburner...

Do you need direct access to a drive or is access to a machine with a
drive/controller in it sufficient.  Are promise controllers the only
ones to support NCQ so far?  Promise doesn't always have the best
reputation.  We may be able to provide a test machine with remote
access to a drive/controller combination.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


List of fake vs. real SATA drives.

2004-11-19 Thread David Gilbert
Is there anyone compiling a list of fake vs. real SATA drives?
The difference being fake drives with ATA-100 electronics and an
SATA to ATA conversion chip vs. drives that really support SATA
natively?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Snapshot corruption.

2004-11-17 Thread David Gilbert
I've got a medium busy server (few thousand mail messages a day, web,
webmail, imap, etc) that I can fairly reliably reproduce filesystem
corruption by creating multiple snapshots and deleting them.

I don't think I'm up to debugging this, but I may be able to provide
an exercise platform.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Access time on snapshots.

2004-11-17 Thread David Gilbert
Another odd thing about snapshots is that the time shown by ls -l is
mostly current.  Havn't found a rule for that yet.  ls -lu seems to
show the creation time even tho the man page for ls says that's the
last access time.

Since the snapshot itself shouldn't (logically) change after creation,
it would seem sensible to make the modification time stay constant.

(also: why doesn't ls have a creation time option?)

... this all came up for me because the fileprune utility doesn't seem
to be able to do anything sensible with a pile of snapshots.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Snapshot corruption.

2004-11-17 Thread David Gilbert
 Julian == Julian Elischer [EMAIL PROTECTED] writes:

Julian David Gilbert wrote:

 I've got a medium busy server (few thousand mail messages a day,
 web, webmail, imap, etc) that I can fairly reliably reproduce
 filesystem corruption by creating multiple snapshots and deleting
 them.
 
 I don't think I'm up to debugging this, but I may be able to
 provide an exercise platform.

Julian can you characterise the corruption?

Sure.  Typically the system will crash with an ffs panic of some
random type.  When it comes back, we run non-background fsck's because
manual fsck is sometimes required.

Corruption varies.  Some stuff sometimes pops up in lost+found.  Some
stuff can vanish (not 100% positive on that).  But most worringly, is
that some files come back corrupted (ie berkley db files that db won't
read).

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hardware Serial Numbers under FreeBSD

2004-11-08 Thread David Gilbert
 Dan == Dan Mahoney Dan writes:

Dan Hey all, I'm trying to create an inventory script for systems
Dan that will be loaded via net-boot.  I was wondering if there was
Dan any useful way to obtain the serial number of devices like the
Dan hard drives, processor, and/or motherboard.  (as far as I can
Dan guess, those are the only things likely to store a serial number
Dan in a machine-readable format).

Dan I'm scripting in perl, but of course have nothing against making
Dan system calls to get at the low-level stuff.

Dan Please email me, as I'm not subscribed.

Certainly the canonical way to get a serial number is the ethernet
hardware address.  On some cards, you can change it, but many copy
protection systems work on MAC addresses.

Now, most cards reset to their default MAC address on boot, so if you
run early enough, you should be fairly immune from tomjiggery.
ifconfig prints it out, among other commands.

The reason this is doubly good now is that most motherboards have
ethernet built in... so you could consider it (for the purposes of
inventory) a motherboard serial number.  Now... if there's more than
one interface showing up, I can't tell you an easy way to know which
one is built in.  Heh.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


GCC include files conundrum.

2004-03-14 Thread David Gilbert
I attempted to argue that audio/tclmidi wasn't broken... and the ports
maintainer fired back with

http://bento.freebsd.org/errorlogs/i386-5-latest/tclmidi-3.1.log

Now... I started investigating this and found that this was all due to
some differences in C++ over the years.

The error on bento comes down to bento not having strstream.h.  I have
that file as:

/usr/include/c++/3.3/backward/strstream.h
/usr/include/g++/backward/strstream.h

on my -CURRENT (as of a week or two ago) laptop.

bento does appear to have /usr/include/c++/3.3/backward/iostream.h
... but not strstream.h.  Why?

I realize that my source upgrading may have left around a few old
files, but I don't see a replacement strstream.h.

The C++ FAQ referred to by iostream (not iostream.h) seems to imply
that you should use iostream and sstream (no .h)... but including
those files imposes a very different standard that this port is not
ready to accept.  It appears that (among other things that I havn't
found yet) all 'istream' must be written 'std::istream' ... etc.

So what's the solution?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: GCC include files conundrum.

2004-03-14 Thread David Gilbert
 Craig == Craig Rodrigues [EMAIL PROTECTED] writes:

Craig You have a few options:

Craig (1) Learn enough C++ so that you can apply the necessary
Craig patches to fix audio/tclmidi so that it compiles with Standard
Craig C++ headers (such as sstream).

Craig (2) gcc 3.3 has /usr/include/c++/3.3/backward/strstream, so you
Craig may want to try #include backward/sstream an see if that
Craig works, but chances are if it doesn't work, you will be out of
Craig luck, since it is a deprecated header that the GCC developers
Craig are not too interested in supporting.

I'll ignore the condescending tone for a momment.  It's worth noting
that everything works by simply having a copy of strstream.h in the
backward directory.  Maybe the right path to take here is to include
that file much as we include old versions of shared libraries.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


usermode linux on BSD?

2004-03-10 Thread David Gilbert
Has anyone made an attempt to run usermode linux on FreeBSD?  Is the
issue-list long?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-20 Thread David Gilbert
 Daniel == Daniel O'Connor [EMAIL PROTECTED] writes:

Daniel On Friday 09 January 2004 10:04, Greg Shenaut wrote:
 In nuntio [EMAIL PROTECTED], Michel TALON
 divulgat: By the way, what's the reason that it is impossible to
 have just one floppy which boots FreeBSD kernel, allows to see an
 unbootable cdrom and continue installation from here?
 
 I agree.  The boot floppy tries to do w a y too much.  I think we
 should think of the boot floppy as way to implement an old-style
 console emulator: it boots and you tell it where to read the
 *real* boot image from.  It should support all of the usual
 sources: CDs/DVDs, NFS mounts, FTP, and so on.

Daniel *How* does it support all of those sources?  CD/DVD drives
Daniel need drivers (ATA optimisticly, but quite possibly SCSI),
Daniel FTP/NFS need network card support, NFS needs nfsclient.ko

You're missing the solution.  It's right in front of you.

For network drivers, support PXE, RTL and etherboot.  PXE even
provides the UDP portion of a TCP stack.

For disks, use BIOS.  No seriously.  BIOS support for cdroms and hard
disks is still maintained as it's required to support windoze
installs.  AFAIK, too, one cdrom driver works for all the modern
drives, too.

In fact, FreeDOS might be an excellent bootstrap platform.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Discussion on the future of floppies in 5.x and 6.x

2004-01-20 Thread David Gilbert
 Daniel == Daniel O'Connor [EMAIL PROTECTED] writes:

Daniel True..  Although I believe the loader could do it just as well
Daniel and it's already imported :)

Daniel (It uses the BIOS to read the kernel, and groks PXE, although
Daniel I am hazy on the specifics)

I think the loader understands PXE well and understands certain BIOS
things well.  I mentioned FreeDOS since it would understand some CDROM
nuances well.  AFAIK, the loader understood CDROMs to the extent that
they emulated a floppy of some sort.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Filesystem marker.

2004-01-14 Thread David Gilbert
Is there a set of bytes at some offset in a block that is common to
any instance of a BSD ufs filesystem?  I ask because recently my home
machine erased it's fdisk block _and_ the bsdlabel with it.  It
certainly didn't have time to erase the whole disk, but I'm having
trouble guessing where the partitions are.

/usr/ports/sysutils/gpart will look for partitions on a disk ... but
it only knows to look for bsd disklabels ... not bsd filesystems.
Ideally, I'd like to make a bsd filesystem module for gpart with some
pointers from the group.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Future of RAIDFrame

2004-01-11 Thread David Gilbert
 Scott == Scott Long [EMAIL PROTECTED] writes:

Scott Dag-Erling Smørgrav wrote:
 Scott Long [EMAIL PROTECTED] writes:
 
 I started RAIDframe three years ago with the hope of bringing a
 proven and extensible RAID stack to FreeBSD.
 
 
 I'm having trouble seeing what RF does that Vinum (or at least a
 properly GEOMified Vinum) can't do...
 
 DES

Scott Please read the RAIDframe documents at
Scott http://www.pdl.cmu.edu/RAIDframe before you ask again.

Having used Vinum is production and on home boxes for some time, and
having come in contact with Raidframe on NetBSD several times, I would
distill this to several points.

- Vinum is fairly fragile and a number of operations have vastly
   non-obvious steps.

- Vinum's support for different types of RAID is limited.

- Vinum's abstractions don't work for more complex cases.

That said, we need a strong and robust software raid.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Future of RAIDFrame and Vinum (was: Future of RAIDFrame)

2004-01-11 Thread David Gilbert
 Poul-Henning == Poul-Henning Kamp [EMAIL PROTECTED] writes:

Poul-Henning In message [EMAIL PROTECTED],
Poul-Henning Greg 'groggy' Lehey writes:

Poul-Henning The reason I say this is that neither of you have the
Poul-Henning time needed, and whoever picks up may have ideas, even
Poul-Henning necesarry ideas, which would grind your spine seriously.
Poul-Henning By letting go, I think you would give vinum a better
Poul-Henning chance.

 In the p4 tree, we can easier add new talent to our developer
 force and I am pretty sure that some sort of merry band of
 developers would form around both RF and vinum there.

... now I thought I followed this list relatively well, but can
someone point me at what 'p4' is?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Glide point documentation.

2004-01-05 Thread David Gilbert
Does anyone out there have Glidepoint documentation?  I'd like to hack
on the driver.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Power Patches

2004-01-02 Thread David Gilbert
I installed your power patches dated 20040101 on my Dell D-800.  The
boot fails in a curious way.  It finds the ATA controller, but doesn't
find either the disk or the CDROM in the machine.  I did a -v boot,
but I didn't see anything more significant.

I don't know what you need to proceed on this one.  Maybe setting
everything to D3 is dangerous.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB link cables.

2003-12-22 Thread David Gilbert
Has anyone looked into supporting USB link cables?  I see a number of
these on eBay ... they appear to have two usb host connectors and some
small bit of electronics (by the description).  Are these propriatary
... or is there some sensible way this would work?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB link cables.

2003-12-21 Thread David Gilbert
Has anyone looked into supporting USB link cables?  I see a number of
these on eBay ... they appear to have two usb host connectors and some
small bit of electronics (by the description).  Are these propriatary
... or is there some sensible way this would work?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: usb 2.0 dell inspirion 8500

2003-12-20 Thread David Gilbert
 Bernd == Bernd Walter [EMAIL PROTECTED] writes:

Bernd On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED]
Bernd wrote:
 Should device ehci be a default in GENERIC, then?

Bernd It is intentionally not in GENERIC.

For those of us not in the know on this, where does ehci stand?  Ehci
recognises my controller when I put it in the kernel, but it halts
whenever I connect a USB 2.0 device.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Reward for fixing keyboard support in FreeBSD, apply within

2003-12-07 Thread David Gilbert
 Blaz == Blaz Zupan [EMAIL PROTECTED] writes:

Blaz In the last couple of days I've been fighting with a evaluation
Blaz IBM BladeCenter. For those that don't know, it's a 7U rackmount
Blaz box with 14 slots that can take one PC each.

Blaz http://www.ibm.com/servers/eserver/blades/

While keyboard support on FreeBSD should be fixed, you might want to
take a look at ironsystems (ironsystem.com) offerings.  They have
several different bladeservers from 8 to 16 nodes per chassy.  In
particular, they have a 16-in-2-U (WOW).

The clincher is that they explicity support FreeBSD on their
platforms.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: On-line judgment kernel module

2003-10-17 Thread David Gilbert
 Samy == Samy Al Bahra [EMAIL PROTECTED] writes:

Samy On Thu, 16 Oct 2003 18:28:15 -0400 David Gilbert
Samy [EMAIL PROTECTED] wrote:

 As you conjecture, a syscall-less or syscall-restricted environment
 *should* be safe ... if your syscall changes are bulletproof
 *_and_* the rest of the runtime environment is bulletproof.
Samy Good system call policies are a WONDERFUL feature at a system
Samy administrator's hands. There is no such thing as a syscall-less
Samy environment but only a restricted (either at the same layer as
Samy the system calls or above in terms of code path).

Still... it would seem to me to be safer to use a complete emulation
environment than risk getting everything else right.

 Isn't a syscall required to finish off exit()?
Samy Yes, consult kern_exit.c How is this related to the discussion
Samy though? The fact is, most people would not even want to TOUCH
Samy sys_exit and friends since there are no real security advantages
Samy there. In otherwords, an exit system call remains completely the
Samy same.

Ah, well ... I was understanding that origional email wanted a
syscall-less environment and was just further arguing the point.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


On-line judgment kernel module

2003-10-16 Thread David Gilbert
 earthman == earthman  [EMAIL PROTECTED] writes:

earthman I want to create on-line judge for acm like olympiads. So I
earthman have to execute some code that came in source from
earthman outside(www).  Thus security problem is my main problem.

earthman The idea is to deny all syscalls for specific process
earthman p. This is possible even without rewriting kernel by kernel
earthman module.

earthman Now I'm thinking how to do this.  Possibly it would be easy
earthman to point p-sv_sysent to the structure that points
earthman sv_prepsyscall to some function that denies some system
earthman calls.  (kill process, make some record in module about
earthman restricted call) But I don't understand how to cancel
earthman syscall out of those function. Maybe it's possible to change
earthman code parameter to something else.

I don't know how secure this would be from random binary attacks, but
I'd be very tempted to run the tests inside a vmware or bochs instance
launched by a script.  If I was making the decisions, I'd lean towards
the bochs emulator ... as it's a complete virtual environment rather
than vmware's magic mojo.

As you conjecture, a syscall-less or syscall-restricted environment
*should* be safe ... if your syscall changes are bulletproof *_and_*
the rest of the runtime environment is bulletproof.

Isn't a syscall required to finish off exit()?

I would expect that bochs is scriptable.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: USB keyboard thoughts.

2003-09-27 Thread David Gilbert
 Dmitry == Dmitry Morozovsky [EMAIL PROTECTED] writes:

Dmitry On Fri, 26 Sep 2003, David Gilbert wrote:
DG I acquired my first motherboard that does not have ps/2 keyboard
DG and mouse connectors on it this week.  It's a funny thing
DG ... because a keyboard connector seems to be all it doesn't have.
DG It has 6 ide channels, digital audio, firewire and 6 USB ports.

Dmitry Out of curiosity, who is the vendor and what is model no?

I was going for cheap.  I found a Belkin keyboard at the local shop
for $28 Cdn.  I don't remember a model number on it, but other than
having both USB and ps/2 connectors, it was a fairly normal keyboard.

Actually... it sucks in one way.  I'm a fairly quick touch typist, but
I've never trained on an underwood.  This belkin seems to simulate the
underwood in that if you arn't careful enough to raise your fingers
off a key before pressing the next, you get extra characters on the
screen.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


USB keyboard thoughts.

2003-09-26 Thread David Gilbert
I acquired my first motherboard that does not have ps/2 keyboard and
mouse connectors on it this week.  It's a funny thing ... because a
keyboard connector seems to be all it doesn't have.  It has 6 ide
channels, digital audio, firewire and 6 USB ports.

Anyways, usb keyboards don't work that smoothly.  If the keyboard
emulation is set to 'BIOS' ... you can do things like edit the RAID
config (onboard) or a PCI card BIOS config... but the keyboard won't
show up at all to FreeBSD.

With the keyboard compatibility set to 'OS' ... FreeBSD sees and uses
the keyboard.  Two caveat's, however.  The boot loader is inaccessible
in this mode and if the keyboard is not plugged in on boot, it cannot
be plugged in later.  The system recognises ukbd0 when it's plugged
in, but it doesn't attach to the console.

I fear that we'll see more motherboards like this.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Technical Snapshot questions

2003-09-08 Thread David Gilbert
I've been using snapshots as the lowest level of my backup system on
my laptop for awhile.  I'm pretty sure that it's caused a little extra
instability ... but I don't have hard evidence yet... it could just be
normal -CURRENT churn... but that's not my question.

If I have a large number of sparse files ... and I take a snapshot
... and then I fill in a previously unfilled block in the sparse file,
do I have now two completely separate sparse files ... one in the
snapshot and one in the filesystem proper ... or does the added block
just merge itself in.  If it's the latter, how much overhead would
this cause?  The sparse files are about 1G in size with most degrees
of fullness being represented.

That question brought to mind another: Does the inode of either the
real file or the snapshot version of the file change?  Or is the
inode space of the snapshot separate from the filesystem proper?

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 20TB Storage System

2003-09-05 Thread David Gilbert
 Poul-Henning == Poul-Henning Kamp [EMAIL PROTECTED] writes:

Poul-Henning In message [EMAIL PROTECTED], Petri Helenius
Poul-Henning writes:
 fsck problem should be gone with less inodes and less blocks since
 if I read the code correctly, memory is consumed according to used
 inodes and blocks so having like 2 inodes and 64k blocks should
 allow you to build 5-20T filesystem and actually fsck them.

Poul-Henning I am not sure I would advocate 64k blocks yet.

Poul-Henning I tend to stick with 32k block, 4k fragment myself.

Poul-Henning This is a problem which is in the cross-hairs for 6.x

That reminds me... has anyone thought of designing the system to have
more than 8 frags per block?  Increasingly, for large file
performance, we're pushing up the block size dramatically.  This is
with the assumption that large disks will contain large files.

... but I havn't seem that, myself.  Large arrays that we run tend to
have multiple system images (for diskless or semi-diskless operation)
and many more thousands of users ... all with their usual complement
of small files.

It strikes me that driving the block size up (as far as 1M) and having
a 256 (or so) fragments might become appropriate.

We probably also need to address disks with larger block sizes soon,
but that's another issue alltogether.

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


wi0 still not being a good hostap.

2003-07-31 Thread David Gilbert
Well... I was wrong.  Interrups under 5.1-CURRENT still cause the wi0
running in hostap mode to shed it's clients.  I'm not familiar with
what 802.11b does to authenticate et. al., so I'm posting this
ifconfig debug output from both the server and the client in hopes
someone else knows what's happening.  This particular system has two
clients.  It's worth noting that when I had a normal access point, I
had no problems.  This appears to be a problem with the wi0 in hostap
mode.

The server says:

wi0: sending assoc_resp to 00:40:05:ae:b1:bf on channel 11
wi0: station newly 00:40:05:ae:b1:bf associated
wi0: received disassoc from 00:40:05:ae:b1:bf rssi 42
wi0: station 00:40:05:ae:b1:bf disassociated by peer (reason 8)
wi0: received auth from 00:40:05:ae:b1:bf rssi 41
wi0: sending auth to 00:40:05:ae:b1:bf on channel 11
wi0: station already 00:40:05:ae:b1:bf authenticated
wi0: received assoc_req from 00:40:05:ae:b1:bf rssi 39
wi0: received auth from 00:40:05:ae:b1:bf rssi 42
wi0: sending auth to 00:40:05:ae:b1:bf on channel 11
wi0: station already 00:40:05:ae:b1:bf authenticated
wi0: received assoc_req from 00:40:05:ae:b1:bf rssi 42
wi0: sending assoc_resp to 00:40:05:ae:b1:bf on channel 11
wi0: station newly 00:40:05:ae:b1:bf associated
wi0: station 05:ae:05:ae:b1:bf deauthenticate (reason 6)
wi0: sending deauth to 05:ae:05:ae:b1:bf on channel 11
wi0: received auth from 00:04:e2:1e:11:d7 rssi 35
wi0: sending auth to 00:04:e2:1e:11:d7 on channel 11
wi0: station already 00:04:e2:1e:11:d7 authenticated
wi0: received assoc_req from 00:04:e2:1e:11:d7 rssi 33
wi0: sending assoc_resp to 00:04:e2:1e:11:d7 on channel 11
wi0: station already 00:04:e2:1e:11:d7 associated
wi0: received auth from 00:40:05:ae:b1:bf rssi 40
wi0: sending auth to 00:40:05:ae:b1:bf on channel 11
wi0: station already 00:40:05:ae:b1:bf authenticated
wi0: received deauth from 00:40:05:ae:b1:bf rssi 40
wi0: station 00:40:05:ae:b1:bf deauthenticated by peer (reason 3)
wi0: received assoc_req from 00:40:05:ae:b1:bf rssi 38
wi0: station 00:40:05:ae:b1:bf deauthenticate (reason 9)
wi0: sending deauth to 00:40:05:ae:b1:bf on channel 11
wi0: received auth from 00:40:05:ae:b1:bf rssi 37
wi0: sending auth to 00:40:05:ae:b1:bf on channel 11
wi0: station newly 00:40:05:ae:b1:bf authenticated
wi0: received assoc_req from 00:40:05:ae:b1:bf rssi 40
wi0: sending assoc_resp to 00:40:05:ae:b1:bf on channel 11
wi0: station newly 00:40:05:ae:b1:bf associated
wi0: station 00:40:05:ae:00:05 deauthenticate (reason 6)
wi0: sending deauth to 00:40:05:ae:00:05 on channel 11
wi0: receive packet with wrong version: d5
wi0: receive packet with wrong version: d5

The client says (not nearly so long a sample):

wi0: D Link DWL-650 11Mbps WLAN Card at port 0x100-0x13f irq 11 function 0 config 1 
on pccard0
wi0: 802.11 address: 00:40:05:ae:b1:bf
wi0: using RF:PRISM2.5 MAC:ISL3873
wi0: Intersil Firmware: Primary (1.0.7), Station (1.3.5)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 disassociate (reason 8)
wi0: sending disassoc to 00:05:5d:ee:e6:e7 on channel 11
wi0: station 00:05:5d:ee:e6:e7 deauthenticate (reason 3)
wi0: sending deauth to 00:05:5d:ee:e6:e7 on channel 11

Dave.

-- 

|David Gilbert, Independent Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Upgrade to 5.1 fixes wi0 accesspoint mode fubar.

2003-07-30 Thread David Gilbert
For various reasons, I upgraded my firewall from 4.8-STABLE to
5.1-CURRENT.

Recently, I complained that the wireless clients of the wi0 PCI card
running in hostap mode would loose sync.  It was repeatable that they
clients would loose sync when the server was serving more interrupts.
One of the most obvious expamples was playing xmms on the server would
cause disassociations of the clients.

Upgrading the server to 5.1-CURRENT seems to have fixed the problem.

Just a report.  4.8-STABLE is still broken... but it's less convenient
for me to attempt any tests now.

Dave.

-- 

|David Gilbert, Independant Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


wi in access point mode.

2003-07-26 Thread David Gilbert
I complained some time ago that my wi0 in my laptop would commonly
loose sync.  It appears to be the other way around.  With other access
points, it works flawlessly.  With my home accesspoint ... provided by
a FreeBSD-4.8-STABLE machine, the loss of sync is as follows:

transferring from the ap to the laptop: loss of sync occaisionally
... seems exascerbated by traffic.

transferring from the laptop to the ap: fairly stable.

here's the interesting datapoint:

When the ap is busy compiling and or ripping cds, the problem 10x
worse than at any other time.  The laptop card sees loss of
association as often as every few seconds.

now: I'm getting a small number of these:

wi0: oversized mgmt packet received in hostap mode (wi_dat_len=58544, wi_status=0x8000)

the AP probes as:

wi0: Intersil Prism2.5 mem 0xcecff000-0xcecf irq 11 at device 17.0 on pci0
wi0: 802.11 address: 00:05:5d:ee:e6:e7
wi0: using RF:PRISM2.5 MAC:ISL3874A(Mini-PCI)
wi0: Intersil Firmware: Primary 1.00.05, Station 1.03.04

and is configured as:

ifconfig_wi0=inet 216.138.225.97 netmask 255.255.255.248 ssid GILBERT mediaopt hostap 
channel 11

wi0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
inet 216.138.225.97 netmask 0xfff8 broadcast 216.138.225.103
inet6 fe80::205:5dff:feee:e6e7%wi0 prefixlen 64 scopeid 0x3 
ether 00:05:5d:ee:e6:e7
media: IEEE 802.11 Wireless Ethernet autoselect hostap (DS/2Mbps hostap)
status: associated
ssid GILBERT 1:GILBERT
stationname FreeBSD WaveLAN/IEEE node
channel 11 authmode OPEN powersavemode OFF powersavesleep 100
wepmode OFF weptxkey 1

NIC serial number:  [ 99SA0100 ]
Station name:   [ FreeBSD WaveLAN/IEEE node ]
SSID for IBSS creation: [ GILBERT ]
Current netname (SSID): [ GILBERT ]
Desired netname (SSID): [ GILBERT ]
Current BSSID:  [ 00:05:5d:ee:e6:e7 ]
Channel list:   [ 2047 ]
IBSS channel:   [ 11 ]
Current channel:[ 11 ]
Comms quality/signal/noise: [ 0 81 27 ]
Promiscuous mode:   [ Off ]
Process 802.11b Frame:  [ Off ]
Intersil-Prism2 based card: [ 1 ]
Port type (1=BSS, 3=ad-hoc):[ 6 ]
MAC address:[ 00:05:5d:ee:e6:e7 ]
TX rate (selection):[ 3 ]
TX rate (actual speed): [ 2 ]
RTS/CTS handshake threshold:[ 2347 ]
Create IBSS:[ Off ]
Access point density:   [ 1 ]
Power Mgmt (1=on, 0=off):   [ 0 ]
Max sleep time: [ 100 ]
WEP encryption: [ Off ]
TX encryption key:  [ 1 ]
Encryption keys:[  ][  ][  ][  ]

Dave.

-- 

|David Gilbert, Independant Contractor.   | Two things can only be |
|Mail:   [EMAIL PROTECTED]|  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


[hackers] Re: Page Coloring Defines in vm_page.h

2003-06-25 Thread David Gilbert
 Matthew == Matthew Dillon [EMAIL PROTECTED] writes:

Matthew The primes are designed such that the page allocation
Matthew code covers *ALL* the free lists in the array, so it will
Matthew still be able to find any available free pages if its first
Matthew choice(s) are empty.

Matthew For example, prime number 3 an array size 8 will scan the
Matthew array in the following order N = (N + PRIME) 
Matthew (ARRAY_SIZE_MASK).  N = (N + 3)  7:

Matthew 0 3 6 1 4 7 2 5 ... 0

Matthew As you can see, all the array entries are covered before
Matthew the sequence repeats.  So if we want a free page in array
Matthew slot 0 but the only free pages available happen to be in
Matthew array slot 5, the above algorithm is guarenteed to find it.

Matthew Only certain prime number / power-of-2-array size
Matthew combinations have this effect, but it is very easy to write a
Matthew little program to test combinations and find the numbers best
Matthew suited to your goals.

For the mathematically inclined, 3 would be a 'generator' of the
group.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


[hackers] Re: BCM4401 ethernet driver

2003-06-17 Thread David Gilbert
 Duncan == Duncan Barclay [EMAIL PROTECTED] writes:

Duncan I am in the process of rewriting this driver for FreeBSD. It
Duncan can transmit, but RX is not yet going properly. As this is
Duncan evening work, it's likely to take at elast another week.

 This is the onboard ethernet on my dell inspiron 8500 laptop and I

I'm pretty sure this is the chipset on my Dell D800 laptop.  I would
be interested in testing the drivers, too.  I'm running 5.1-RELEASE.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to [EMAIL PROTECTED]


Simply impossible to format disk under current.

2003-02-19 Thread David Gilbert
I ran into an interesting problem last night ... that was very
frustrating.  I was recycling SCSI drives from some NetBSD machines
(that were client boxes) to add to a RAID server running
FreeBSD-5.0-RELEASE.

It's simply impossible to format NetBSD drives under current.

Let me expand on that.  /dev/da2 exists, but you can't say 'fdisk -I
da2' ... fdisk says that /dev/da2 doesn't exist.  /dev/da2 (and
/dev/da2c) isn't writable, so I can't blank the first few sectors.  I
even tried this in single user mode.

The problem appears to be that the FreeBSD-5.0 system sees the NetBSD
label ... so things like da2s1 don't exist.  da2a, da2b, da2c and da2g
do.  These are the NetBSD partitions.  Writing to them is verboten.  I
was hoping that da2c would allow me to blank the boot sector, but it
doesn't allow me to write.

... under FreeBSD-5.0, fdisk won't write to the disk and disklabel
won't change the NetBSD label, either.

I had to boot with my FreeBSD-4.7 recovery CD ... which would fdisk
and disklabel the disk (note that fdisking wasn't enough ... FreeBSD
still accepted the NetBSD label over the fdisk data) just fine.

... although I then ran into the issue that disklabel -e had
/mnt2/stand/vi hardcoded into it ... which is wrong.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Re: Simply impossible to format disk under current.

2003-02-19 Thread David Gilbert
 phk == phk  [EMAIL PROTECTED] writes:

phk /dev/da2 is always writable unless you have any of the partitions
phk open.

The error was that /dev/da2 didn't exist.  I was confused too.  

fdisk da2  # worked, displyed one slice (3) that was NetBSD
fdisk -I da2   # error, /dev/da2 doesn't exist

... it seemed like anything that wrote to da2 would fail, but read
worked.

phk I guess you have whacked the disk now, so I won't be able to get
phk any debugging information.

In the process of determining that it worked with 4.7-RELEASE I did
format the disk, so I'm not sure that the disk itself is useful.

phk In case of disk/GEOM related problems, I need the output from
phk dmesg sysctl -b kern.geom.confxml or I won't really be able to do
phk debugging...

I would bet that any NetBSD root disk installed by the NetBSD
installer would exhibit the same problems.  It should be easy to
duplicate.  I don't have a spare disk handy right now... but I might
be able to do this in a week or two.  I would expect that you can do
this on your bench, tho.

There wasn't anything special about the NetBSD disks ... they had just
been formatted through the install process that NetBSD does.  1.5.2, I
think.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Re: Network block device.

2003-01-30 Thread David Gilbert
 phk == phk  [EMAIL PROTECTED] writes:

phk NBD wouldn't be hard to implement on FreeBSD, the easiest way
phk would be to write two GEOM modules to do it: a client and a
phk server.

phk No, I don't have time to do that right now, but I will happily
phk guide anybody who wants to try.

I would be interested in knowing what you think would be required
... and some pointers.  This sounds like a task I could bite off.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Network block device.

2003-01-29 Thread David Gilbert
While I'm 100% aware of the pitfalls of such a setup, I find myself
implementing linux in a cluster because it can export 5G-ish of a disk
on each node to one machine that generates a gigantic filesystem.
This is done with linux's network-block-device (NBD).  I'd like to
know if someone has generated a similar FreeBSD facility.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Re: Network block device.

2003-01-29 Thread David Gilbert
 Matthew == Matthew N Dodd [EMAIL PROTECTED] writes:

Matthew On Wed, 29 Jan 2003, David Gilbert wrote:
 While I'm 100% aware of the pitfalls of such a setup, I find myself
 implementing linux in a cluster because it can export 5G-ish of a
 disk on each node to one machine that generates a gigantic
 filesystem. This is done with linux's network-block-device (NBD).
 I'd like to know if someone has generated a similar FreeBSD
 facility.

Matthew You could use NFS and 'mdconfig/vnconfig'.

but that would be no different than using the nfs directly.  mdconfig
won't aggregate several chunks of files ... and last I checked md
wasn't entirely happy with nfs (some form of chicken-and-egg problem)

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Re: Network block device.

2003-01-29 Thread David Gilbert
 Matthew == Matthew N Dodd [EMAIL PROTECTED] writes:

Matthew So use vinum, CCD or add the files as swap and make a
Matthew swap-backed filesystem.

Matthew No reason to invent a totally new low level filesystem here.

Actually, I can see that working ... but it's going to be a whole lot
less efficient than NBD.  You're doing block io that gets replicated
(say ... raid 1) by vinum and then then turned back into a block
transaction by md and then into a network transaction through nfs back
to a filesystem transaction on the remote machine (remember md is
working on the file) which is then blocked by the remote filesystem.
Did I miss anything?

As I understand, NBD is just a little driver that lets you mount
foo:/dev/ad0s1g over the network and proxies the block transactions
across.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



Re: Network block device.

2003-01-29 Thread David Gilbert
 Matthew == Matthew N Dodd [EMAIL PROTECTED] writes:

Matthew On Wed, 29 Jan 2003, David Gilbert wrote:
 As I understand, NBD is just a little driver that lets you mount
 foo:/dev/ad0s1g over the network and proxies the block transactions
 across.

Matthew Right, you still have to stripe/mirror on the client side
Matthew though.  I don't think it will be all that bad.

Matthew Any chance of you testing Linux NBD and FreeBSD
Matthew NFS/vnconfig/CCD?

it doesn't work that way.  the result of NBD is a /dev/nbd0 not a
filesystem.  Block 0 of /dev/nbd0 is block 0 of /dev/hda1 (say).  nbd
runs as a server on the node with the disk and as a client on the node
using the disk.  Yes, you still stripe on the client side... but you
stripe across directly mapped block devices (no NFS involved).

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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-14 Thread David Gilbert
 Terry == Terry Lambert [EMAIL PROTECTED] writes:

Terry The patches I'm interested in you seeing, though, are patches
Terry for support of LRP in FreeBSD-current.  If you have a testing
Terry setup that can benchmark them, then you can prove them out
Terry relative to the current code.  If you can't measure a
Terry difference, though, then there's really no need to pursue them.

Our current test platform is a Dual Athlon 2000+ MP machine.  I've
asked our vendor for Tigon III cards... any brand recomendations?

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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-13 Thread David Gilbert
 Terry == Terry Lambert [EMAIL PROTECTED] writes:

Terry These stats are moderately meaningless.

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

Terry I guess I could guess with 200kpps:

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

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

Well... I have all those stats, but I wasn't wanting to type that
much.  IIRC, we normally test with 80 byte packets ... they can be UDP
or TCP ... we're testing the routing.  The box has two interfaces and
we measure the number of PPS that get to the box on the other side.

Without polling patches, the single processor box definately
experiences live lock.  Interestingly, the degree of livelock is
fairly motherboard dependant.  We have tested many cards and so far
fxp's are our best performers.

 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.

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

we were using the intel, which aparently was a mistake.  We had a
couple of others, too, but they were dissapointing.  I can get their
driver name later.

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

The polling patches made zebra happy, actually.  Under livelock, zebra
would stop sending bgp hello packets.  Under polling, we could pass
the 150k+ packets and still have user time to run bgp.

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

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

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

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

We need new switches, actually, but we'll be testing this soon.

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.

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

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

I've had that feeling.  A lot of people seem to be working on click,
but it seems to abstract things that I don't see as needing
abstracting.

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

We're definately livelocking with the fxps.  I'd be interested in your
patches for the GigE drivers.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely

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

2002-11-11 Thread David Gilbert
 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.

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.

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

Terry What data rate do you need to support?  How much are you
Terry willing to modify FreeBSD?  How much are you willing to modify
Terry your hardware design?  64 Bit PCI-X has a burst rate of about
Terry 8Gbit, which means that it's average operation is going to be
Terry about 1/3 that, and then you have to add memory latency on top
Terry of that, if you DMA data from the network card into main
Terry memory, instead of just between network cards.

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.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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-11 Thread David Gilbert
 Richard == Richard Sharpe [EMAIL PROTECTED] writes:

Richard However, given that they were full 1500B frames (99%), at
Richard least in one direction, perhaps that does not count.

That's exactly the point.  With large frames, you can get high rates
of traffic.  With smaller frames, rates drop quickly.

We're using FreeBSD (with Zebra) as core routers for about 80Mbit of
traffic to 3 main providers and about 25 local peers.  We're facing
the point where we have to decide to invest a little in the platform
or ditch it for some name-brand gear.

Much of the recent hacking on FreeBSD has been done in house and we
recently hired another coder with kernel expertise to hack on the
code.

Of particular embarrasment is that FreeBSD produces source quench
packets when acting as a router.  Aparently an RFC made this a bad
thing(tm) some time ago.

Anyways... the average packet size at the core router is much smaller
than 1500 with much of the traffic being in the tiny 100 byte
category.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



forwarded message on Source Quench Packets.

2002-11-11 Thread David Gilbert
I normally wouldn't forward something to such a big list, but this has
real implications (and was part of a nast DOS against dsl.ca last
week).  The patch for FreeBSD (netbsd code is quoted) is trivial:

--- /sys/netinet/ip_input.c Thu Oct 17 08:29:53 2002
+++ ip_input.c  Mon Nov 11 15:15:31 2002
@@ -1822,9 +1822,7 @@
break;
 
case ENOBUFS:
-   type = ICMP_SOURCEQUENCH;
-   code = 0;
-   break;
+   return;
 
case EACCES:/* ipfw denied packet */
m_freem(mcopy);

I'm submitting a PR now.

For discussion: source quenches probably shouldn't be generated
anyways, but this patch also doesn't generate the source quench if
we're the target machine.  It's probably good to go straight ahead
with this.  IIRC, tcp_input.c also can generate a source quench
...


---BeginMessage---
On Mon, Nov 11, 2002 at 02:11:42PM -0400, richard's all...
 Maybe a bit late...
 But.
 --snip-
 #if 1
   /*
* a router should not generate ICMP_SOURCEQUENCH as
* required in RFC1812 Requirements for IP Version 4 Routers.
* source quench could be a big problem under DoS attacks,
* or if the underlying interface is rate-limited.
*/

4.3.3.3 Source Quench

   A router SHOULD NOT originate ICMP Source Quench messages.  As
   specified in Section [4.3.2], a router that does originate Source
   Quench messages MUST be able to limit the rate at which they are
   generated.

  DISCUSSION
  Research seems to suggest that Source Quench consumes network
  bandwidth but is an ineffective (and unfair) antidote to
  congestion.  See, for example, [INTERNET:9] and [INTERNET:10].
  Section [5.3.6] discusses the current thinking on how routers
  ought to deal with overload and network congestion.

   A router MAY ignore any ICMP Source Quench messages it receives.

   DISCUSSION
  A router itself may receive a Source Quench as the result of
  originating a packet sent to another router or host.  Such
  datagrams might be, e.g., an EGP update sent to another router, or
  a telnet stream sent to a host.  A mechanism has been proposed
  ([INTERNET:11], [INTERNET:12]) to make the IP layer respond
  directly to Source Quench by controlling the rate at which packets
  are sent, however, this proposal is currently experimental and not
  currently recommended.

INTERNET:9.
A.  Mankin, G.  Hollingsworth, G.  Reichlen, K.  Thompson, R.
Wilder, and R.  Zahavi, Evaluation of Internet Performance -
FY89, Technical Report MTR-89W00216, MITRE Corporation,
February, 1990.

   INTERNET:10.
G.  Finn, A Connectionless Congestion Control Algorithm,
Computer Communications Review, volume 19, number 5, Association
for Computing Machinery, October 1989.

/kc


   if (mcopy)
   m_freem(mcopy);
   return;
 #else
   type = ICMP_SOURCEQUENCH;
   code = 0;
   break;
 #endif
 
 
 - - - - - - - - - - - - - 
 Jonathan Richards 
 Tel:+1-416-876-5219
 Fax:+1-708-575-1680
 Email:[EMAIL PROTECTED]

-- 
Ken Chase, [EMAIL PROTECTED]  *  Velocet Communications Inc.  *  Toronto, CANADA 


---End Message---

Dave.


[hackers] Re: swap huge mem systems

2002-07-10 Thread David Gilbert

 Brandon == Brandon D Valentine [EMAIL PROTECTED] writes:

Brandon Allocating swap = physical RAM doesn't buy you any expansion
Brandon though.  I always try to do at least twice physical RAM so
Brandon that if I ever double the RAM in my machine I'm still able to
Brandon catch crash dumps.  It's not worth having to repartition the
Brandon drive to add more swap every time I add more RAM when a 120GB
Brandon 7.2k drive is ~$170.  What's 2GB of swap on a 120GB disk or
Brandon even a 40GB disk for that matter?

That's what old 6G disks are for.  My current workstation (still on
it's origional root disk) has way more then doubled it's RAM without a
root transplant.  At some point, when I was having problems, I
realized I needed crash dumps... so I stuck in a 6G disk that is too
slow for any other use.

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



[hackers] Re: swap huge mem systems

2002-07-10 Thread David Gilbert

 Dmitry == Dmitry Morozovsky [EMAIL PROTECTED] writes:

Dmitry BTW, is it safe to create _interleaved_ swap totally sized
Dmitry slightly above the amount of physical RAM? I mean, is core
Dmitry writer interleve-aware, or does it need the first swap
Dmitry partiton large enough?

The dump device (which is not necessarily a swap device) has to be
large enough ... and it's one device.  You set the dump device in
/etc/rc.conf (it defaults to not dumping).

Dave.

-- 

|David Gilbert, Velocet Communications.   | Two things can only be |
|Mail:   [EMAIL PROTECTED] |  equal if and only if they |
|http://daveg.ca  |   are precisely opposite.  |
=GLO

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



  1   2   >