puc(4) PCI parallel port support/IO problem

2007-06-20 Thread vladvic
Hello, freebsd-hackers I'm trying to add parallel port card support to the puc(4) driver. The chip is an OX12PCI840, which is a PCI chip (in my case it is attached via cardbus bridge). I have two questions related to it: 1) Will I need additional code in the puc driver itself (revised the code I

Re: Making sense of ktrace(1) output

2007-06-20 Thread Peter Jeremy
On 2007-Jun-18 12:34:21 -0700, [EMAIL PROTECTED] wrote: Why not create a flag though instead of check to see if an environment variables been set? The patch is to a library. There's no easy way to pass a flags to it and using environment variables is already used to control the behaviour of

Very slow sed...

2007-06-20 Thread David Cross
Ok the subject line is misleading.. but I don't know how else to put it. I have a machine on which SOME programs are slow. VERY SLOW. Other programs run just fine. I cannot seem to find the source of the problem. Machine 1 (the ok machine) is running 6.2-RELEASE-pLATEST. It is a CPU:

Re: Very slow sed...

2007-06-20 Thread David Cross
On Wed, 20 Jun 2007, Kris Kennaway wrote: On Wed, Jun 20, 2007 at 10:24:01AM -0400, David Cross wrote: Machine 2: time sed -f /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/strip.sed /usr/src/gnu/usr.bin/groff/tmac/../../../../contrib/groff/tmac/doc-common /dev/null real

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Julian Elischer wrote: Nicolas Cormier wrote: Hi, I'm trying to write a little tcp-server kernel module (like tftp). I didn't find a lot of documents about the kernel network programming, just one thread which talks about netgraph. In the freebsd includes I found /usr/include/sys/socketvar.h

Re: Very slow sed...

2007-06-20 Thread Daniel Horecki
2007/6/20, David Cross [EMAIL PROTECTED]: Ok the subject line is misleading.. but I don't know how else to put it. I have a machine on which SOME programs are slow. VERY SLOW. Other programs run just fine. I cannot seem to find the source of the problem. Yes... you read that right... almost

Re: Very slow sed...

2007-06-20 Thread Jeremy Chadwick
On Wed, Jun 20, 2007 at 10:24:01AM -0400, David Cross wrote: Ok the subject line is misleading.. but I don't know how else to put it. I have a machine on which SOME programs are slow. VERY SLOW. Other programs run just fine. I cannot seem to find the source of the problem. Two things I

Re: in-kernel tcp server

2007-06-20 Thread Nicolas Cormier
On 6/20/07, John Polstra [EMAIL PROTECTED] wrote: Julian Elischer wrote: Nicolas Cormier wrote: Hi, I'm trying to write a little tcp-server kernel module (like tftp). I didn't find a lot of documents about the kernel network programming, just one thread which talks about netgraph. In the

Re: Very slow sed...

2007-06-20 Thread David Cross
Thanks all.. it was the memory. It wasn't bad.. .memtest (or anythign else didn't actually fail, the only way I could tell is with a stopwatch and watching loop times)... but pulling 1/2 of the RAM fixed it.. it doesn't matter which set was in, as long as both sets its fine. -- David E.

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Nicolas Cormier wrote: Thanks a lot for your answer, a last question why did you not used so* functions ? Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too.

Re: in-kernel tcp server

2007-06-20 Thread Nicolas Cormier
On 6/20/07, John Polstra [EMAIL PROTECTED] wrote: Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too. For my application, I found that going through the socket layer

Re: Very slow sed...

2007-06-20 Thread Arthur Chang
It might be an issue with the motherboard memory slots then. -Arthur Chang Thanks all.. it was the memory. It wasn't bad.. .memtest (or anythign else didn't actually fail, the only way I could tell is with a stopwatch and watching loop times)... but pulling 1/2 of the RAM fixed it.. it

Re: in-kernel tcp server

2007-06-20 Thread Julian Elischer
Nicolas Cormier wrote: On 6/20/07, John Polstra [EMAIL PROTECTED] wrote: Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management interface, too. For my application, I found that going

Re: Very slow sed...

2007-06-20 Thread Jeremy Chadwick
On Wed, Jun 20, 2007 at 01:25:04PM -0700, Arthur Chang wrote: It might be an issue with the motherboard memory slots then. Very possible. Another thing to look at would be a BIOS update, or at a bare minimum, the BIOS history for the Intel DP965LT (I have one too, but have never put more than

Re: in-kernel tcp server

2007-06-20 Thread Maksim Yevmenkin
On 6/20/07, Julian Elischer [EMAIL PROTECTED] wrote: Nicolas Cormier wrote: On 6/20/07, John Polstra [EMAIL PROTECTED] wrote: Using ng_ksocket is almost the same as using the so* functions, since the ksocket methods call the so* functions. But by using netgraph, you get a nice management

Re: Very slow sed...

2007-06-20 Thread David Cross
http://downloadmirror.intel.com/13348/ENG/MQ_1687_ReleaseNotes.pdf There it is, the smoking gun. Release 1676... wow.. .that's an obscure one. Thanks you all again! -- David E. Cross On Wed, 20 Jun 2007, David Cross wrote: Thanks all.. it was the memory. It wasn't bad.. .memtest (or

Re: in-kernel tcp server

2007-06-20 Thread John Polstra
Julian Elischer wrote: I would actually like to address the performance issues. is there any chance the oldest version (4.x based) might be released, or at least it would be nice to get the code snippet that attaches to eh ng_ksocket and reads and writes the stream.. I could make a TCP ECHO

Re: in-kernel tcp server

2007-06-20 Thread Julian Elischer
John Polstra wrote: Julian Elischer wrote: I would actually like to address the performance issues. is there any chance the oldest version (4.x based) might be released, or at least it would be nice to get the code snippet that attaches to eh ng_ksocket and reads and writes the stream.. I

Re: in-kernel tcp server

2007-06-20 Thread Andrey V. Elsukov
Nicolas Cormier wrote: What's the easy way to create a basic tcp server (create/bind/listen/accept/send/recv) : use netgraph's ksocket or so* AFAIR, OpenKETA was web server in kernel space. You can look to it's code. -- WBR, Andrey V. Elsukov ___