Re: top shows all zeroes.

2002-08-26 Thread David Malone
On Sun, Aug 25, 2002 at 04:49:23PM -0700, Patrick Thomas wrote: Also, just to add a bit more info, sometimes instead of rebooting to solve the problem, the problem doesn't exist, and rebooting causes it to manifest. So it seems fairly random. Can you watch vmstat -i before and after the

Re: USB support for new HP printers?

2002-08-26 Thread Marco Molteni
On Sun, 25 Aug 2002 23:36:15 -0600, John Nielsen [EMAIL PROTECTED] wrote: Are there plans to add USB support for HP's newer printers to FreeBSD? Specificially, the OfficeJets and the LaserJet 1200? They use a new/different/broken USB interface so they're just recognized as ugen devices

Re: USB support for new HP printers?

2002-08-26 Thread John Nielsen
On Monday 26 August 2002 02:51, Marco Molteni wrote: On Sun, 25 Aug 2002 23:36:15 -0600, John Nielsen [EMAIL PROTECTED] wrote: Are there plans to add USB support for HP's newer printers to FreeBSD? Specificially, the OfficeJets and the LaserJet 1200? They use a new/different/broken

Re: USB support for new HP printers?

2002-08-26 Thread Marco Molteni
On Mon, 26 Aug 2002 04:28:34 -0600, John Nielsen [EMAIL PROTECTED] wrote: On Monday 26 August 2002 02:51, Marco Molteni wrote: On Sun, 25 Aug 2002 23:36:15 -0600, John Nielsen [EMAIL PROTECTED] wrote: Are there plans to add USB support for HP's newer printers to FreeBSD?

Re: USB support for new HP printers?

2002-08-26 Thread Terry Lambert
John Nielsen wrote: have a look at hpoj.sourceforge.net they plan FreeBSD USB support for a next release I've been all over the site and read some of the docs. The most useful piece of information I found was this: FreeBSD, NetBSD, and OpenBSD are not yet supported in USB mode, due to

pseudo-devices' names vs. names + quantity

2002-08-26 Thread Eugene Panchenko
hello, ppl! I have a small question to all you: i want to be able to use at most 8 instances of the following pseudo-devices at the same time: pseudo-device bpf 8 pseudo-device gif 8 pseudo-device vn 8 pseudo-device snp 8 after which ones of them do I need to put 8? I assume that i might omit

Re: top shows all zeroes.

2002-08-26 Thread Patrick Thomas
ok: # vmstat -i interrupt total rate ata0 irq14 23 0 ahc0 irq10 15 0 aac0 irq2 6330470 30 fxp0 irq517556113 83 fdc0 irq6 4 0 sio0 irq4

RE: Fast interrupts

2002-08-26 Thread John Baldwin
On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? I couldn't find the specific answer from the man page: All processes sleeping on a single ident are woken up later by wakeup, often called from inside an interrupt routine, to

Re: USB support for new HP printers?

2002-08-26 Thread Mikko Työläjärvi
On Mon, 26 Aug 2002, Terry Lambert wrote: John Nielsen wrote: have a look at hpoj.sourceforge.net they plan FreeBSD USB support for a next release I've been all over the site and read some of the docs. The most useful piece of information I found was this: FreeBSD, NetBSD, and

Re: top shows all zeroes.

2002-08-26 Thread Lars Eggert
Patrick Thomas wrote: Now, when I repeat vmstat -i, all of these numbers (or rather, all of the large numbers) increase _except_ for `rtc irq8`. interrupt total rate mux irq114851 12 ata0 irq14 94219240 atkbd0 irq1

piping to a script

2002-08-26 Thread Antonio Inojal
Hello, I am trying to pipe content from a C program into a shell script. What I want to do is to pass the information coming from the C app, into an environmental variable in the shell script: my_app | my_script . Say that my app spits out the date, ok? I want that an env variable declared in

System Panic: Trap 12 - Page Fault

2002-08-26 Thread Daniel Rudy
Hello, I'm trying to figure out why my system paniced. Below is some of the details that I have come up with so far. This is the SECOND kernel panic in a row. The first one is unusable. strata:/usr/backup/crash 1034 ### -gdb -k kernel.debug vmcore.1 GNU gdb 4.18 (FreeBSD) Copyright

Re: USB support for new HP printers?

2002-08-26 Thread Ulf Zimmermann
On Mon, Aug 26, 2002 at 01:46:44PM +0200, Marco Molteni wrote: On Mon, 26 Aug 2002 04:28:34 -0600, John Nielsen [EMAIL PROTECTED] wrote: On Monday 26 August 2002 02:51, Marco Molteni wrote: On Sun, 25 Aug 2002 23:36:15 -0600, John Nielsen [EMAIL PROTECTED] wrote: Are there

Re: Fast interrupts

2002-08-26 Thread Maksim Yevmenkin
John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [ ...] The only reason I ask is because sio seems to go out of its way to schedule a soft interrupt to deal with waking up processes, which then calls wakeup... Since

Re: Fast interrupts

2002-08-26 Thread Bosko Milekic
On Mon, Aug 26, 2002 at 09:41:43AM -0700, Maksim Yevmenkin wrote: John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [ ...] The only reason I ask is because sio seems to go out of its way to schedule a soft

Re: Fast interrupts

2002-08-26 Thread Maksim Yevmenkin
Bosko Milekic wrote: On Mon, Aug 26, 2002 at 09:41:43AM -0700, Maksim Yevmenkin wrote: John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [ ...] The only reason I ask is because sio seems to go out of its way to

Re: Fast interrupts

2002-08-26 Thread Bosko Milekic
On Mon, Aug 26, 2002 at 10:14:32AM -0700, Maksim Yevmenkin wrote: Bosko Milekic wrote: On Mon, Aug 26, 2002 at 09:41:43AM -0700, Maksim Yevmenkin wrote: John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [

Re: top shows all zeroes.

2002-08-26 Thread Patrick Thomas
ok, after 2+ days, for no discernible reason I now have real top stats back. This has occurred within the last 20 minutes, and I have done nothing at all on the system save normal operation. vmstat -i now tells me: # vmstat -i ... rtc irq8 479105 2 ... The 497105

Re: Fast interrupts

2002-08-26 Thread John Baldwin
On 26-Aug-2002 Maksim Yevmenkin wrote: John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [ ...] The only reason I ask is because sio seems to go out of its way to schedule a soft interrupt to deal with waking up

Re: Fast interrupts

2002-08-26 Thread John Baldwin
On 26-Aug-2002 Maksim Yevmenkin wrote: Bosko Milekic wrote: On Mon, Aug 26, 2002 at 09:41:43AM -0700, Maksim Yevmenkin wrote: John Baldwin wrote: On 26-Aug-2002 M. Warner Losh wrote: can you call wakeup(9) from a fast interrupt handler? [ ...] The only reason I ask is

Re: top shows all zeroes.

2002-08-26 Thread Peter Wemm
Patrick Thomas wrote: ok, after 2+ days, for no discernible reason I now have real top stats back. This has occurred within the last 20 minutes, and I have done nothing at all on the system save normal operation. vmstat -i now tells me: # vmstat -i ... rtc irq8

Re: piping to a script

2002-08-26 Thread Rohit Grover
Antonio Inojal wrote: Hello, I am trying to pipe content from a C program into a shell script. What I want to do is to pass the information coming from the C app, into an environmental variable in the shell script: my_app | my_script . Say that my app spits out the date, ok? I want

Re: top shows all zeroes.

2002-08-26 Thread Brian T. Schellenberger
On Monday 26 August 2002 12:00 pm, Lars Eggert wrote: | Patrick Thomas wrote: | Now, when I repeat vmstat -i, all of these numbers (or rather, all | of the large numbers) increase _except_ for `rtc irq8`. | | interrupt total rate | mux irq114851

Re: top shows all zeroes.

2002-08-26 Thread Bruce M Simpson
On Mon, Aug 26, 2002 at 11:02:50AM -0700, Peter Wemm wrote: This has happened before. For some reason, the RTC stops sending the 128Hz statclock (statistics clock) interrupts. One way to unwedge that in the past was to break into ddb and do a 'show rtc' command.. but that is hardly a

Re: top shows all zeroes.

2002-08-26 Thread Patrick Thomas
I will note that my system is a dual processor system, no APM hardware in it, and I have an identical machine running a kernel built from an identical kernel configuration file running an identical FreeBSD system that has _never_ had the problem. On Mon, 26 Aug 2002, Bruce M Simpson wrote:

Lint libraries in -STABLE

2002-08-26 Thread Bruce M Simpson
Hi, Does anybody know if lint library generation was ever fixed in -STABLE? /usr/libdata/lint appears to be empty. Thanks BMS To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-hackers in the body of the message

kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
Hey, I'm attempting the junior userland hacker task of replacing select in make with kevent. I have written the code and it is, as far as I know correct. The problem is that this code doesn't work. An example being the following: cd /usr/src /usr/obj/usr/home/dom/code/src/usr.bin/make/make

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
On Mon, Aug 26, 2002 at 11:17:27PM +0100, Dominic Marks wrote: snip/ One thing I forgot to mention, but which I don't think (hope) matters is that I'm building make from checked out -CURRENT source on my -STABLE workstation. That's why the diff is against -CURRENT and the subject mentions

Re: USB support for new HP printers?

2002-08-26 Thread Don Lewis
On 26 Aug, Mikko Työläjärvi wrote: On Mon, 26 Aug 2002, Terry Lambert wrote: John Nielsen wrote: FreeBSD, NetBSD, and OpenBSD are not yet supported in USB mode, due to missing functionality in the kernel ulpt driver (bidirectional I/O, device ID retrieval, switching to 7/1/3, and HP

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Dominic Marks
Hey, The best time to find and fix problems in code is just after you've submitted it to a public forum. It is also the worst time. :-) 1. Removed pointless traversal on kevent structures in Job_CatchOutput which I was doing before. Now all kevent objects store the address of their assigned job

Re: USB support for new HP printers?

2002-08-26 Thread Terry Lambert
Mikko Työläjärvi wrote: I'm pretty sure that bidirectional I/O is supported, or there would be no network devices. [...] Though the USB stack handles bi-directional communication, ulpt does not: Static struct cdevsw ulpt_cdevsw = { /* open */ulptopen, /* close */

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Ian Dowse
In message 20020826225851.GA93947@gallium, Dominic Marks writes: +static int kq = -1; +int kq, rv, idx; kevent(0x3,0xbfbfedbc,0x1,0x0,0x0,0x0) = 0 (0x0) kevent(0x809abc0,0x0,0x0,0xbfbfede0,0x8,0x0) ERR#9 'Bad file descriptor' Look at the above 4 lines, and it is pretty clear

Re: kevent and pipes interaction on 4.6-STABLE

2002-08-26 Thread Terry Lambert
Dominic Marks wrote: I'm attempting the junior userland hacker task of replacing select in make with kevent. I have written the code and it is, as far as I know correct. The problem is that this code doesn't work. An example being the following: The problem is that kqueue is known to not

Re: problems with pthreads

2002-08-26 Thread Kip Macy
You need to remove the -ansi flag to the compilation to remove the warnings, and add a -pthread to the link stage so that libc_r will be used instead of libc. As an aside: this only belongs on -questions. However, considering I got _zero_ response after posting to one then the other when one