Re: SATA 6g 4-port non-RAID controller ?

2011-07-27 Thread Jan Mikkelsen
On 27/07/2011, at 8:12 PM, Jeremy Chadwick wrote:

> On Wed, Jul 27, 2011 at 10:38:36AM +0100, Tom Evans wrote:
>> On Tue, Jul 26, 2011 at 11:55 PM, Jeremy Chadwick
>>  wrote:
>>> 
>>> And before someone asks: in most cases you *cannot* use this card in a
>>> PCIe x16 connector on a motherboard. ??Most generic motherboard
>>> manufacturers at this point have special one-offs that assume their PCIe
>>> x16 slots are for video cards only. ??If you aren't sure, you'll need to
>>> ask your motherboard manufacturer/vendor if you can use a
>>> non-VGA-adapter in their PCIe x16 slot. ??Some Supermicro boards do have
>>> PCIe x16 slots that can be used by non-VGA adapters, but I haven't seen
>>> this on, say, Asus/Gigabyte/Dell/Intel motherboards.
>> 
>> Jeremy may not have seen PCI express x16 HBAs working on consumer
>> boards, but I have, plenty of times.
> 
> I'm glad -- people should probably start making a list, because the
> number of boards I've seen it not work in easily exceeds that of the
> times I HAVE seen it work.  :-)

Where did it fail?

>> I don't know why the FUD, but I have had no problems with an Intel
>> SASUC8I (LSI 1068 based) running on an Asus P5Q Pro, a simple consumer
>> P45 chipset. I'm not unique, many people have success doing this.
> 
> Once in a blue moon, an intelligent board manufacturer puts comments in
> their user manual to the effect of "the PCIe x16 slot is only to be used
> for VGA adapters and will not work with non-VGA cards", or vice-versa.
> Here's some hard evidence of my claim:
> 
> Supermicro X7SBA server-class motherboard user manual has the following
> line in it:
> 
> "Note: The Intel 3210 chipset does not support add-in graphics cards in
> the PCI-E interface provided by the Memory Controller Hub (MCH)."
> 
> So in that boards' case, the PCIe x16 slot (which only has PCIe x8 worth
> of lanes wired) will work with controller cards but not VGA adapters.
> 
> And here's another, for the X7DVL series boards:
> http://www.supermicro.com/support/faqs/faq.cfm?faq=10582
> 
> "This is a server board, and you cannot place a x8 or x16 VGA card on
> this board. Only onboard VGA is possible. If you need to place a VGA
> card please use X7DA(x) board".

Perhaps I'm being thick, but this says "a 16x slot on this board does not 
support a display card" not "a 16x slot on this board only supports a display 
card."

The examples you cite only support the "vice-versa" part of your claim, not the 
primary claim that 16x slots on some motherboards are only for display cards. 
Do you have a reference for that?

> 
> And up until last week I owned and used an Asus P5Q SE (P45-based with
> ICH10 SB) board, so I can refer you to the fact that the P5Q Pro user
> manual "hints" that the PCIe x16 slot is for graphics only but doesn't
> downright say that.

Did you try a non-graphics card in the slot to see what happened? Saying "The 
16x slot is where you put the graphics card" is probably not unreasonable for 
99% of the users of that board.

Regards,

Jan Mikkelsen___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: SATA 6g 4-port non-RAID controller ?

2011-07-27 Thread Jeremy Chadwick
On Thu, Jul 28, 2011 at 02:31:20AM +1000, Jan Mikkelsen wrote:
> On 27/07/2011, at 8:12 PM, Jeremy Chadwick wrote:
> 
> > On Wed, Jul 27, 2011 at 10:38:36AM +0100, Tom Evans wrote:
> >> On Tue, Jul 26, 2011 at 11:55 PM, Jeremy Chadwick
> >>  wrote:
> >>> 
> >>> And before someone asks: in most cases you *cannot* use this card in a
> >>> PCIe x16 connector on a motherboard. ??Most generic motherboard
> >>> manufacturers at this point have special one-offs that assume their PCIe
> >>> x16 slots are for video cards only. ??If you aren't sure, you'll need to
> >>> ask your motherboard manufacturer/vendor if you can use a
> >>> non-VGA-adapter in their PCIe x16 slot. ??Some Supermicro boards do have
> >>> PCIe x16 slots that can be used by non-VGA adapters, but I haven't seen
> >>> this on, say, Asus/Gigabyte/Dell/Intel motherboards.
> >> 
> >> Jeremy may not have seen PCI express x16 HBAs working on consumer
> >> boards, but I have, plenty of times.
> > 
> > I'm glad -- people should probably start making a list, because the
> > number of boards I've seen it not work in easily exceeds that of the
> > times I HAVE seen it work.  :-)
> 
> Where did it fail?

Nothing visible from the BIOS; not talking about POST, I'm talking about
after power-on the system would spin up its fans and sit there.

> >> I don't know why the FUD, but I have had no problems with an Intel
> >> SASUC8I (LSI 1068 based) running on an Asus P5Q Pro, a simple consumer
> >> P45 chipset. I'm not unique, many people have success doing this.
> > 
> > Once in a blue moon, an intelligent board manufacturer puts comments in
> > their user manual to the effect of "the PCIe x16 slot is only to be used
> > for VGA adapters and will not work with non-VGA cards", or vice-versa.
> > Here's some hard evidence of my claim:
> > 
> > Supermicro X7SBA server-class motherboard user manual has the following
> > line in it:
> > 
> > "Note: The Intel 3210 chipset does not support add-in graphics cards in
> > the PCI-E interface provided by the Memory Controller Hub (MCH)."
> > 
> > So in that boards' case, the PCIe x16 slot (which only has PCIe x8 worth
> > of lanes wired) will work with controller cards but not VGA adapters.
> > 
> > And here's another, for the X7DVL series boards:
> > http://www.supermicro.com/support/faqs/faq.cfm?faq=10582
> > 
> > "This is a server board, and you cannot place a x8 or x16 VGA card on
> > this board. Only onboard VGA is possible. If you need to place a VGA
> > card please use X7DA(x) board".
> 
> Perhaps I'm being thick, but this says "a 16x slot on this board does not 
> support a display card" not "a 16x slot on this board only supports a display 
> card."
>
> The examples you cite only support the "vice-versa" part of your claim, not 
> the primary claim that 16x slots on some motherboards are only for display 
> cards. Do you have a reference for that?

You're not being thick.  I'm simply using what's in the manual as a
hard, validated example that the *type* of card that goes into a PCIe
x16 slot can matter, and that some types are compatible while others are
not.

I cannot find you a hard documented reference for my claims right now,
so you can consider them lies/FUD/whatever for the time being, that's
fine by me at this point.

I can find you examples on Google of people who invested in Areca
ARC-1220 cards (PCIe x8) only to find out that when inserted into one of
their two PCIe x16 slots the mainboard wouldn't start (see above).  I can
also find you examples on Google of people with Intel 915GM chipsets
whose user manuals explicitly state the PCIe x16 slot on their board is
"intended for use with graphics cards only".

> > And up until last week I owned and used an Asus P5Q SE (P45-based with
> > ICH10 SB) board, so I can refer you to the fact that the P5Q Pro user
> > manual "hints" that the PCIe x16 slot is for graphics only but doesn't
> > downright say that.
> 
> Did you try a non-graphics card in the slot to see what happened? Saying "The 
> 16x slot is where you put the graphics card" is probably not unreasonable for 
> 99% of the users of that board.

No I did not.  Let's recap my point because this will be my last reply
on the matter:

If your motherboard only has PCIe x16 slot(s) available in it, and the
user manual doesn't say anything about the slot(s) being usable for
non-graphics purposes, BEFORE shoving a non-VGA card in the slot, be
sure to consult your user manual and the motherboard vendor to ensure
the card will work.

The assumption within the industry appears to be that PCIe x16 is
"intended for VGA adapters", even though on an engineering level we all
know there's no reason (other than design limitations of the board or
chipsets) that non-VGA adapters can't be used.  I can't explain to you
how or why this limitation would come into play, but it obviously can,
as the Supermicro board examples I provided are hard evidence of some
boards and configurations discriminating based on what type of card goes

Re: Sleeping thread owns a nonsleepable lock panic (& lor)

2011-07-27 Thread Kostik Belousov
On Tue, Jul 26, 2011 at 07:12:23PM -0400, Rick Macklem wrote:
> Kostik Belousov wrote:
> > On Tue, Jul 26, 2011 at 01:17:52PM +0200, Herve Boulouis wrote:
> > > Le 26/07/2011 12:06, Kostik Belousov a Иcrit:
> > > > On Tue, Jul 26, 2011 at 11:49:13AM +0200, Herve Boulouis wrote:
> > > > > Le 25/07/2011 11:59, Kostik Belousov a ?crit:
> > > > >
> > > > > Ok the patched server crashed this morning strangely : all httpd
> > > > > processes were stuck in nfs or vmopar
> > > > > and were unkillable. Below is the full ps.
> > > >
> > > > Please see the
> > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-deadlocks.html
> > > > for information required to debug the deadlocks.
> > >
> > > the box was not stricly deadlocked since I was able to interact with
> > > it but I suppose you want me to
> > > break into debugger when the symptoms appears again and report all
> > > the commands listed in the handbook
> > > deadlock section ?
> > 
> > Exactly.
> > 
> > I think everything was hung that accessed an nfs mount point.
> > From the usermode, procstat -kk could catch some interesting
> > information,
> > but it is redundant if ddb output is captured.
> 
> Would it be worth considering reverting r223054?
> (Note that I don't understand the VM side, so this may be completely
>  wrong:-)
> 
> The sleeps on vmopar could be happening because a dirty page is busy
> and r223054 changes the VM_PAGER_xx value set a couple of ways.
> 1 - When it returns VM_PAGER_ERROR instead of VM_PAGER_AGAIN, the
> return value of "runlen" from vm_pageout_flush() changes.
> 2 - I'm not sure, but I think the pre-r223054 code marked a partially
> written page as VM_PAGER_OK instead of VM_PAGER_AGAIN?
> (I'm wondering about this one, since the problem seems to happen
>  when the file's size has been truncated.)
> 
> Herve Boulouis, if you want to see what r223054 changes, just go to
>   http://svn.freebsd.org/viewvc/stable/8/sys/nfsclient
>   and then click on nfs_bio.c.
>   (The changes are small and could easily be reverted with a manual
>edit.)
> 
> Since r223054 went into stable/8 on Jun 13, it seems a possible
> explanation? rick

I doubt it. The ps output makes it not very inplausible that the
reporter got the LOR between vnode lock and page busy flag. The correct
order is vnode lock -> busy bit. vmopar is a wait for the busy page
state.

Mentioned revision does not change the lock order.

Anyway, this is only a speculation, until the requested data is provided.


pgpN7hsFvpj0G.pgp
Description: PGP signature


dtrace/mysqld

2011-07-27 Thread Alex Samorukov
If anyone interested - i was able to compile dtrace support in 
mysql-server55 port. During this i found a bug in dtrace/bsd - if it is 
running more then 1 time on the same object (this is the case for 
mysqld) then object is broken. I was able to do workaround (with 
preserving original object and then copying it) and then everything 
compiled and started correctly.


This is an example:


bsd# ./work/mysql-5.5.14/support-files/dtrace/query-time.d
dtrace: buffer size lowered to 2m
Who  Database 
QueryTime(ms)
root@localhost   mysqlselect sleep(1) from user 
limit 11000
root@localhost   mysqlselect * from user limit 
1   0


I will try to cleanup my patches (its currently very dirty hacks) and 
submit them to the mysql bugtracker (and port). Feel free to contact me 
if you want to test this (or to fix dtrace/obects bug).

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: SATA 6g 4-port non-RAID controller ?

2011-07-27 Thread Jeremy Chadwick
On Wed, Jul 27, 2011 at 10:38:36AM +0100, Tom Evans wrote:
> On Tue, Jul 26, 2011 at 11:55 PM, Jeremy Chadwick
>  wrote:
> >
> > And before someone asks: in most cases you *cannot* use this card in a
> > PCIe x16 connector on a motherboard. ??Most generic motherboard
> > manufacturers at this point have special one-offs that assume their PCIe
> > x16 slots are for video cards only. ??If you aren't sure, you'll need to
> > ask your motherboard manufacturer/vendor if you can use a
> > non-VGA-adapter in their PCIe x16 slot. ??Some Supermicro boards do have
> > PCIe x16 slots that can be used by non-VGA adapters, but I haven't seen
> > this on, say, Asus/Gigabyte/Dell/Intel motherboards.
> 
> Jeremy may not have seen PCI express x16 HBAs working on consumer
> boards, but I have, plenty of times.

I'm glad -- people should probably start making a list, because the
number of boards I've seen it not work in easily exceeds that of the
times I HAVE seen it work.  :-)

> I don't know why the FUD, but I have had no problems with an Intel
> SASUC8I (LSI 1068 based) running on an Asus P5Q Pro, a simple consumer
> P45 chipset. I'm not unique, many people have success doing this.

Once in a blue moon, an intelligent board manufacturer puts comments in
their user manual to the effect of "the PCIe x16 slot is only to be used
for VGA adapters and will not work with non-VGA cards", or vice-versa.
Here's some hard evidence of my claim:

Supermicro X7SBA server-class motherboard user manual has the following
line in it:

"Note: The Intel 3210 chipset does not support add-in graphics cards in
the PCI-E interface provided by the Memory Controller Hub (MCH)."

So in that boards' case, the PCIe x16 slot (which only has PCIe x8 worth
of lanes wired) will work with controller cards but not VGA adapters.

And here's another, for the X7DVL series boards:
http://www.supermicro.com/support/faqs/faq.cfm?faq=10582

"This is a server board, and you cannot place a x8 or x16 VGA card on
this board. Only onboard VGA is possible. If you need to place a VGA
card please use X7DA(x) board".

And up until last week I owned and used an Asus P5Q SE (P45-based with
ICH10 SB) board, so I can refer you to the fact that the P5Q Pro user
manual "hints" that the PCIe x16 slot is for graphics only but doesn't
downright say that.

TL;DR -- it varies from board to board, ask your motherboard
manufacturer whether or not it'll work *before* just jamming a card in
there.

-- 
| Jeremy Chadwickjdc at parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator   Mountain View, CA, US |
| Making life hard for others since 1977.   PGP 4BD6C0CB |

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: SATA 6g 4-port non-RAID controller ?

2011-07-27 Thread Pete French
> Jeremy may not have seen PCI express x16 HBAs working on consumer
> boards, but I have, plenty of times.

Ditto. Indeed, I wasn't aware you could do anything to a PCIe slot
to prevent it working. Have seen motherboards which wont *boot* from
an HBA in a PCIe slot, but never one which couldnt use the card when
plugged in.

I generaly use MSI boards, and all of tose have taken PCIe controllers
quite hapily - inclduing booting off HP/Compaq SMART RAID controllers which
do have a reputation for being fussy outside of HP machines. Am currently
using a variets of Silicon Image based eSATA controllers on the same
motherboards.

-pete.

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: SATA 6g 4-port non-RAID controller ?

2011-07-27 Thread Tom Evans
On Tue, Jul 26, 2011 at 11:55 PM, Jeremy Chadwick
 wrote:
>
> And before someone asks: in most cases you *cannot* use this card in a
> PCIe x16 connector on a motherboard.  Most generic motherboard
> manufacturers at this point have special one-offs that assume their PCIe
> x16 slots are for video cards only.  If you aren't sure, you'll need to
> ask your motherboard manufacturer/vendor if you can use a
> non-VGA-adapter in their PCIe x16 slot.  Some Supermicro boards do have
> PCIe x16 slots that can be used by non-VGA adapters, but I haven't seen
> this on, say, Asus/Gigabyte/Dell/Intel motherboards.
>

Jeremy may not have seen PCI express x16 HBAs working on consumer
boards, but I have, plenty of times.

I don't know why the FUD, but I have had no problems with an Intel
SASUC8I (LSI 1068 based) running on an Asus P5Q Pro, a simple consumer
P45 chipset. I'm not unique, many people have success doing this.


Cheers

Tom
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"