Re: bce(4) and rx errors

2008-12-14 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi, Gents,

I have not yet talked this with David but it looks like this patch would
make it disappear.

Cheers,
- --
Xin LI http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAklE06IACgkQi+vbBBjt66DwjgCeJ1RO+gL3mu13zAzXpPsbDi/R
/BwAmQFAij74yusRq+KbcSNb3BMbLzNX
=1zx3
-END PGP SIGNATURE-
Index: if_bce.c
===
--- if_bce.c(revision 186076)
+++ if_bce.c(working copy)
@@ -7408,7 +7408,6 @@
(u_long) sc->stat_IfInMBUFDiscards +
(u_long) sc->stat_Dot3StatsAlignmentErrors +
(u_long) sc->stat_Dot3StatsFCSErrors +
-   (u_long) sc->stat_IfInFramesL2FilterDiscards +
(u_long) sc->stat_IfInRuleCheckerDiscards +
(u_long) sc->stat_IfInFTQDiscards +
(u_long) sc->com_no_buffers;
___
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: RELENG_7_1: bce driver change generating too much interrupts ?

2008-12-14 Thread Xin LI
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Mike Jakubik wrote:
> On Mon, December 8, 2008 5:22 pm, Mike Jakubik wrote:
>> On Mon, December 8, 2008 5:12 pm, Xin LI wrote:
>>
>>> Which version are you currently using?  My previous commit only fixes
>>> the excessive interrupt issue, I think this could be a different
>>> problem, I'm taking a look at the code to see if I can have something
>>> for you.
>> I was running on the version just prior to the latest interrupt commit. I
>> have now updated to the one with the interrupt fix. Will let you know if
>> things change.
>>
>> Thank You.
> 
> The interrupt rate has decreased significantly, however i am still having
> having problem with applications that hold stateful connections. The rx
> errors are also still showing, i suspect this is related to the problem.
> How can i roll back this driver to the last known good version?

Hi, Mike,

I think they are different problems.  Could you, please, give me
feedback about whether:

 - The old driver does not trigger the problem?

 - The patched driver restore all the old driver behavior?

=
Rationale for my patch.  To say it simply, it removes "Received L2
packets discarded" value from being counted from ierror.  In the past,
we count the following:

- Undersize packets
- Oversized packets
- Received packets discarded due to lack of controller buffer memory
- Alignment errors
- Frame check sequence errors

Now, it counts the following four stuff as well:

- Received L2 packets discarded ** removed
- Received packets discarded by rule
- Received packet FTQ discards
- Valid packets received but no RX buffers available

I have checked the old FreeBSD driver and the Linux driver, both have
the "Received L2 packets discarded" value increasing every second, so I
don't believe that this is a real problem.  I'll double check with David
to make sure about this.

Cheers,
- --
Xin LI http://www.delphij.net/
FreeBSD - The Power to Serve!
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAklE2JQACgkQi+vbBBjt66Bl0gCfZ6NVNXpC2ynUZjaZButg+4jo
vgYAnAzE2iFWcZMZ29j3qtpwQ5f0xh9V
=3l8f
-END PGP SIGNATURE-
Index: if_bce.c
===
--- if_bce.c(revision 186076)
+++ if_bce.c(working copy)
@@ -7408,7 +7408,6 @@
(u_long) sc->stat_IfInMBUFDiscards +
(u_long) sc->stat_Dot3StatsAlignmentErrors +
(u_long) sc->stat_Dot3StatsFCSErrors +
-   (u_long) sc->stat_IfInFramesL2FilterDiscards +
(u_long) sc->stat_IfInRuleCheckerDiscards +
(u_long) sc->stat_IfInFTQDiscards +
(u_long) sc->com_no_buffers;
___
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: ext2fuse: user-space ext2 implementation

2008-12-14 Thread Paul B. Mahol
On 12/14/08, Bruce M Simpson  wrote:
> Paul B. Mahol wrote:
>>> Can you please relay this feedback to the authors of ext2fuse?
>>>
>>> As mentioned earlier in the thread, the ext2fuse code could benefit from
>>> UBLIO-ization. Are you or any other volunteers happy to help out here?
>>>
>>
>> Well, first higher priority would be to fix existing bugs. It would be
>> very little
>> gain with user cache, because it is already too much IMHO slow and
>> adding user cache
>> will not make it faster, but that is not port problem.
>>
>
> I'm not aware of bugs with ext2fuse itself; my work on the port was
> merely to try to raise awareness that a user-space project for ext2
> filesystem access existed.
>
> Can you elaborate further on your experience with ext2fuse which seems
> to you to be buggy, i.e. symptoms, root cause analysis etc. ? Have you
> reported these to the author(s)?

I have read TODO.

> Have you measured the performance? Is the performance sufficient for the
> needs of an occasional desktop user?

Performance was not sufficient, and adding user cache will not improve access
speed on first read.
After mounting ext2fs volume (via md(4)) created with e2fsprogs port
and copying data
from ufs to ext2, reading was quite slow. Also ext2fuse after mount
doesnt exits it
is still running displaying debug data - explaining why project
itselfs is in alpha
state.

> I realise we are largely involved in content-free argument here, however
> the trade-off of ext2fuse vs ext2fs in the FreeBSD kernel source tree,
> is that of a hopefully more actively maintained implementation vs one
> which is not maintained at all, and any alternatives for FreeBSD users
> would be welcome.

Project itself doesnt look very active, but I may be wrong. It is in alpha state
as reported on SF.
IMHO it is better to maintain our own because it is in better shape, but I'm not
intersted in ext* as developer.

-- 
Paul
___
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: bce(4) and rx errors

2008-12-14 Thread Jeff Blank
On Sun, Dec 14, 2008 at 01:36:35AM -0800, Xin LI wrote:
> I have not yet talked this with David but it looks like this patch would
> make it disappear.

Applied to 7.1-RC1, and rx errors are gone.  Thank you!

Jeff
___
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"