Send freebsd-current mailing list submissions to
	freebsd-current@freebsd.org

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.freebsd.org/mailman/listinfo/freebsd-current
or, via email, send a message with subject or body 'help' to
	freebsd-current-request@freebsd.org

You can reach the person managing the list at
	freebsd-current-owner@freebsd.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of freebsd-current digest..."


Today's Topics:

   1. Re: Atomic operations on i386/amd64 (Scott Long)
   2. txcsum seems  not working with  my 3com 3c905 TX (Martin MATO)
   3. Re: txcsum seems  not working with  my 3com 3c905 TX (Max Laier)
   4. Re: panic: mutex inp not owned at
      /usr/src/sys/netinet/tcp_output.c:140 (Jun Kuriyama)
   5. Re: NFS over IPv6 (Jun Kuriyama)
   6. Re: /dev/vga (Ying-Chieh Liao)
   7. Re: Atomic operations on i386/amd64 (Bruce M Simpson)
   8. Re: Vinum status (Paul Mather)


----------------------------------------------------------------------

Message: 1
Date: Thu, 05 Aug 2004 16:15:32 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: Atomic operations on i386/amd64
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <4112B184.8010303@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

John Baldwin wrote:
> On Thursday 05 August 2004 01:04 am, Tim Robbins wrote:
> 
>>Is there any particular reason why atomic_load_acq_*() and
>>atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of
>>MOV on i386/amd64 UP?
> 
> 
> Actually, using mov instead of lock xchg for store_rel reduced performance in 
> some benchmarks Scott ran on an SMP machine, I'm guessing due to the higher 
> latency of locks becoming available to other CPUs.  I'm still waiting for 
> benchmark results on UP to see if the change should be made under #ifndef SMP 
> or some such.
> 
> 
>>Also, could we use MFENCE/LFENCE/SFENCE in combination with MOV on
>>SMP systems instead of LOCK CMPXCHG / (implied LOCK) XCHG?
> 
> 
> MFENCE and LFENCE only exist on the P4.  SFENCE only exists on P3+, so to do 
> so you'd lose the ability to run on PII's and earlier.  Also, if you use more 
> than SFENCE you lose PIII's.  Note that amd64 could probably be changed 
> though since they might all have fences, in which case that might be 
> something to benchmark on both UP and SMP to see what kind of difference it 
> makes.
> 

We always have the ability to define PENTIUM2_CPU, PENTIUM3_CPU, and 
PENTIUM4_CPU cpu types in the kernel and then ifdef the code
appropriately (and ship with the lowest common denominator like we do
for I386/I486/I586/I686.)

Scott

------------------------------

Message: 2
Date: Fri, 06 Aug 2004 00:24:19 +0200
From: Martin MATO <martin.mato@wanadoo.fr>
Subject: txcsum seems  not working with  my 3com 3c905 TX
To: freebsd-current@freebsd.org
Message-ID: <4112B393.6020603@wanadoo.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

hayes# ifconfig xl0
xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=9<RXCSUM,VLAN_MTU>
        inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
        inet6 fe80::250:daff:fe42:fc480c3800l0 prefixlen 64 scopeid 0x1
        ether 00:50:da:42:0f:c4
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active


the tx checksum offloading is not  enabled y default at boot and :
ifconfig xl0 txcsum 
give me this message:

hayes# ifconfig xl0 txcsum
ifconfig: txcsum: Invalid argument


nota: the rxcsum and -rxcsum  flags are working, and -txcsum  has no 
error messages


any ideas?

------------------------------

Message: 3
Date: Fri, 6 Aug 2004 00:35:40 +0200
From: Max Laier <max@love2party.net>
Subject: Re: txcsum seems  not working with  my 3com 3c905 TX
To: freebsd-current@freebsd.org, martin.mato@wanadoo.fr
Message-ID: <200408060035.47409.max@love2party.net>
Content-Type: text/plain; charset="iso-8859-1"

On Friday 06 August 2004 00:24, Martin MATO wrote:
> hayes# ifconfig xl0
> xl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         options=9<RXCSUM,VLAN_MTU>
>         inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
>         inet6 fe80::250:daff:fe42:fc480c3800l0 prefixlen 64 scopeid 0x1
>         ether 00:50:da:42:0f:c4
>         media: Ethernet autoselect (100baseTX <full-duplex>)
>         status: active
>
>
> the tx checksum offloading is not  enabled y default at boot and :
> ifconfig xl0 txcsum
> give me this message:
>
> hayes# ifconfig xl0 txcsum
> ifconfig: txcsum: Invalid argument
>
>
> nota: the rxcsum and -rxcsum  flags are working, and -txcsum  has no
> error messages
>
>
> any ideas?

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/pci/if_xl.c#rev1.168 :
"Disable hardware TX checksumming for 3c905 series chips, as we have
solid reports that it is buggy *and* that it slows down transmit speed."

-- 
/"\  Best regards,			| mlaier@freebsd.org
\ /  Max Laier				| ICQ #67774661
 X   http://pf4freebsd.love2party.net/	| mlaier@EFnet
/ \  ASCII Ribbon Campaign		| Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/a4631a9e/attachment-0001.bin

------------------------------

Message: 4
Date: Fri, 06 Aug 2004 09:55:08 +0900
From: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Subject: Re: panic: mutex inp not owned at
	/usr/src/sys/netinet/tcp_output.c:140
To: Robert Watson <rwatson@FreeBSD.org>
Cc: Current <freebsd-current@FreeBSD.org>
Message-ID: <7mr7qlm6fn.wl@black.imgsrc.co.jp>
Content-Type: text/plain; charset=US-ASCII


I rebooted with your patch, and it lives over an hour.  Just FYI.

BTW, can this console message help you?

I'm testing NFS over IPv6 again, but it looks Alfred did not fix yet...

-----
suser: thread 0xc06d5fe0 (0 swapper) != curthread 0xc34bd6e0 (37 swi5: clock sio)
KDB: stack backtrace:
kdb_backtrace(c0677dd1,c06d5fe0,0,c06d5f6c,c34bd6e0,25,c34bcd70) at kdb_backtrace+0x29
suser(c06d5fe0) at suser+0x4f
udp6_output(c3af37bc,c49c7300,0,0,c06d5fe0) at udp6_output+0x5b
udp6_send(c3d83c58,0,c49c7300,0,0) at udp6_send+0x168
nfs_timer(0) at nfs_timer+0x212
softclock(0) at softclock+0x17a
ithread_loop(c345fc00,de94ed48,c345fc00,c04dcecc,0) at ithread_loop+0x124
fork_exit(c04dcecc,c345fc00,de94ed48) at fork_exit+0xa4
fork_trampoline() at fork_trampoline+0x8
-----


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

------------------------------

Message: 5
Date: Fri, 06 Aug 2004 09:57:27 +0900
From: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Subject: Re: NFS over IPv6
To: Alfred Perlstein <alfred@freebsd.org>
Cc: Jun Kuriyama <kuriyama@imgsrc.co.jp>
Message-ID: <7mpt65m6bs.wl@black.imgsrc.co.jp>
Content-Type: text/plain; charset=US-ASCII

At Wed, 14 Jul 2004 08:46:47 -0700,
Alfred Perlstein wrote:
> > At Tue, 13 Jul 2004 14:10:29 -0700,
> > Alfred Perlstein wrote:
> > > Are you still experiencing this problem with today's kernel?
> > 
> > I've checked with 2004.07.13.07.10.00 kernel (with simokawa's dcons
> > fix), but problem is still exist.
> > 
> > I tried with your vfs.nfs.reconnects sysctl statistics, and it's value
> > is incremented in every seconds during trying to save a file on NFS.
> 
> Ok, I'll have a patch for you soon.  I don't understand why an NFS
> RPC is taking forever though.

Any news about this?  Should we back out relevant changes before code
freeze?


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

------------------------------

Message: 6
Date: Fri, 6 Aug 2004 09:58:00 +0800
From: Ying-Chieh Liao <ijliao@FreeBSD.org>
Subject: Re: /dev/vga
To: Gleb Smirnoff <glebius@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040806015800.GA35894@freebsd.csie.nctu.edu.tw>
Content-Type: text/plain; charset="big5"

On �|,  8 05, 2004 at 18:42:06 +0400, Gleb Smirnoff wrote:
> On Thu, Aug 05, 2004 at 12:59:30AM +0100, Paul Richards wrote:
> P> I can't start X anymore it complains about being unable to mmap
> P> /dev/vga.
> I have /dev/io and /dev/mem disappered in today's CURRENT :)

me too
add "device io" in kernel config helps me create /dev/io
add "link ttyv0 vga" helps me create /dev/vga
but I still dont have /dev/mem
and X.org complains about "cannot mmap /dev/vga"
-- 
The sooner you start to code, the longer the program will take.
					--- Roy Carlson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040806/09b9d7ef/attachment-0001.bin

------------------------------

Message: 7
Date: Thu, 5 Aug 2004 19:30:55 -0700
From: Bruce M Simpson <bms@spc.org>
Subject: Re: Atomic operations on i386/amd64
To: John Baldwin <jhb@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040806023055.GC20148@empiric.icir.org>
Content-Type: text/plain; charset=us-ascii

On Thu, Aug 05, 2004 at 04:15:32PM -0600, Scott Long wrote:
> >>Is there any particular reason why atomic_load_acq_*() and
> >>atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of
> >>MOV on i386/amd64 UP?

Have a look at Linux. They ended up doing a runtime self-modifying kernel
hack so they could ship generic kernels which used the appropriate locking
instructions on each x86 family CPU.

BMS

------------------------------

Message: 8
Date: Thu, 05 Aug 2004 23:06:16 -0400
From: Paul Mather <paul@gromit.dlib.vt.edu>
Subject: Re: Vinum status
To: Craig Boston <craig@xfoil.gank.org>
Cc: freebsd-current@FreeBSD.org
Message-ID: <1091761575.860.22.camel@zappa.Chelsea-Ct.Org>
Content-Type: text/plain

On Thu, 2004-08-05 at 17:20, Craig Boston wrote:

> FWIW, root-on-gvinum seems to be working on my test server here.
> Swapping over it also passes basic stress testing (dd from zero to null
> with very large block sizes).

I've been using root-on-gvinum on my system for the past couple of days
(I switched over entirely once I discovered the "missing plexes during
boot" was no longer an issue).  I've found it to be reliable---even in
the face of one or two lockups (which were nvidia.ko, not gvinum,
related).  I've been stressing it, too (which is fairly easy on my
Pentium II-300 setup:).

The only time I've had a problem is when I last built a kernel (today,
actually) and forgot to build geom_vinum.ko manually.  Needless to say,
the next boot failed to find my root partition due to the missing kernel
module.  Luckily, rebooting using /boot/kernel.old allowed me to build
and install geom_vinum.ko and boot my new kernel successfully.

> The system does seem to be quite a bit slower than before, but that may
> be related to having PREEMPTION disabled (this is an SMP system).  I'll
> see how it responds once that whole situation is resolved.

I mentioned on freebsd-current that round-robin reads don't seem to be
supported by geom_vinum, yet.  (Lukas confirmed this is yet to be
done.)  In my system, all reads are from one drive of my mirror, unlike
with the old vinum.  Perhaps this is partially the cause of the relative
slowness you're seeing?

It'd be great to see GEOM vinum go into 5.3, and hence be adopted for
5-STABLE.  Great work, Lukas!

Cheers,

Paul.
-- 
e-mail: paul@gromit.dlib.vt.edu

"Without music to decorate it, time is just a bunch of boring production
 deadlines or dates by which bills must be paid."
        --- Frank Vincent Zappa


------------------------------

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

End of freebsd-current Digest, Vol 71, Issue 16
***********************************************


--
Evariste Galois:
    �����呛��樱������蔷������,����直前......


�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234]