newfs broken in -CURRENT after 204654

2010-03-08 Thread Jayachandran C.
On Thu, Mar 04, 2010 at 06:34:03PM +0530, C. Jayachandran wrote: I'm testing this on the mips platform, but I think there is an issue with change that made sectorsize int64_t, because the ioctl DIOCGSECTORSIZE used to read sector size seems to take u_int. This quick change fixes it for me

A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Eugeny N Dzhurinsky
Hello, all! Recently I've started to see the following logs in messages: Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Currently unreadable (pending) sectors Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Offline uncorrectable sectors smartctl did really show that

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Alexander Motin
Eugeny N Dzhurinsky wrote: Recently I've started to see the following logs in messages: Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Currently unreadable (pending) sectors Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Offline uncorrectable sectors smartctl

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Poul-Henning Kamp
In message 20100308102918.ga5...@localhost, Eugeny N Dzhurinsky writes: Now can I find out which file owns the LBAs 222342557 and 222342559 ? How do I force remapping of these sectors? I assume that I have to write something directly to the sectors? I would suggest you boot single-user and run

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Eugene Dzhurinsky
On Mon, Mar 08, 2010 at 12:31:24PM +0200, Alexander Motin wrote: You may try to overwrite these sectors with dd. It should trigger sector reallocation. To be sure, you may read them before and after the write. dd if=/dev/ad4 of=/dev/null skip=222342559 bs=512 count=1 dd: /dev/ad4: Input/output

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Eugene Dzhurinsky
On Mon, Mar 08, 2010 at 10:51:22AM +, Poul-Henning Kamp wrote: I would suggest you boot single-user and run mdmfs -s 1m md /tmp recoverdisk -w /tmp/_.wl /dev/ad4 /dev/ad4 That will find out how many bad sectors you have and try to recover the contents of them if possible,

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Eugene Dzhurinsky
On Mon, Mar 08, 2010 at 12:52:43PM +0200, Eugene Dzhurinsky wrote: dd if=/dev/ad4 of=/dev/null skip=222342559 bs=512 count=1 dd: /dev/ad4: Input/output error 0+0 records in 0+0 records out 0 bytes transferred in 2.351940 secs (0 bytes/sec) dd if=/dev/zero of=/dev/ad4 seek=222342559 bs=512

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Miroslav Lachman
Eugeny N Dzhurinsky wrote: Hello, all! Recently I've started to see the following logs in messages: Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Currently unreadable (pending) sectors Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Offline uncorrectable sectors

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Wes Morgan
On Mon, 8 Mar 2010, Miroslav Lachman wrote: Eugeny N Dzhurinsky wrote: Hello, all! Recently I've started to see the following logs in messages: Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Currently unreadable (pending) sectors Mar 8 12:00:24 localhost smartd[795]:

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Eugene Dzhurinsky
On Mon, Mar 08, 2010 at 12:21:44PM +0100, Miroslav Lachman wrote: Eugeny N Dzhurinsky wrote: We have this problem from time to time on bunch of machines. As we are using gmirror, the easiest way is to force re-synchronization (rewrite) of the whole drive. The problem is when there are

Re: newfs broken in -CURRENT after 204654

2010-03-08 Thread Gary Jennejohn
On Mon, 8 Mar 2010 14:17:17 +0530 Jayachandran C. c.jayachand...@gmail.com wrote: On Thu, Mar 04, 2010 at 06:34:03PM +0530, C. Jayachandran wrote: I'm testing this on the mips platform, but I think there is an issue with change that made sectorsize int64_t, because the ioctl

Re: newfs broken in -CURRENT after 204654

2010-03-08 Thread Poul-Henning Kamp
In message 20100308125643.1ac0b...@ernst.jennejohn.org, Gary Jennejohn writes : On Mon, 8 Mar 2010 14:17:17 +0530 I'm trying this one more time, since the issue is still unresolved. newfs(8) broke for big-endian systems since revision 204654. This change made sectorsize variable int64_t, and

Re: propose: all arch move into a separate dir

2010-03-08 Thread Garrett Wollman
In article 20100307.144736.420173476735197890@bsdimp.com, Warner Losh i...@bsdimp.com writes: We don't have quite as many problems as the NetBSD/OpenBSD crowd in this respect. They tend to define a new MACHIINE more often then we have (or will). The need for sys/arch is less severe here

Re: propose: all arch move into a separate dir

2010-03-08 Thread Poul-Henning Kamp
In message 201003080329.o283tqic011...@hergotha.csail.mit.edu, Garrett Wollma n writes: If we were talking about 100 architectures, I might feel differently, but in this universe, we have, what? eight? And there are how many architectures currently in mass production? This whole discussion is

Re: newfs broken in -CURRENT after 204654

2010-03-08 Thread Gary Jennejohn
On Mon, 08 Mar 2010 11:58:39 + Poul-Henning Kamp p...@phk.freebsd.dk wrote: In message 20100308125643.1ac0b...@ernst.jennejohn.org, Gary Jennejohn writes : On Mon, 8 Mar 2010 14:17:17 +0530 I'm trying this one more time, since the issue is still unresolved. newfs(8) broke for

Re: newfs broken in -CURRENT after 204654

2010-03-08 Thread Jayachandran C.
On Mon, Mar 08, 2010 at 11:58:39AM +, Poul-Henning Kamp wrote: In message 20100308125643.1ac0b...@ernst.jennejohn.org, Gary Jennejohn writes : On Mon, 8 Mar 2010 14:17:17 +0530 I'm trying this one more time, since the issue is still unresolved. newfs(8) broke for big-endian

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Miroslav Lachman
Eugene Dzhurinsky wrote: On Mon, Mar 08, 2010 at 12:21:44PM +0100, Miroslav Lachman wrote: Eugeny N Dzhurinsky wrote: We have this problem from time to time on bunch of machines. As we are using gmirror, the easiest way is to force re-synchronization (rewrite) of the whole drive. The problem is

Re: Removing USB keyboard after filesystems synced causes panic with destroyed mutex twa(4)?

2010-03-08 Thread Giovanni Trematerra
On Sun, Mar 7, 2010 at 11:24 AM, Garrett Cooper yanef...@gmail.com wrote: On Sun, Mar 7, 2010 at 2:07 AM, Garrett Cooper yanef...@gmail.com wrote: Hi Alexander and Hans,    I recently did the following which generated a panic on a 9-CURRENT kernel compiled on the 26th: 1. Executed reboot 2.

Re: dev.bce.X.com_no_buffers increasing and packet loss

2010-03-08 Thread Ian FREISLICH
Pyun YongHyeon wrote: On Fri, Mar 05, 2010 at 11:16:41PM +0200, Ian FREISLICH wrote: Pyun YongHyeon wrote: Thanks for the info. Frankly, I have no idea how to explain the issue given that you have no heavy load. How many cores would be involved in handling the traffic and runnig PF

Survey results very helpful, thanks! (was: Re: net.inet.tcp.timer_race: does anyone have a non-zero value?)

2010-03-08 Thread Robert Watson
On Sun, 7 Mar 2010, Robert Watson wrote: If your system shows a non-zero value, please send me a *private e-mail* with the output of that command, plus also the output of sysctl kern.smp, uptime, and a brief description of the workload and network interface configuration. For example: it's

Re: Wireless TCP aborts

2010-03-08 Thread Tim Kientzle
Luigi Rizzo wrote: On Sun, Mar 07, 2010 at 03:08:38PM -0800, Chuck Swiger wrote: Hi, Tim-- On Mar 7, 2010, at 2:16 PM, Tim Kientzle wrote: [ ... ] Corrupted MAC on input. Disconnecting: Packet corrupt rsync: connection unexpectedly closed ... [receiver] and then the rsync session is

Re: dev.bce.X.com_no_buffers increasing and packet loss

2010-03-08 Thread Pyun YongHyeon
On Mon, Mar 08, 2010 at 04:45:20PM +0200, Ian FREISLICH wrote: Pyun YongHyeon wrote: On Fri, Mar 05, 2010 at 11:16:41PM +0200, Ian FREISLICH wrote: Pyun YongHyeon wrote: Thanks for the info. Frankly, I have no idea how to explain the issue given that you have no heavy load.

Re: A tool for remapping bad sectors in CURRENT?

2010-03-08 Thread Alex Keda
08.03.2010 13:29, Eugeny N Dzhurinsky пишет: Hello, all! Recently I've started to see the following logs in messages: Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Currently unreadable (pending) sectors Mar 8 12:00:24 localhost smartd[795]: Device: /dev/ad4, 2 Offline

Re: Survey results very helpful, thanks! (was: Re: net.inet.tcp.timer_race: does anyone have a non-zero value?)

2010-03-08 Thread Doug Hardie
On 8 March 2010, at 06:53, Robert Watson wrote: On Sun, 7 Mar 2010, Robert Watson wrote: If your system shows a non-zero value, please send me a *private e-mail* with the output of that command, plus also the output of sysctl kern.smp, uptime, and a brief description of the workload

Re: Survey results very helpful, thanks! (was: Re: net.inet.tcp.timer_race: does anyone have a non-zero value?)

2010-03-08 Thread Robert Watson
On Mon, 8 Mar 2010, Doug Hardie wrote: I run a number of 4 core systems with em interfaces. These are production systems that are unmanned and located a long way from me. Under unusual conditions it can take up to 6 hours to get there. I have been waiting to switch to 8.0 because of the

Re: Survey results very helpful, thanks!

2010-03-08 Thread Karl Denninger
Doug Hardie wrote: On 8 March 2010, at 06:53, Robert Watson wrote: On Sun, 7 Mar 2010, Robert Watson wrote: If your system shows a non-zero value, please send me a *private e-mail* with the output of that command, plus also the output of sysctl kern.smp, uptime, and a brief

Re: Core i5 AES acceleration

2010-03-08 Thread Norikatsu Shigemura
Hi David. On Sun, 07 Mar 2010 09:59:07 -0800 David Ehrmann ehrm...@gmail.com wrote: I was thinking that if I did do it, I'd start with padlock as a base. It looks like there are maybe 6 new opcodes. Maybe we could ask the contributor of the Linux code (an Intel employee) if he'd be willing

Re: Core i5 AES acceleration

2010-03-08 Thread James R. Van Artsdalen
Norikatsu Shigemura wrote: According to http://en.wikipedia.org/wiki/AES-NI , we can get specification document: http://software.intel.com/file/20457 . I saw it, and consider that we can release under BSDL. Because of 'from specification'. That document is short on

Re: Core i5 AES acceleration

2010-03-08 Thread David Ehrmann
On Mon, Mar 8, 2010 at 4:10 PM, James R. Van Artsdalen james-freebsd-curr...@jrv.org wrote: When last I looked openssl did not use /dev/crypt - it's not clear how big the benefit would be from doing this if nothing that uses openssl wins. Geli uses the crypto framework.

Re: Problem with new bwn driver on -CURRENT

2010-03-08 Thread Weongyo Jeong
On Sun, Mar 07, 2010 at 12:05:43AM -0500, Joe Marcus Clarke wrote: On Fri, 2010-03-05 at 16:16 -0800, Weongyo Jeong wrote: On Fri, Mar 05, 2010 at 04:44:34PM -0500, Joe Marcus Clarke wrote: On 3/5/10 3:53 PM, Weongyo Jeong wrote: On Thu, Mar 04, 2010 at 12:12:02AM -0500, Joe Marcus