Re: disk i/o problems

2007-05-22 Thread Nico -telmich- Schottelius
Nico -telmich- Schottelius [Mon, May 21, 2007 at 11:24:43AM +0200]: [...] I did some tests on our Dell Poweredge SC 1425, because our new mailserver had one outage (reason unknown) and was onetime running extremly slow. [...] Update: I removed da1 from the array, rebooted, used da1s1a as

Process accounting changes

2007-05-22 Thread Diomidis Spinellis
The accounting changes discussed in arch@ about a month ago are now part of the CURRENT tree. The changes increase the precision of the time values stored in acct(5) from 15ms (which for most commands was too large) to 1 microsecond. The userland programs sa(8) and lastcomm(1) provide

GPT boot loader?

2007-05-22 Thread Ivan Voras
Hi! I've had the opportunity to talk to Adam Martin, Marcel Moolenaar and Peter Wemm about making GPT bootable, but not all of them at the same time, so I'd like this thread to be the meeting point on the subject. (Adam and Peter have offered to modify the boot loader chain, but differently.)

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
OK well that's cleared up. Thanks DES. So I went back to trying the kernio code I found here (http://people.freebsd.org/~pjd/misc/kernio/) which does operate directly on vnodes (first time I tried it I was getting kernel panics, so I assumed the code was a bit dated and carried on down the

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Dag-Erling Smørgrav
Lawrence Stewart [EMAIL PROTECTED] writes: After further investigation, it turns out that the pfil input hook I'm using, which catches packets as they traverse up the network stack, has no problems, and will happily write to the file using the kio_write function. However, in the pfil output

Re: GPT boot loader?

2007-05-22 Thread Arne Schwabe
Ivan Voras schrieb: Hi! I've had the opportunity to talk to Adam Martin, Marcel Moolenaar and Peter Wemm about making GPT bootable, but not all of them at the same time, so I'd like this thread to be the meeting point on the subject. (Adam and Peter have offered to modify the boot loader

Re: GPT boot loader?

2007-05-22 Thread Ivan Voras
Craig Boston wrote: It's quite annoying to not be able to simply dd a partition without having to fix up the offsets. The GEOM container-like metaphor is very nice but it sucks that the on-disk formats don't match. Well, if enough people get annoyed, we might make our own modern partition

Re: More questions about BDB

2007-05-22 Thread Ivan Voras
Garrett Cooper wrote: Correct. BDB 1.85 is also packaged in gnu libc I believe, which makes it a more portable means for representing databases without external libraries. AFAIK it was thrown out from GNU libc some time ago (but some distributions, like Slackware, have added it

Re: GPT boot loader?

2007-05-22 Thread Craig Boston
On Tue, May 22, 2007 at 09:57:34AM +0200, Ivan Voras wrote: and that the fields in the GPT are supposed to be disk-absolute (which is not a problem on FreeBSD but may be on other systems). Grrr, this is one design feature of BSD disklabels that I was hoping might finally go away. But it seems

Re: kqueue implementation

2007-05-22 Thread Suleiman Souhlal
On May 21, 2007, at 6:48 AM, Daniel Molina Wegener wrote: On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote: Daniel Molina Wegener wrote this message on Sun, May 20, 2007 at 18:31 -0400: I'm coding an application using the kqueue facility, but I see that I can't handle open and read

Re: kqueue implementation

2007-05-22 Thread Joerg Sonnenberger
On Tue, May 22, 2007 at 10:04:37AM -0700, Suleiman Souhlal wrote: I mean vnode events, in the manual page I see NOTE_WRITE, but I need NOTE_OPEN and NOTE_READ. Is there any chance to get these kind of events? They should be easy to add.. All you would need to do for NOTE_OPEN would be to

Re: GPT boot loader?

2007-05-22 Thread Marcel Moolenaar
On May 22, 2007, at 9:42 AM, Craig Boston wrote: On Tue, May 22, 2007 at 09:57:34AM +0200, Ivan Voras wrote: and that the fields in the GPT are supposed to be disk-absolute (which is not a problem on FreeBSD but may be on other systems). Grrr, this is one design feature of BSD disklabels

Re: GPT boot loader?

2007-05-22 Thread Craig Boston
On Tue, May 22, 2007 at 02:34:02PM -0400, Marcel Moolenaar wrote: GPT is not designed to be a sub-partitioning scheme. It can not be used within a partition. As such, absolute block addresses are the same as relative block addresses. As such, no mistake has been made yet. Ah, that does make

Re: GPT boot loader?

2007-05-22 Thread Marcel Moolenaar
On May 22, 2007, at 11:58 AM, Craig Boston wrote: On Tue, May 22, 2007 at 02:34:02PM -0400, Marcel Moolenaar wrote: GPT is not designed to be a sub-partitioning scheme. It can not be used within a partition. As such, absolute block addresses are the same as relative block addresses. As such,

Re: GPT boot loader?

2007-05-22 Thread Achim Patzner
On 22.05.2007, at 10:21, Arne Schwabe wrote: 3. Use the GPT + MBR Format EFI Macs use. It has a normal MBR and a GPT and the MBR mirrors a subset of the GPT. The most challenging but conforms with EFI/GPT Mac OS is not even using the (protected) EFI boot partition (take a look at it

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
Comments inline... Dag-Erling Smørgrav wrote: Lawrence Stewart [EMAIL PROTECTED] writes: After further investigation, it turns out that the pfil input hook I'm using, which catches packets as they traverse up the network stack, has no problems, and will happily write to the file using the

Re: kqueue implementation

2007-05-22 Thread Daniel Molina Wegener
On Tuesday 22 May 2007 14:06:48 Joerg Sonnenberger wrote: On Tue, May 22, 2007 at 10:04:37AM -0700, Suleiman Souhlal wrote: I mean vnode events, in the manual page I see NOTE_WRITE, but I need NOTE_OPEN and NOTE_READ. Is there any chance to get these kind of events? They should be

Re: kqueue implementation

2007-05-22 Thread Daniel Molina Wegener
On Tuesday 22 May 2007 13:04:37 Suleiman Souhlal wrote: On May 21, 2007, at 6:48 AM, Daniel Molina Wegener wrote: On Monday 21 May 2007 03:57:58 John-Mark Gurney wrote: Daniel Molina Wegener wrote this message on Sun, May 20, 2007 at 18:31 -0400: I'm coding an application using the

Re: Writing a plain text file to disk from kernel space

2007-05-22 Thread Lawrence Stewart
To add another interesting bit to the puzzle... if I install both input and output pfil hooks, and use ping to generate network traffic, the writing to file in both the input and output hook works perfectly as well - even at high packet rates. Here's the weird bit: the second I try and