Adam McDougall | 1 Dec 2010 01:34
Picon
Favicon

Re: Stale NFS file handles on 8.x amd64

On 11/30/10 09:33, John Baldwin wrote:
> On Monday, November 29, 2010 8:06:54 pm Adam McDougall wrote:
>> I've been running dovecot 1.1 on FreeBSD 7.x for a while with a bare
>> minimum of NFS problems, but it got worse with 8.x.  I have 2-4 servers
>> (usually just 2) accessing mail on a Netapp over NFSv3 via imapd.
>> delivery is via procmail which doesn't touch the dovecot metadata and
>> webmail uses imapd.  Client connections to imapd go to random servers
>> and I don't yet have solid means to keep certain users on certain
>> servers.  I upgraded some of the servers to 8.x and dovecot 1.2 and ran
>> into Stale NFS file handles causing index/uidlist corruption causing
>> inboxes to appear as empty when they were not.  In some situations their
>> corrupt index had to be deleted manually.  I first suspected dovecot 1.2
>> since it was upgraded at the same time but I downgraded to 1.1 and its
>> doing the same thing.  I don't really have a wealth of details to go on
>> yet and I usually stay quiet until I do, and half the time it is
>> difficult to reproduce myself so I've had to put it in production to get
>> a feel for progress.  This only happens a dozen or so times per weekday
>> but I feel the need to start taking bigger steps.  I'll probably do what
>> I can to get IMAP back on a stable base (7.x?) and also try to debug 8.x
>> on the remaining servers.  A binary search is within possibility if I
>> can reproduce the symptoms often enough even if I have to put a test
>> server in production for a few hours.
>
> There were some changes to allow more concurrency in the NFS client in 8 (and
> 7.2+) that caused ESTALE errors to occur on open(2) more frequently.  You can
> try setting 'vfs.lookup_shared=0' to disable the extra concurrency (but at a
> performance cost) as a workaround.  The most recent 7.x and 8.x have some
> changes to open(2) to minimize ESTALE errors that I think get it back to the
> same level as when lookup_shared is set to 0.
>
(Continue reading)

Adam McDougall | 1 Dec 2010 06:36
Picon
Favicon

Re: Stale NFS file handles on 8.x amd64

On 11/30/10 08:33, Rick Macklem wrote:
>> I've been running dovecot 1.1 on FreeBSD 7.x for a while with a bare
>> minimum of NFS problems, but it got worse with 8.x. I have 2-4 servers
>> (usually just 2) accessing mail on a Netapp over NFSv3 via imapd.
>> delivery is via procmail which doesn't touch the dovecot metadata and
>> webmail uses imapd. Client connections to imapd go to random servers
>> and I don't yet have solid means to keep certain users on certain
>> servers. I upgraded some of the servers to 8.x and dovecot 1.2 and ran
>> into Stale NFS file handles causing index/uidlist corruption causing
>> inboxes to appear as empty when they were not. In some situations
>> their
>> corrupt index had to be deleted manually. I first suspected dovecot
>> 1.2
>> since it was upgraded at the same time but I downgraded to 1.1 and its
>> doing the same thing. I don't really have a wealth of details to go on
>> yet and I usually stay quiet until I do, and half the time it is
>> difficult to reproduce myself so I've had to put it in production to
>> get
>> a feel for progress. This only happens a dozen or so times per weekday
>> but I feel the need to start taking bigger steps. I'll probably do
>> what
>> I can to get IMAP back on a stable base (7.x?) and also try to debug
>> 8.x
>> on the remaining servers. A binary search is within possibility if I
>> can reproduce the symptoms often enough even if I have to put a test
>> server in production for a few hours.
>>
>> Any tips on where we could start looking, or alterations I could try
>> making such as sysctls to return to older behavior? It might be worth
>> noting that I've seen a considerable increase in traffic from my mail
(Continue reading)

David Demelier | 1 Dec 2010 11:11
Picon
Gravatar

Re: ath0: lot of bad series hwrate and AH_SUPPORT_AR5416

On 30/11/2010 00:25, Adrian Chadd wrote:
> (I should get me an AR9285 to test with at some point.)
>
> On 29 November 2010 18:52, David DEMELIER<demelier.david <at> gmail.com>  wrote:
>
>> ath0: bad series3 hwrate 0x1b, tries 2 ts_status 0x0
>> ath0: bad series3 hwrate 0x1b, tries 2 ts_status 0x0
>> ath0: bad series3 hwrate 0x1b, tries 2 ts_status 0x0
>> ath0: bad series3 hwrate 0x1b, tries 2 ts_status 0x0
> That's ath_rate_sample saying "I don't know about that hardware rate",
> but it transmitted successfully!
> So something queued up a patcket at that hwrate. 0x1B is CCK_1MB_L -
> that should be fine in 11bg?
> Or is this somehow running in 11A mode? Would you please paste
> 'ifconfig wlan0' here?
markand <at> Melon ~ $ ifconfig wlan0
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
     ether c4:17:fe:c4:14:b9
     inet 130.79.183.186 netmask 0xfffffc00 broadcast 130.79.183.255
     media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
     status: associated
     ssid osiris-sec channel 11 (2462 MHz 11g) bssid 00:26:99:23:69:23
     regdomain 106 indoor ecm authmode WPA2/802.11i privacy ON
     deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7
     scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
     roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 102

>> I also don't understand why the option AH_SUPPORT_AR5416 is needed in
>> kernel, I found this
>> http://lists.freebsd.org/pipermail/freebsd-current/2009-May/006417.html
(Continue reading)

Adrian Chadd | 1 Dec 2010 12:08
Picon
Favicon

Re: ath0: lot of bad series hwrate and AH_SUPPORT_AR5416

On 1 December 2010 18:11, David Demelier <demelier.david <at> gmail.com> wrote:

>> Or is this somehow running in 11A mode? Would you please paste
>> 'ifconfig wlan0' here?
>
> markand <at> Melon ~ $ ifconfig wlan0
> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>    ether c4:17:fe:c4:14:b9
>    inet 130.79.183.186 netmask 0xfffffc00 broadcast 130.79.183.255
>    media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
>    status: associated
>    ssid osiris-sec channel 11 (2462 MHz 11g) bssid 00:26:99:23:69:23
>    regdomain 106 indoor ecm authmode WPA2/802.11i privacy ON
>    deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7
>    scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
>    roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 102

Ok, so it's in 11bg mode. I'd have to do some digging to try and
understand what's busted. CAn you please do this:

sysctl dev.ath.0.sample_stats=1

then look at dmesg; it'll dump the sample rate statistics out there.

Also, please create a PR for this. I'd like to squish any obvious bugs
here before I commit any new stuff. :)

Adrian
_______________________________________________
freebsd-stable <at> freebsd.org mailing list
(Continue reading)

David DEMELIER | 1 Dec 2010 12:15
Picon
Gravatar

Re: ath0: lot of bad series hwrate and AH_SUPPORT_AR5416

2010/12/1 Adrian Chadd <adrian <at> freebsd.org>:
> On 1 December 2010 18:11, David Demelier <demelier.david <at> gmail.com> wrote:
>
>
>>> Or is this somehow running in 11A mode? Would you please paste
>>> 'ifconfig wlan0' here?
>>
>> markand <at> Melon ~ $ ifconfig wlan0
>> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>    ether c4:17:fe:c4:14:b9
>>    inet 130.79.183.186 netmask 0xfffffc00 broadcast 130.79.183.255
>>    media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
>>    status: associated
>>    ssid osiris-sec channel 11 (2462 MHz 11g) bssid 00:26:99:23:69:23
>>    regdomain 106 indoor ecm authmode WPA2/802.11i privacy ON
>>    deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7
>>    scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
>>    roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 102
>
> Ok, so it's in 11bg mode. I'd have to do some digging to try and
> understand what's busted. CAn you please do this:
>
> sysctl dev.ath.0.sample_stats=1
>

Oww,

markand <at> Melon ~ $ sudo sysctl dev.ath.0.sample_stats=1
dev.ath.0.sample_stats: 0 -> 0

(Continue reading)

David DEMELIER | 1 Dec 2010 12:16
Picon
Gravatar

Re: ath0: lot of bad series hwrate and AH_SUPPORT_AR5416

2010/12/1 David DEMELIER <demelier.david <at> gmail.com>:
> 2010/12/1 Adrian Chadd <adrian <at> freebsd.org>:
>> On 1 December 2010 18:11, David Demelier <demelier.david <at> gmail.com> wrote:
>>
>>
>>>> Or is this somehow running in 11A mode? Would you please paste
>>>> 'ifconfig wlan0' here?
>>>
>>> markand <at> Melon ~ $ ifconfig wlan0
>>> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>>    ether c4:17:fe:c4:14:b9
>>>    inet 130.79.183.186 netmask 0xfffffc00 broadcast 130.79.183.255
>>>    media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
>>>    status: associated
>>>    ssid osiris-sec channel 11 (2462 MHz 11g) bssid 00:26:99:23:69:23
>>>    regdomain 106 indoor ecm authmode WPA2/802.11i privacy ON
>>>    deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7
>>>    scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
>>>    roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 102
>>
>> Ok, so it's in 11bg mode. I'd have to do some digging to try and
>> understand what's busted. CAn you please do this:
>>
>> sysctl dev.ath.0.sample_stats=1
>>
>
> Oww,
>
> markand <at> Melon ~ $ sudo sysctl dev.ath.0.sample_stats=1
> dev.ath.0.sample_stats: 0 -> 0
(Continue reading)

Adrian Chadd | 1 Dec 2010 15:37
Picon
Favicon

Re: ath0: lot of bad series hwrate and AH_SUPPORT_AR5416

Ok; please dump that into a PR and email me the PR number.

I'll go see whether there's something simple that can be done - eg,
whether that ratemask actually allows the rate being TX'ed and if it
doesn't, why the heck it's happening. :-)

Adrian

On 1 December 2010 19:16, David DEMELIER <demelier.david <at> gmail.com> wrote:
> 2010/12/1 David DEMELIER <demelier.david <at> gmail.com>:
>> 2010/12/1 Adrian Chadd <adrian <at> freebsd.org>:
>>> On 1 December 2010 18:11, David Demelier <demelier.david <at> gmail.com> wrote:
>>>
>>>
>>>>> Or is this somehow running in 11A mode? Would you please paste
>>>>> 'ifconfig wlan0' here?
>>>>
>>>> markand <at> Melon ~ $ ifconfig wlan0
>>>> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>>>    ether c4:17:fe:c4:14:b9
>>>>    inet 130.79.183.186 netmask 0xfffffc00 broadcast 130.79.183.255
>>>>    media: IEEE 802.11 Wireless Ethernet OFDM/36Mbps mode 11g
>>>>    status: associated
>>>>    ssid osiris-sec channel 11 (2462 MHz 11g) bssid 00:26:99:23:69:23
>>>>    regdomain 106 indoor ecm authmode WPA2/802.11i privacy ON
>>>>    deftxkey UNDEF TKIP 2:128-bit TKIP 3:128-bit txpower 20 bmiss 7
>>>>    scanvalid 450 bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7
>>>>    roam:rate 5 protmode CTS wme burst roaming MANUAL bintval 102
>>>
>>> Ok, so it's in 11bg mode. I'd have to do some digging to try and
(Continue reading)

Gareth de Vaux | 1 Dec 2010 18:53
Favicon

Re: FreeBSD Security Advisory FreeBSD-SA-10:10.openssl

On Mon 2010-11-29 (21:19), FreeBSD Security Advisories wrote:
> # cd /usr/src
> # patch < /path/to/patch
> # cd /usr/src/secure/lib/libssl
> # make obj && make depend && make && make install

Hi all, I'm following the instructions with:

# cvsup /etc/cvsup-src.conf
# rm -rf /usr/obj   
# cd /usr/src/secure/lib/libssl
# make obj && make depend && make

[ snip ]

cc -O -pipe  -DTERMIOS -DANSI_SOURCE -I/usr/src/secure/lib/libssl/../../../crypto/openssl
-I/usr/src/secure/lib/libssl/../../../crypto/openssl/crypto
-I/usr/obj/usr/src/secure/lib/libssl -DOPENSSL_THREADS -DDSO_DLFCN -DHAVE_DLFCN_H
-DOPENSSL_NO_IDEA -DL_ENDIAN -DNO_IDEA -std=gnu99 -fstack-protector  -c /usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/d1_both.c
/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/d1_both.c: In function 'dtls1_hm_fragment_new':
/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/d1_both.c:210: error: 'hm_fragment'
has no member named 'reassembly'

[ more hm_fragment.reassembly errors .. ]

*** Error code 1

Stop in /usr/src/secure/lib/libssl.

What's going on?
(Continue reading)

David DEMELIER | 1 Dec 2010 22:49
Picon
Gravatar

Re: 8.1-RELEASE: snd_hda works as module only, suspend/resume leaves display off

2010/11/15 Stefan Walter <stefan <at> freebsd.org>:
> Hi,
>
> I've been using 8.1-RELEASE on this desktop machine for a few months
> already, but only now found the time to look at a couple of problems with
> snd_hda and suspend/resume it still has. Maybe someone here has hints to
> fix them - I'd be grateful to hear them.
>
> Audio with snd_hda(4) works, but only if loaded as a module AND only if I
> load the module AFTER booting. If I compile it into the kernel or add
> snd_hda_load="YES" to /boot/loader.conf, dmesg shows the following:
>
> hdac0: HDA Codec #0: ATI RS690/780 HDMI
> pcm0: <HDA ATI RS690/780 HDMI PCM #0 HDMI> at cad 0 nid 1 on hdac0
> hdac1: HDA Codec #0: Realtek ALC885
> pcm1: <HDA Realtek ALC885 PCM #0 Analog> at cad 0 nid 1 on hdac1
> pcm2: <HDA Realtek ALC885 PCM #1 Analog> at cad 0 nid 1 on hdac1
> pcm3: <HDA Realtek ALC885 PCM #2 Digital> at cad 0 nid 1 on hdac1
>
> mixer(8) shows:
>
> Mixer vol      is currently set to  75:75
> Mixer pcm      is currently set to  75:75
>
> There is no audio in that case. Unloading and reloading the module (or
> just loading the module manually after the boot process) logs:
>
> hdac0: <ATI SB600 High Definition Audio Controller> mem 0xfe024000-0xfe027fff irq 16 at device 20.2 on pci0
> hdac0: HDA Driver Revision: 20100226_0142
> hdac0: [ITHREAD]
(Continue reading)


Gmane