Atomic operations across multiple processors

2006-01-12 Thread Peter Jeremy
atomic(9) states: The current set of atomic operations do not necessarily guarantee atomic- ity across multiple processors. ... On the i386 architecture, the cache coherency model requires that the hardware perform this task, thus the atomic operations are atomic across multiple processors.

Re: rescheduling tasks using swi_add()

2006-01-12 Thread kamal kc
--- kamal kc <[EMAIL PROTECTED]> wrote: > > > > Queue a task to a taskqueue. Behind the scenes > that > > will invoke a swi_add if > > you use the taskqueue_swi queue. However, given > > that you want to do some > > rather complicated work, you'd be better off > > creating a dedicated taskq

increasing dd disk to disk transfer rate

2006-01-12 Thread Christoph Kukulies
My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop read errors. I have FreeBSD and Win XP on that disk. Although FreeBSD ist still working , the errors in the Windows partition are causing Windows do ask for a filesystem check nearly everytime I reboot the computer. One time th

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Matthew D. Fuller
On Thu, Jan 12, 2006 at 10:48:38AM +0100 I heard the voice of Christoph Kukulies, and lo! it spake thus: > > dd if=/dev/ad2 of=/dev/ad3 conv=noerror Give it a bigger blocksize (say, bs=1m or so) and it'll go a **LOT** faster. > My motherboard is an ASUS P4S8X with an on board promise controller

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Eric Anderson
Christoph Kukulies wrote: My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop read errors. I have FreeBSD and Win XP on that disk. Although FreeBSD ist still working , the errors in the Windows partition are causing Windows do ask for a filesystem check nearly everytime I rebo

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Ivan Voras
Christoph Kukulies wrote: Anyway, I decided to buy a second identical hard disk and tried to block by block copy the old disk to the new one using dd if=/dev/ad2 of=/dev/ad3 conv=noerror The process is running now since yesterday evening and it is at 53 MB at a transfer rate of about 1.1 MB/s.

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Gilbert Fernandes
> My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to > develop read errors. Since you are using a modern disk, you should check your smart counters. I know how to do it on NetBSD, and I believe the command is also available on FreeBSD. First, you have to turn on the smart (S.M.A.R.T.) s

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Dan Nelson
In the last episode (Jan 12), Christoph Kukulies said: > My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop > read errors. I have FreeBSD and Win XP on that disk. Although FreeBSD > ist still working , the errors in the Windows partition are causing > Windows do ask for a filesys

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Bakul Shah
> In the last episode (Jan 12), Christoph Kukulies said: > > My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop > > read errors. I have FreeBSD and Win XP on that disk. Although FreeBSD > > ist still working , the errors in the Windows partition are causing > > Windows do ask for

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Ivan Voras
Bakul Shah wrote: In the last episode (Jan 12), Christoph Kukulies said: dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k So now on the new disk he has files with random blocks of zeroes and *no* error indication of which files are so trashed. This is asking for trouble. Si

Re: Ricoh PCI to SD device?

2006-01-12 Thread Clifton Royston
On Thu, Jan 12, 2006 at 12:00:31PM +, [EMAIL PROTECTED] wrote: > Date: Wed, 11 Jan 2006 10:32:16 -0800 > From: "Darren Pilgrim" <[EMAIL PROTECTED]> > Subject: RE: Ricoh PCI to SD device? > To: "'M. Warner Losh'" <[EMAIL PROTECTED]> > Cc: freebsd-hackers@freebsd.org > > From: M. Warner Losh [ma

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Bakul Shah
> Bakul Shah wrote: > >>In the last episode (Jan 12), Christoph Kukulies said: > > >>dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k > > > > > > So now on the new disk he has files with random blocks of > > zeroes and *no* error indication of which files are so > > trashed. This

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Eric Anderson
Bakul Shah wrote: Bakul Shah wrote: In the last episode (Jan 12), Christoph Kukulies said: dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k So now on the new disk he has files with random blocks of zeroes and *no* error indication of which files are so tr

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Bakul Shah
> I think after the dd is done, fsck should be run against the affected > filesystems, which should take care of most of the issues. For metadata yes, but not for normal file data. He wouldn't even know what got trashed. > The OP's question was how to make dd faster, not really how to get the

Re: Atomic operations across multiple processors

2006-01-12 Thread John Baldwin
On Thursday 12 January 2006 03:52 am, Peter Jeremy wrote: > atomic(9) states: > The current set of atomic operations do not necessarily guarantee atomic- > ity across multiple processors. ... On the i386 architecture, the cache > coherency model requires that the hardware perform this task, th

Re: rescheduling tasks using swi_add()

2006-01-12 Thread John Baldwin
On Thursday 12 January 2006 06:19 am, kamal kc wrote: > --- kamal kc <[EMAIL PROTECTED]> wrote: > > > Queue a task to a taskqueue. Behind the scenes > > > > that > > > > > will invoke a swi_add if > > > you use the taskqueue_swi queue. However, given > > > that you want to do some > > > rather co

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Peter Jeremy
On Thu, 2006-Jan-12 10:48:38 +0100, Christoph Kukulies wrote: >dd if=/dev/ad2 of=/dev/ad3 conv=noerror > >The process is running now since yesterday evening and it is at 53 MB >at a transfer rate of about 1.1 MB/s. > >In case the the result being unusable I would like to find a way to make this >co

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Martin Cracauer
Moin moin, wie geht's :-) Christoph Kukulies wrote on Thu, Jan 12, 2006 at 10:48:38AM +0100: > > My notebooks' hard disk, a Hitachi Travelstar 80 GB starts to develop read > errors. I have FreeBSD and Win XP on that disk. Although FreeBSD ist still > working , the errors in the Windows partition

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Kenneth D. Merry
On Fri, Jan 13, 2006 at 08:13:00 +1100, Peter Jeremy wrote: > On Thu, 2006-Jan-12 10:48:38 +0100, Christoph Kukulies wrote: > >dd if=/dev/ad2 of=/dev/ad3 conv=noerror > > > >The process is running now since yesterday evening and it is at 53 MB > >at a transfer rate of about 1.1 MB/s. > > > >In case

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread John-Mark Gurney
Ivan Voras wrote this message on Thu, Jan 12, 2006 at 18:48 +0100: > Bakul Shah wrote: > >>In the last episode (Jan 12), Christoph Kukulies said: > > >>dd if=/dev/ad2 conv=noerror,sync bs=64k | dd of=/dev/ad3 bs=64k > > > > > >So now on the new disk he has files with random blocks of > >zeroes and

Re: increasing dd disk to disk transfer rate

2006-01-12 Thread Nicolas Rachinsky
* Peter Jeremy <[EMAIL PROTECTED]> [2006-01-13 08:13 +1100]: > Note that whilst increasing the DD blocksize will speed up the > transfer, it will also increase the amount of collateral damage when a > hard error occurs. If you rummage around the ports or tools tree, > you'll find a utility (its na

RE: Ricoh PCI to SD device?

2006-01-12 Thread Darren Pilgrim
From: Clifton Royston > > If that NDA says some fairly typical things, and if the FreeBSD > organization (or any individual developer) poneys up the money for the > standard and signs the associated NDA, then either that developer or > the FreeBSD group as a whole might then be permanently barre

How priority propagation works on read/write lock?

2006-01-12 Thread prime
Hi hackers, I have a question about how priority propagation works on read/write lock.On locks that have only one owner at a determinate moment,we can simply propagate the priority to the owner of lock,but read/write lock may have many owners at some time,so how can we know who are the owners?

Re: rescheduling tasks using swi_add()

2006-01-12 Thread kamal kc
--- John Baldwin <[EMAIL PROTECTED]> wrote: > On Thursday 12 January 2006 06:19 am, kamal kc > wrote: > > --- kamal kc <[EMAIL PROTECTED]> wrote: > > > > Queue a task to a taskqueue. Behind the > scenes > > > > > > that > > > > > > > will invoke a swi_add if > > > > you use the taskqueue_swi qu