Re: interrupt statistics

2003-11-21 Thread Dag-Erling Smørgrav
Peter Pentchev [EMAIL PROTECTED] writes: Awwighty, attached is a patch that converts getuptime() and dointr() to use sysctl, and then adds the -a option to display all interrupts. This one was tested on both RELENG_4 and HEAD (ref5) :) Hmm, I don't like the fact that it displays a stray entry

Re: interrupt statistics

2003-11-21 Thread Dag-Erling Smørgrav
[EMAIL PROTECTED] (Dag-Erling Smørgrav) writes: Peter Pentchev [EMAIL PROTECTED] writes: Awwighty, attached is a patch that converts getuptime() and dointr() to use sysctl, and then adds the -a option to display all interrupts. This one was tested on both RELENG_4 and HEAD (ref5) :) [...]

Re: integer and long max/min values

2003-11-21 Thread Tim Kientzle
Jay Sern Liew wrote: how do I find out the maximum (and minimum) value a long and int will hold in C? (before it overflows or underflows) #include limits.h INT_MAX and INT_MIN are the max/min values for an int LONG_MAX and LONG_MIN are the max/min values for long. Also, see stdint.h, which is

Re: interrupt statistics

2003-11-21 Thread Peter Pentchev
On Fri, Nov 21, 2003 at 08:49:52AM +0100, Dag-Erling Sm?rgrav wrote: [EMAIL PROTECTED] (Dag-Erling Sm?rgrav) writes: Peter Pentchev [EMAIL PROTECTED] writes: Awwighty, attached is a patch that converts getuptime() and dointr() to use sysctl, and then adds the -a option to display all

Re: interrupt statistics

2003-11-21 Thread Dag-Erling Smørgrav
Peter Pentchev [EMAIL PROTECTED] writes: Point taken. I was going to attach a patch that uses sysctlbyname(3), fixes another buglet in the !VMSTAT_SYSCTL case (and is less intrusive), and removes the intrcnt/intrnames-related namelist definitions for the VMSTAT_SYSCTL case. However, it seems

Re: interrupt statistics

2003-11-21 Thread Peter Pentchev
On Fri, Nov 21, 2003 at 09:56:40AM +0100, Dag-Erling Sm?rgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: Point taken. I was going to attach a patch that uses sysctlbyname(3), fixes another buglet in the !VMSTAT_SYSCTL case (and is less intrusive), and removes the

Re: secure file flag?

2003-11-21 Thread Pawel Jakub Dawidek
On Thu, Nov 20, 2003 at 01:27:29PM -0800, Wes Peters wrote: + On Tuesday 18 November 2003 16:31, Rayson Ho wrote: + I am wondering if it is useful to have a secure file flag?? + + The secure file flag will be set for files that contain sensitive + data. Then the OS will take special care when

Re: secure file flag?

2003-11-21 Thread Peter Jeremy
On Fri, Nov 21, 2003 at 10:59:40AM +0100, Pawel Jakub Dawidek wrote: Such secure flag for running process could be also implemented with multiple meanings: Is the secure flag intended to protect the process image from the invoking user as well as other users? 1. All freed pages have to be

Re: interrupt statistics

2003-11-21 Thread Dag-Erling Smørgrav
Peter Pentchev [EMAIL PROTECTED] writes: I was thinking about the setgid bit too, but it can only be removed when all of vmstat's functionality, not just dointr(), is converted to use sysctl. I know; I'm working on it, and am more than half done. Still, here's the updated patch I was

Help needed with QLogic 2300/FibreChannel

2003-11-21 Thread Danny Braniss
this card worked fine the first time, now, after some fiddling with the EMC/Clariion, the disks disappeared! BTW, windows sees them ok. enabling debugging i get ... isp0: Target 0 (Loop 0x0) Port ID 0xef (role Target) Arrived Port WWN 0x50060160006003b4 Node WWN 0x50060160806003b4 isp0: port

Re: secure file flag?

2003-11-21 Thread Dag-Erling Smørgrav
Pawel Jakub Dawidek [EMAIL PROTECTED] writes: If this operation is able to fail (and of course it is) it should block on unlink(2). FreeBSD is not DOS; unlink(2) does not actually remove the file. It is removed by the filesystem if the link count is zero when the vnode is released, which may

Re: secure file flag?

2003-11-21 Thread Pawel Jakub Dawidek
On Fri, Nov 21, 2003 at 12:41:05PM +0100, Dag-Erling Sm?rgrav wrote: + If this operation is able to fail (and of course it is) it should block + on unlink(2). + + FreeBSD is not DOS; unlink(2) does not actually remove the file. It + is removed by the filesystem if the link count is zero when

Re: secure file flag?

2003-11-21 Thread Dag-Erling Smørgrav
Pawel Jakub Dawidek [EMAIL PROTECTED] writes: I'm aware of this, but what we want to think over here is something like in-kernel 'rm -P'. So file will be overwriten even if it is opened and/or link count is grater than 0. That is not acceptable. First of all, it breaks a lot of assumptions in

5.1 hangs on large file transfers

2003-11-21 Thread dd dd
HI Fellows, sorry bothering you. There is probably an inssue with 5.1-RELEASE. I got 2 hdd attached to separate cables/controllers. At the boot time I can see something like: ad0: 9732MB SAMSUNG SV1021H [19774/16/63] at ata0-master UDMA100 ad2: 76351MB SAMSUNG SV0802N [155127/16/63] at

Re: interrupt statistics

2003-11-21 Thread Peter Pentchev
On Fri, Nov 21, 2003 at 12:13:46PM +0100, Dag-Erling Sm?rgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: I was thinking about the setgid bit too, but it can only be removed when all of vmstat's functionality, not just dointr(), is converted to use sysctl. I know; I'm working on it,

Re: integer and long max/min values

2003-11-21 Thread Richard Coleman
Jay Sern Liew wrote: how do I find out the maximum (and minimum) value a long and int will hold in C? (before it overflows or underflows) if it's compiler-dependent, then does anyone know where I can find the GCC documentation for stuff like that? It will be architecture dependent (32 or 64 bit

usb 2.0 dell inspirion 8500

2003-11-21 Thread quel
I recently got a usb 2.0 hard drive to which I painfully wait for 1MB/s transfers. According to dmesg fbsd is only doing 1.0: usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0 usb0: USB revision 1.0 usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1 usb1: USB revision 1.0 usb2:

RE: integer and long max/min values

2003-11-21 Thread Vijay.Singh
Write a simple C program to ++ an int or long variable and see when it overflows. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of ext Tim Kientzle Sent: Friday, November 21, 2003 12:24 AM To: Jay Sern Liew Cc: [EMAIL PROTECTED] Subject: Re: integer

Re: MAJOR number #2

2003-11-21 Thread Roman Kurakin
Hi, Daniel Eischen wrote: On Mon, 17 Nov 2003, Roman Kurakin wrote: Hi, I need a new MAJOR number for our new device. How can I get it? I've read that FreeBSD doesn't use them any more. But we may need it to not interfere with other device drivers in previous releases of FreeBSD. ??? ce

RE: Submitting changes that add an option

2003-11-21 Thread John Baldwin
On 21-Nov-2003 Ibrahim Abdullah wrote: I've added an option to the from command so that it can also display the subject header. For instance: $ from From [EMAIL PROTECTED] Thu Nov 20 23:44:57 2003 From [EMAIL PROTECTED] Thu Nov 20 23:50:59 2003 $ from -S From [EMAIL PROTECTED] Thu Nov

Re: interrupt statistics

2003-11-21 Thread John Baldwin
On 21-Nov-2003 Peter Pentchev wrote: On Fri, Nov 21, 2003 at 12:13:46PM +0100, Dag-Erling Sm?rgrav wrote: Peter Pentchev [EMAIL PROTECTED] writes: I was thinking about the setgid bit too, but it can only be removed when all of vmstat's functionality, not just dointr(), is converted to use

Re: integer and long max/min values

2003-11-21 Thread Peter Pentchev
On Fri, Nov 21, 2003 at 09:53:50AM -0800, [EMAIL PROTECTED] wrote: [format recovered; Tim Kientzle wrote:] Jay Sern Liew wrote: how do I find out the maximum (and minimum) value a long and int will hold in C? (before it overflows or underflows) #include limits.h INT_MAX and

Re: integer and long max/min values

2003-11-21 Thread ari
'Tis a bit of a waste of cpu time there. On a two's complement system, which is probably all you'll come by, you can find UINT_MAX by setting an unsigned integer to -1: unsigned int i_max = -1; A slightly more architecturally independent way of finding UINT_MAX would be to set an unsigned

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
On Fri, Nov 21, 2003 at 10:47:35AM -0600, [EMAIL PROTECTED] wrote: I recently got a usb 2.0 hard drive to which I painfully wait for 1MB/s transfers. According to dmesg fbsd is only doing 1.0: usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0 usb0: USB revision 1.0 usb1: Intel

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread quel
Should device ehci be a default in GENERIC, then? -James On Fri, 21 Nov 2003, Bernd Walter wrote: On Fri, Nov 21, 2003 at 10:47:35AM -0600, [EMAIL PROTECTED] wrote: I recently got a usb 2.0 hard drive to which I painfully wait for 1MB/s transfers. According to dmesg fbsd is only doing

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED] wrote: Should device ehci be a default in GENERIC, then? It is intentionally not in GENERIC. On Fri, 21 Nov 2003, Bernd Walter wrote: On Fri, Nov 21, 2003 at 10:47:35AM -0600, [EMAIL PROTECTED] wrote: I recently got a usb 2.0

Library libgcc_pic.a missing on 5.1?

2003-11-21 Thread Jim Durham
Is liibgcc_a not supposed to be on 5.1? Are the functions in some other library? Sorry to bother, but Google is silent! Thanks, -- Jim Durham ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread quel
Could you point me to information as to why it is not in GENERIC? -James On Fri, 21 Nov 2003, Bernd Walter wrote: On Fri, Nov 21, 2003 at 03:10:10PM -0600, [EMAIL PROTECTED] wrote: Should device ehci be a default in GENERIC, then? It is intentionally not in GENERIC. On Fri, 21 Nov

Re: usb 2.0 dell inspirion 8500

2003-11-21 Thread Bernd Walter
On Fri, Nov 21, 2003 at 03:37:10PM -0600, [EMAIL PROTECTED] wrote: Could you point me to information as to why it is not in GENERIC? Because it is not requireds for device to work, but on the other hand in some cases doesn't work with ehci, such as hubs and interrupt transfers. Adding ehci is

Re: secure file flag?

2003-11-21 Thread Wes Peters
On Friday 21 November 2003 05:30, Dag-Erling Smørgrav wrote: Pawel Jakub Dawidek [EMAIL PROTECTED] writes: I'm aware of this, but what we want to think over here is something like in-kernel 'rm -P'. So file will be overwriten even if it is opened and/or link count is grater than 0. That

Re: secure file flag?

2003-11-21 Thread Stefan Eßer
On 2003-11-21 14:09 -0800, Wes Peters [EMAIL PROTECTED] wrote: As for performance, you really need to flush the on-device cache on each pass to make sure the bit patterns get written to the platter in proper order. I don't see any clever way to coalesce the writing of the various patterns

Re: integer and long max/min values

2003-11-21 Thread Duane H. Hesser
On 21-Nov-2003 Richard Coleman wrote: Jay Sern Liew wrote: how do I find out the maximum (and minimum) value a long and int will hold in C? (before it overflows or underflows) if it's compiler-dependent, then does anyone know where I can find the GCC documentation for stuff like that?

Re: Help request: problems with a 5.1 server and large numbers of ssh users.

2003-11-21 Thread Peter Jeremy
On Wed, Nov 19, 2003 at 09:26:10PM -0800, Len Sassaman wrote: It is my intuition from this behavior that the sshd master process listening for connections is unable to spawn a new process to complete the authentication step, and thus the connection is being dropped. There is no information of