can we afford an extra column in iostat?

2009-07-13 Thread Giorgos Keramidas
While converting my laptop's main disk to zfs, I noticed iostat output like this (bits copied from here and there): | keram...@kobe:/home/keramida$ iostat -w3 ad0 da0 | tty ad0 da0 cpu | tin tout KB/t tps MB/s KB/t tps MB/s us ni sy in id |5 21

Re: mmap/munmap with zero length

2009-07-13 Thread John Baldwin
On Monday 13 July 2009 3:33:51 pm Tijl Coosemans wrote: > On Monday 13 July 2009 20:28:08 John Baldwin wrote: > > On Sunday 05 July 2009 3:32:25 am Alexander Best wrote: > >> so mmap differs from the POSIX recommendation right. the malloc.conf > >> option seems more like a workaround/hack. imo it's

Re: mmap/munmap with zero length

2009-07-13 Thread Tijl Coosemans
On Monday 13 July 2009 20:28:08 John Baldwin wrote: > On Sunday 05 July 2009 3:32:25 am Alexander Best wrote: >> so mmap differs from the POSIX recommendation right. the malloc.conf >> option seems more like a workaround/hack. imo it's confusing to have >> mmap und munmap deal differently with len=

Re: callout(9) and Giant lock

2009-07-13 Thread John Baldwin
On Monday 13 July 2009 2:49:24 pm Robert N. M. Watson wrote: > > On 13 Jul 2009, at 19:17, John Baldwin wrote: > > >> Callouts are marked as MPSAFE or non-MPSAFE when registered. If > >> non-MPSAFE, > >> we will acquire Giant automatically for the callout, but I believe > >> we'll also > >>

Re: callout(9) and Giant lock

2009-07-13 Thread Robert N. M. Watson
On 13 Jul 2009, at 19:17, John Baldwin wrote: Callouts are marked as MPSAFE or non-MPSAFE when registered. If non-MPSAFE, we will acquire Giant automatically for the callout, but I believe we'll also try and sort non-MPSAFE callouts behind MPSAFE ones in execution order to minimize latenc

Re: bus device driver

2009-07-13 Thread John Baldwin
On Monday 13 July 2009 10:05:15 am Norbert Koch wrote: > Hello. > > I just started to write a device > driver for a multi-function pci card. > This card replaces a number of > independant isa hardware devices. > This pci card contains memory, i/o > and interrupt sources. > I want my device driver

Re: mmap/munmap with zero length

2009-07-13 Thread John Baldwin
On Sunday 05 July 2009 3:32:25 am Alexander Best wrote: > so mmap differs from the POSIX recommendation right. the malloc.conf option > seems more like a workaround/hack. imo it's confusing to have mmap und munmap > deal differently with len=0. being able to succesfully alocate memory which > canno

Re: callout(9) and Giant lock

2009-07-13 Thread John Baldwin
On Sunday 28 June 2009 11:57:05 am Robert Watson wrote: > > On Sun, 28 Jun 2009, Sebastian Huber wrote: > > > suppose that a certain time event triggered several callout functions. What > > happens if the first of these callout functions blocks on the Giant lock? > > Does this delay all further

bus device driver

2009-07-13 Thread Norbert Koch
Hello. I just started to write a device driver for a multi-function pci card. This card replaces a number of independant isa hardware devices. This pci card contains memory, i/o and interrupt sources. I want my device driver to serve as a bus driver between the pci driver and the specific device

Re: Help on relicensing derived code

2009-07-13 Thread Henrique Almeida
2009/7/13 Carlos A. M. dos Santos : > If you are writing your own version of errno.h then it is not a > derived work. In this particular case, errno.h is just a list of error > codes so you can copy/paste the numbers and mnemonics from the output > of "man 2 intro". That would be considered "compat

Re: Help on relicensing derived code

2009-07-13 Thread Carlos A. M. dos Santos
On Mon, Jul 13, 2009 at 9:57 AM, Henrique Almeida wrote: > 2009/7/13 Carlos A. M. dos Santos : >> On Sun, Jul 12, 2009 at 4:20 PM, Henrique Almeida wrote: >>>  I need to write an "errno.h" with constant values used by the FreeBSD >>> kernel. My project uses exclusively the 2 clause BSD license. I

Re: Help on relicensing derived code

2009-07-13 Thread Henrique Almeida
Good news, in Android errno, there's a statement that suggests that constant values are not copyrightable. :-) http://android.git.kernel.org/?p=platform/bionic.git;a=blob;f=libc/kernel/common/asm-generic/errno-base.h;h=2fb4a336454e47f8bf0764fd253a78be633f9652;hb=HEAD /**

Fwd: Help on relicensing derived code

2009-07-13 Thread Henrique Almeida
-- Forwarded message -- From: Henrique Almeida Date: 2009/7/13 Subject: Re: Help on relicensing derived code To: "Carlos A. M. dos Santos" 2009/7/13 Carlos A. M. dos Santos : > On Sun, Jul 12, 2009 at 4:20 PM, Henrique Almeida wrote: > >>  I need to write an "errno.h" with const

Return type of xpt_bus_register() and xpt_bus_deregister()

2009-07-13 Thread Sebastian Huber
Hi, why have the functions xpt_bus_register() and xpt_bus_unregister() a return value type of int32_t? For me it is not clear how the supposed return value should look like. They return a mixture of cam_status and CAM_SUCCESS (this one equals CAM_REQ_INPROG). Have a nice day! -- Sebastian Hub