Re: Very slow writing to SATA disk

2005-10-28 Thread Matthew D. Fuller
On Fri, Oct 28, 2005 at 01:18:03AM -0400 I heard the voice of Mikhail T., and lo! it spake thus: According to smartctl, the drive runs at 56C during the copying. Its idle temperature seems to be 54C. That sounds a little high to me. Smartctl has been weird lately, and it only shows temp on

Re: locking in a device driver

2005-10-28 Thread Dinesh Nair
On 10/28/05 10:52 M. Warner Losh said the following: libc_r will block all other threads in the application while an ioctl executes. libpthread and libthr won't. I've had several bugs at work which is a Good Thing(tm) indeed for me on 4.x. -- Regards, /\_/\ All

Re: Very slow writing to SATA disk

2005-10-28 Thread Peter Jeremy
On Fri, 2005-Oct-28 01:18:03 -0400, Mikhail T. wrote: I've got a new Hitachi drive with 16Mb of cache: ad8: 476940MB HDS725050KLA360 K2AOA11A at ata4-master SATA150 and am trying to use it to store backups online. Unfortunately, writing to the disk is painfully slow (by today's standards)

Re: RFC: porting NetBSD fsdb enhancements to FreeBSD

2005-10-28 Thread Robert Watson
On Fri, 28 Oct 2005, Matt Emmerton wrote: Recently I've had to do some low-level surgery on some disks that have gone bad in order to recover some of the data. This has required me to zero out blocks on disk, patch up the affected files, and pull the data off the disks. I was toying around

Re: Very slow writing to SATA disk

2005-10-28 Thread ray
At 07:48 PM 10/28/2005 +1000, Peter Jeremy wrote: | On Fri, 2005-Oct-28 01:18:03 -0400, Mikhail T. wrote: | I've got a new Hitachi drive with 16Mb of cache: | | ad8: 476940MB HDS725050KLA360 K2AOA11A at ata4-master SATA150 | | and am trying to use it to store backups online. Unfortunately,

Re: how to make the FreeBSD 6.0 run faster

2005-10-28 Thread Robert Watson
On Thu, 27 Oct 2005, Vaibhave Agarwal wrote: How do u disable malloc debugging flags in the userland? I read somewhere that ln -s aj /etc/malloc.conf disables malloc debugging. How does it work? And how to disable verbose features in the kernel? Apart from this, are there other ways to

how to make the FreeBSD 6.0 run faster

2005-10-28 Thread Vaibhave Agarwal
In the file /usr/src/UPDATING, there is a following statement NOTE TO PEOPLE WHO THINK THAT FreeBSD 6.x IS SLOW: FreeBSD 6.x has many debugging features turned on, in both the kernel and userland. These features attempt to detect incorrect use of system primitives, and

Re: compiling the kernel faster

2005-10-28 Thread Glenn Dawson
At 04:36 PM 10/27/2005, Daniel Molina Wegener wrote: On Thu, Oct 27, 2005 at 05:14:51AM -0700, [EMAIL PROTECTED] wrote: At 04:54 AM 10/27/2005 -0700, kamal kc wrote: | hello everybody, | | i am new to kernel programming. | i am developing a compression/decompression | functionality

Very slow writing to SATA disk

2005-10-28 Thread Mikhail T.
Hi! I've got a new Hitachi drive with 16Mb of cache: ad8: 476940MB HDS725050KLA360 K2AOA11A at ata4-master SATA150 and am trying to use it to store backups online. Unfortunately, writing to the disk is painfully slow (by today's standards) -- it can barely keep 7Mb/second and my other

Re: Re: how to make the FreeBSD 6.0 run faster

2005-10-28 Thread Sergey Babkin
From: Robert Watson [EMAIL PROTECTED] On Thu, 27 Oct 2005, Vaibhave Agarwal wrote: How do u disable malloc debugging flags in the userland? I read somewhere that ln -s aj /etc/malloc.conf disables malloc debugging. How does it work? And how to disable verbose features in the kernel?

Re: FreeBSD 5/6/7 kernel emulator for NetBSD 2.x

2005-10-28 Thread Bill Studenmund
On Thu, Oct 27, 2005 at 04:53:35PM -0400, der Mouse wrote: - Implements FreeBSD's devfs on NetBSD. In the past, we (NetBSD folks) have talked about a devfs. [...persistence...] FreeBSD 5+ has /etc/devfs.conf and /etc/devfs.rules [...]. Is that what you're looking for? I didn't write

Re: Re: how to make the FreeBSD 6.0 run faster

2005-10-28 Thread ray
At 07:01 AM 10/28/2005 -0500, Sergey Babkin wrote: | From: Robert Watson [EMAIL PROTECTED] | On Thu, 27 Oct 2005, Vaibhave Agarwal wrote: | | How do u disable malloc debugging flags in the userland? I read | somewhere that ln -s aj /etc/malloc.conf disables malloc debugging. | How does it

Re: how to make the FreeBSD 6.0 run faster

2005-10-28 Thread Vasil Dimov
I would just like to add some numbers: system: freebsd 6.0 i386 job: make buildworld buildkernel When kernel and world are compiled with -g and witness,memguard,invariants are switched on the job takes 120min. With witness,memguard,invariants turned off it takes 66min. 1/3 More speedup when

compiling the kernel faster

2005-10-28 Thread Antoine Pelisse
You can set NOCLEAN in your environment. That will save you from having to rebuild things that didn't change. Major time saver if you're only working in a couple of files. It's NO_CLEAN actually, and for the kernel building, it's especially NO_KERNELCLEAN Antoine Pelisse -Glenn

Re: devinfo(3) problem...

2005-10-28 Thread John Baldwin
On Thursday 27 October 2005 11:34 am, M. Warner Losh wrote: In message: [EMAIL PROTECTED] Daniel Rudy [EMAIL PROTECTED] writes: : I analyzed the source code for devinfo(8) and used as an example of how : to use the devinfo(3) library. So I knew it transversed the device tree :

Re: Very slow writing to SATA disk

2005-10-28 Thread Peter Jeremy
On Fri, 2005-Oct-28 12:45:27 -0400, Mikhail Teterin wrote: No, just checked -- the hw.ata.wc is set to 1. Is there anything else to look at? That exhausts my ideas, sorry. Sören might be able to suggest something. According to smartctl, the drive runs at 56C during the copying. Its idle

Re: Very slow writing to SATA disk

2005-10-28 Thread Søren Schmidt
On 28/10/2005, at 22:48, Peter Jeremy wrote: On Fri, 2005-Oct-28 12:45:27 -0400, Mikhail Teterin wrote: No, just checked -- the hw.ata.wc is set to 1. Is there anything else to look at? That exhausts my ideas, sorry. Sören might be able to suggest something. Not really, however I have

Re: Very slow writing to SATA disk

2005-10-28 Thread Søren Schmidt
On 28/10/2005, at 23:45, Mikhail Teterin wrote: Indeed, 55C is way to high for 24/7 usage, and it might be that the drive is choking on it and barely is able to compensate. The reads are pretty quick... I'd like to be able to spin it down, but ataidle is broken :-( Ask the maintainer to

Re: Very slow writing to SATA disk

2005-10-28 Thread Søren Schmidt
On 29/10/2005, at 0:03, Mikhail Teterin wrote: Ask the maintainer to get it [ataidle -mi] fixed, but be warned experience says it might hose your data... The maintainer did not break it. An incompatible change to the API did :) You are, probably, in the best position to show us, how the

Re: Very slow writing to SATA disk

2005-10-28 Thread Søren Schmidt
On 29/10/2005, at 0:41, Mikhail Teterin wrote: Look in smartmontools I provided patches for that, its not rocket science you know... This attitude -- on top of the API change itself -- is not really encouraging for ISVs, you know :-) Sigh, ataidle is a hack and the author had no

Re: Very slow writing to SATA disk

2005-10-28 Thread Søren Schmidt
On 29/10/2005, at 1:09, Mikhail Teterin wrote: Hmm, that does sound as problems with that disk, or maybe disk vs diskcontroller. Any chance you could try the disk on something else ? I'll try... One other thing, how much mem do you have in there ? more than 4G and bounce buffering might

Re: Very slow writing to SATA disk

2005-10-28 Thread Scott Long
Søren Schmidt wrote: On 28/10/2005, at 23:45, Mikhail Teterin wrote: Indeed, 55C is way to high for 24/7 usage, and it might be that the drive is choking on it and barely is able to compensate. The reads are pretty quick... I'd like to be able to spin it down, but ataidle is broken :-(