Re: SysV IPC message queues performance

2002-07-24 Thread Mike Wade

On Wed, 24 Jul 2002, Jay West wrote:

> At one point I saw a program on the net that did benchmarks on a given
> system of sending the same data via message queues, sockets, pipes, etc. but
> I can't seem to find it anymore. The long and short of my question is - are
> SYSV IPC message queues on FreeBSD (or in general) known to be fairly slow?
> If only on freeBSD, is there anything that can be tweaked to speed them up?
> If not, or if they're just slow on all implementations, can someone suggest
> which of sockets, pipes, etc. are known to be awfully fast?

I believe the book "UNIX Network Programming, Volume 2: Interprocess
Communications" by W. Richard Stevens has a section and code dedicated to
measuring IPC latency and thruput.

---
Mike Wade ([EMAIL PROTECTED])
Blue Highway Labs, LLC.
Office: (423) 634-7746
Cell  : (423) 580-2440
AIM   : BHmwade


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



Re: Is it possible to use some BPF filters in one process, in somethreads?

2001-04-04 Thread Mike Wade

On Wed, 4 Apr 2001, Andrey Simonenko wrote:

> So, here is my question. Is it possible to use some pcap_dispatch(3)
> functions in one process? I need to use pcap_dispatch(3) only for
> counting number of bytes, I don't need to check network packets.

Why not use ipfw's count command instead?  Example:

[root@net-ninja]:~> ipfw add 10 count ip from any to 192.168.1.1 in recv fxp0
[root@net-ninja]:~> ipfw add 11 count ip from 192.168.1.1 to any out xmit fxp0
[root@net-ninja]:~> ipfw show 10 11
000107 430 count ip from any to 192.168.1.1 in recv fxp0
000112 187 count ip from 192.168.1.1 to any out xmit fxp0

Second column reports packets xfered, thrid column reports bytes xfered.

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.


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



Re: if_fxp status?

2001-03-08 Thread Mike Wade

On Thu, 8 Mar 2001, Luigi Rizzo wrote:

> I could not find a NetGear with the tulip chipset or clone.

FWIW I've used several NetGear PCI Ethernet cards with good results (and
great pricing + availability):

Netgear FA310-TX dc(4) / pn(4) driver
Netgear FA311-TX sis(4) driver
Netgear FA312-TX sis(4) driver

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.


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



Re: good book or other source about socket programming

2001-02-24 Thread Mike Wade

On Sat, 24 Feb 2001, Brian Reichert wrote:

> On Sat, Feb 24, 2001 at 08:17:03PM +0100, Alexander Langer wrote:
> > Thus spake Marco van de Voort ([EMAIL PROTECTED]):
> > After that you probably want to read some kqueue documents, which is
> > FreeBSD specific, but shall be quite fast (faster than select/poll)
> 
> Other than the manpage, what documents about kqueue are there?
> 
> (never even noticed this facility, until your message pointed it out...)

This link will be of some help for kqueue (and other I/O methods):

http://www.kegel.com/c10k.html

Also Ronald F. Guilmette's example kqueue echo server:

http://www.monkeys.com/kqueue/echo.c

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.


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



Re: if_fxp driver info (which card then?)

2001-01-26 Thread Mike Wade

On Fri, 26 Jan 2001, Greg Lehey wrote:

> Performance isn't even the main thing.  As I said earlier, it's plain
> bloody unreliable.  Linux people avoid the EtherExpress because they
> think something is wrong with the card.  They were surprised when I
> reported that it works without any problems under FreeBSD.  Do we
> really want to change that?

Slightly off subject but with all the discussion about not Intel playing
nicely with the FreeBSD developers...  I've always had the best
reliability, performance, and lower CPU usage with the Intel EtherExpress
Pro 10/100B cards in FreeBSD (and Solaris x86 for that matter).  Are there
better cards out there that I should be looking at?

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.



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



Re: Anyway to ipfw filter based on MAC address?

2000-08-29 Thread Mike Wade

On Mon, 28 Aug 2000, Jaye Mathisen wrote:

> I would love to be able to filter ipfw traffic based on more than just
> IP. 
> 
> Anybody done anything like this?

You may want to check out the Ethfw (Ethernet Firewall) patches for
FreeBSD at: http://spe.kakito.com/

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.



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



Re: Cheap 1000Gbyte machine

2000-08-18 Thread Mike Wade

On Fri, 18 Aug 2000, Jonathan Laventhol wrote:

> Hello Folks --
> 
> Anybody built a file server with approx 1000 Gbyte or more?
> Or even 200 Gbyte?
> 
> I'm looking for a cheap simple way of doing this.  Lots of
> IDE drives?  (How many can you have?)  Or SCSI?  (Again,
> how many can you have?).
> 
> It's for lots of 1 Mbyte files: no huge files.
> 
> Thanks for any tips.

You might want to check out the Arena Industrial II Rackmount RAID system
from "www.raidweb.com".  It has 8 x UDMA controllers that connect to the
host via Ultra2 SCSI (platform independant).  Buy two (or more) of those
and 16 x (60/80 gb Maxtor UMDA Drives or 75 gb IBM UMDA Drives).

2  x Arena Industrial II Rackmount RAID  $3,975
16 x Maxtor UDMA 60 gb Hard Drives   $3,680

Total Cost   $7,655

That comes out to about $7.98 / gb...

---
Mike Wade ([EMAIL PROTECTED])
Chief Technical Officer
CDC Internet, Inc.



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