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. what can i do with a core file ? (Stephane Wirtel)
   2. Re: sk0 patch (Bjoern A. Zeeb)
   3. Re: [amd64] Sound breakage with snd_ich driver (Steve Roome)
   4. Re: [amd64] System lockups still continuing  (Kevin Oberman)
   5. Re: Unloading USB driver while device is attached.  (Ian Dowse)
   6. Re: I/O or Threading Suffer (Robert Watson)
   7. Re: I/O or Threading Suffer (jesk)
   8. Re: I/O or Threading Suffer (Robert Watson)
   9. Re: I/O or Threading Suffer  (Mark Murray)
  10. Kernel build error, linux module? (jesse marquez jr)
  11. Re: Excellent job on the firewire support! (Bruce M Simpson)
  12. Re: [amd64] System lockups still continuing
      (Brian Fundakowski Feldman)
  13. Re: [amd64] System lockups still continuing  (Kevin Oberman)
  14. HEADSUP: ntpd 4.2.0 committed (Ollivier Robert)
  15. FreeBSD embedded: TinyBSD (Jean Milanez Melo)
  16. Re: I/O or Threading Suffer  (Robert Watson)
  17. Re: HEADS UP [Re: thread+preemption stability improvement]
      (Scott Long)
  18. [current tinderbox] failure on sparc64/sparc64 (FreeBSD Tinderbox)
  19. Re: NEW TAR (Julian Elischer)
  20. Re: Obtaining a kernel dump is not possible (Thomas Quinot)
  21. Re: NEW TAR (Matthias Buelow)
  22. Re: Obtaining a kernel dump is not possible (Oliver B. Fischer)
  23. Re: HEADS UP [Re: thread+preemption stability improvement] 
      (Kevin Oberman)
  24. Re: HEADS UP [Re: thread+preemption stability improvement]
      (Scott Long)
  25. Anyone else noticed: bgfsck doesn't bgfsck non-root 'a'
      partitions? (Robert Watson)
  26. Re: HEADS UP [Re: thread+preemption stability improvement] 
      (Kevin Oberman)
  27. Erros in: make -j 16 buildword (Willem Jan Withagen)
  28. Re: HEADS UP [Re: thread+preemption stability improvement]
      (Drew Broadley)
  29. RE: fetch hangs, part 2 (Darren Pilgrim)
  30. Re: NEW TAR (Stefan Bethke)


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

Message: 1
Date: Tue, 20 Jul 2004 14:20:01 +0200
From: Stephane Wirtel <stephane.wirtel@belgacom.net>
Subject: what can i do with a core file ?
To: freebsd-current@freebsd.org
Message-ID: <20040720122001.GA25604@laptop.lan>
Content-Type: text/plain; charset=iso-8859-15

Hi all, 

I am a new user of FreeBSD, i wanted to unload the linux module, with
kldunload, but i have got a core file. What can i do with this file,
because, i want to help you.

Is there a documentation ? perhaps the handbook ?

Best Regards, 

Stephane 


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

Message: 2
Date: Tue, 20 Jul 2004 12:21:34 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Re: sk0 patch
To: Tomas Randa <lists@hosting50.cz>
Cc: FreeBSD current mailing list <current@freebsd.org>
Message-ID:
	<Pine.BSF.4.53.0407201218490.43309@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 20 Jul 2004, Tomas Randa wrote:

Hi,

> Thanks, but patch not working for my
>
> skc0@pci2:9:0:  class=0x020000 card=0xe0001458 chip=0x432011ab rev=0x13
> hdr=0x00
>     vendor   = 'Marvell Semiconductor (Was: Galileo Technology Ltd)'
>     device   = '88E8001 Gigabit 32-bit Ethernet Controller with
> Integrated PHY'

so what is your problem then ?

-- 
Bjoern A. Zeeb				bzeeb at Zabbadoz dot NeT

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

Message: 3
Date: Tue, 20 Jul 2004 13:23:04 +0100
From: Steve Roome <stephen_roome@pepcross.com>
Subject: Re: [amd64] Sound breakage with snd_ich driver
To: "Conrad J. Sabatier" <conrads@cox.net>
Cc: freebsd-multimedia@freebsd.org
Message-ID: <20040720122304.GA5158@dylan.home>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 20, 2004 at 06:55:02AM -0500, Conrad J. Sabatier wrote:
> That, as well as whatever is still causing these:
> 
> ad0: TIMEOUT - WRITE_DMA retrying (2 retries left) LBA=123971136

Is it a SIL3112 SATA controller ? IIRC someone (not mentioning any
names) was claiming it was broken silicon - although to be fair it
doesn't "break" the same way under windows xp.

Getting it fixed would be nice though.

        Steve

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

Message: 4
Date: Tue, 20 Jul 2004 05:32:20 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: [amd64] System lockups still continuing 
To: conrads@cox.net
Cc: freebsd-current@freebsd.org
Message-ID: <20040720123220.CBD565D08@ptavv.es.net>

> Date: Mon, 19 Jul 2004 16:09:19 -0500 (CDT)
> From: "Conrad J. Sabatier" <conrads@cox.net>
> 
> 
> On 19-Jul-2004 Kevin Oberman wrote:
> >> 
> >> On 18-Jul-2004 Conrad J. Sabatier wrote:
> >> > I had posted several weeks ago about constant hard lockups of my
> >> > amd64 box.  At first, I attributed the problem to GNOME, then to
> >> > my kernel config, but now it appears to me that the problem
> >> > really lies with Mozilla/Firefox.
> >> 
> >> Well, another theory bites the dust.  I tried running GNOME
> >> yesterday, never touched Mozilla or Firefox, and the system locked
> >> up while doing some file management chores in Nautilus.
> >> 
> >> It must be something low-level in GNOME, some shared library,
> >> probably, but I have yet to track it down.
> > 
> > I have lost track of the full thread and this mail list is not
> > tracked by google :-(, so this may have been ruled out. Are you sure
> > that it's not the preemption problem that is biting you? This applies
> > to CURRENT systems only, so may not be applicable to what you are
> > seeing, the symptoms are a match.
> 
> Hmm, you may be right.  Is there any workaround for this?  I've tried
> both SCHED_ULE and SCHED_4BSD, both producing the same results.
> 
> What's strange is that this only seems to occur when either running a
> full-blown GNOME desktop or using some GNOME-related app under another
> environment.
> 
> I'm currently working under KDE, just for comparison, and no such
> problems have occurred, unless I try using, say, Mozilla or Firefox.
> 
> I'll Cc: this to current and see what they think.

The problem is not specific to ULE or 4BSD. A fix was checked in last
night, so cvsup and rebuild might just fix it. Early reports are that
the patch resolves the problem, but the author is not sure that this is
a complete fix.

If that does not work, you will need to back off 4 files to July 2
before jhb committed the preemption code.
/sys/i386/i386/intr_machdep.c v 1.6 
/sys/kern/sched_ule.c v 1.109
/sys/kern/kern_intr.c v 1.110
/sys/sys/interrupt.h v 1.27

Then apply the one line plus one word patch for the new debugger from
/sys/kern/sched_ule.c v 1.115 and you will be OK.
I will be rebuilding my system with the patched code this morning, so
hopefully this is now a thing of the past.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 5
Date: Tue, 20 Jul 2004 13:43:44 +0100
From: Ian Dowse <iedowse@maths.tcd.ie>
Subject: Re: Unloading USB driver while device is attached. 
To: "M. Warner Losh" <imp@bsdimp.com>
Cc: mycroft@NetBSD.org
Message-ID: <200407201343.aa92531@salmon.maths.tcd.ie>

In message <20040719.195056.35662742.imp@bsdimp.com>, "M. Warner Losh" writes:

>:   o Attempt to follow the correct procedure for synchronising with
>:     the BIOS via SMM to take over control of the EHCI controller.
>:     This may fix problems when the BIOS is configured to emulate
>:     legacy devices, but is untested on any affected machines.
>
>Docs on how to do this?  I've not seen this info...

It's in the EHCI spec at:

	http://developer.intel.com/technology/usb/download/ehci-r10.pdf

See sections 5.1 (EHCI Extended Capability: Pre-OS to OS Handoff
Synchronization) and 2.1.7 (USBLEGSUP - USB Legacy Support Extended
Capability).

A quick summary is that if the BIOS implements legacy emulation via
SMIs then there is a particular host controller flag that the OS
is supposed to set that will cause the BIOS to receive an SMI. The
BIOS should recognise this signal and disable the legacy support,
giving the OS exclusive access to the host controller.

Ian

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

Message: 6
Date: Tue, 20 Jul 2004 09:32:08 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: I/O or Threading Suffer
To: Scott Long <scottl@samsco.org>
Cc: jesk <jesk@killall.org>
Message-ID:
	<Pine.NEB.3.96L.1040720093036.86342D-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Tue, 20 Jul 2004, Scott Long wrote:

> If you are dd'ing from /dev/random, then you are depleting the entropy
> pool.  Anything else that tries to get random numbers is going to block
> in strange ways.  Trying just dd'ing from /dev/zero and see if that
> makes a difference. 

With Yarrow, /dev/random should just keep on chugging, so this is unlikely
to be the source.  However, lots of /dev/random I/O may take a while to
yield if it's working hard in kernel, so if that is combined with a
scheduling nit of some sort, we could be looking at a starvation issue.

Do we know if this is on a UP box or SMP box, and if so, whether it's
using HTT?  I could try reproducing it here and see if I see the same
thing.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



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

Message: 7
Date: Tue, 20 Jul 2004 15:53:02 +0200
From: "jesk" <jesk@killall.org>
Subject: Re: I/O or Threading Suffer
To: "Robert Watson" <rwatson@freebsd.org>,
	<freebsd-current@freebsd.org>
Message-ID: <044201c46e60$dfdb1810$45fea8c0@turbofresse>
Content-Type: text/plain;	charset="iso-8859-1"

> On Tue, 20 Jul 2004, Scott Long wrote:
>
> > If you are dd'ing from /dev/random, then you are depleting the entropy
> > pool.  Anything else that tries to get random numbers is going to block
> > in strange ways.  Trying just dd'ing from /dev/zero and see if that
> > makes a difference.
>
> With Yarrow, /dev/random should just keep on chugging, so this is unlikely
> to be the source.  However, lots of /dev/random I/O may take a while to
> yield if it's working hard in kernel, so if that is combined with a
> scheduling nit of some sort, we could be looking at a starvation issue.
>
> Do we know if this is on a UP box or SMP box, and if so, whether it's
> using HTT?  I could try reproducing it here and see if I see the same
> thing.
>
> Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
> robert@fledge.watson.org      Principal Research Scientist, McAfee
Research
>
>
>
>
hi,
i have tested it with /dev/zero, /dev/random and /dev/urandom, the same
everywhere.
as i mentioned i noticed the problem while mysqldump was dumping
the mysqldatabase over night. in this timespan the mysqld didnt responsed
to anything. after the dump(3minutes of time) the mysqld was back again and
everything worked again.
i have tested it with 2 UP boxes (i386/pIII) without HTT.




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

Message: 8
Date: Tue, 20 Jul 2004 10:21:40 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: I/O or Threading Suffer
To: jesk <jesk@killall.org>
Cc: scottl@freebsd.org
Message-ID:
	<Pine.NEB.3.96L.1040720100502.86342G-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Tue, 20 Jul 2004, jesk wrote:

> i have tested it with /dev/zero, /dev/random and /dev/urandom, the same
> everywhere.  as i mentioned i noticed the problem while mysqldump was
> dumping the mysqldatabase over night. in this timespan the mysqld didnt
> responsed to anything. after the dump(3minutes of time) the mysqld was
> back again and everything worked again.  i have tested it with 2 UP
> boxes (i386/pIII) without HTT.

Ok, so here's what I see, and the hardware configuration is somewhat
different.  I'm running with the network stack Giant-free on a
dual-processor Xeon box, with a parallel threaded benchmark against a
MySQL server.  I'm using libpthread in m:n mode, without the flag for
system scope threads, and running with the 4BSD scheduler, which typically
yields greater throughput in my benchmark (but is typically thought of as
less graceful in elevating interactive-like processes under load).

Under "normal" circumstances on this box, the benchmark yields about 7000
transactions a second in this configuration, data set, etc.  I ran the
benchmark in a loop via sshd on one terminal, and ran dd from /dev/urandom
to /dev/null on the serial console.  The benchmark is configured to
generate a transactions/sec stream for runs of 1000 transactions using 11
clients: 

6972.90
7070.46
6971.63
6998.54
7043.21
397.08		<- dd starts about here
357.18
647.10
379.39

So there's certainly a substantial performance impact.  I guess the
question is how we reach that level of impact, and what performance under
these circumstances would be "reasonable".  It does seem "undue" by
reasonable expectations.  I notice that ssh interactivity is also severely
hampered in this configuration as well.

When I run in a 1 thread configuration, I get about 5100-5800
transactions/sec (much higher variance).  When I kick in the dd session, I
observe similar problems: 

5339.64
5457.56
5044.89
5417.26
35.75		<-- guess what started running about here
21.71
17.22

I suspect a bit of using KTR to trace scheduling would probably elucidate
things quite a bit.  I'm not sure how you feel about tracing kernel
scheduling, but the ktr(9) and ktrdump(8) man pages aren't too terrible.

An interesting comparison here is /dev/zero as a source vs /dev/random as
a source.  In the /dev/zero case, I see some performance hit, but not
nearly as much.  Here's the 11 client version of the benchmark leading up
to "dd if=/dev/zero of=/dev/zero bs=128k":

6993.62
7013.36
7128.19
4505.15		<-- dd starts 
3689.62
4349.18

The primary difference between /dev/zero and /dev/random is that
/dev/random does a bunch of computation on behalf of the process, and
/dev/zero doesn't.  /dev/zero does just the copy of data to userspace.  So
it sounds like when a thread/process is using a lot of CPU in kernel, it's
starving other processes more than it should.  Mark -- how much
computation is being done here -- would it be worth dropping the Giant
lock during that computation so that the thread can yield without
generating a priority inversion?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research



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

Message: 9
Date: Tue, 20 Jul 2004 15:19:59 +0100
From: Mark Murray <markm@FreeBSD.ORG>
Subject: Re: I/O or Threading Suffer 
To: Robert Watson <rwatson@FreeBSD.ORG>
Cc: jesk <jesk@killall.org>
Message-ID: <200407201419.i6KEJxJX079041@grimreaper.grondar.org>

Robert Watson writes:
> On Tue, 20 Jul 2004, Scott Long wrote:
> 
> > If you are dd'ing from /dev/random, then you are depleting the entropy
> > pool.  Anything else that tries to get random numbers is going to block
> > in strange ways.  Trying just dd'ing from /dev/zero and see if that
> > makes a difference. 
> 
> With Yarrow, /dev/random should just keep on chugging, so this is unlikely
> to be the source.  However, lots of /dev/random I/O may take a while to
> yield if it's working hard in kernel, so if that is combined with a
> scheduling nit of some sort, we could be looking at a starvation issue.

When you read /dev/random, you only exercise the output generator, and this
is a pretty simple piece of code.

Yarrow's kernel thread is used ONLY for the entropy harvesting, and is only
indirectly coupled to the output generator.

M
--
Mark Murray
iumop ap!sdn w,I idlaH

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

Message: 10
Date: Tue, 20 Jul 2004 09:43:35 -0500
From: "jesse marquez jr" <jmarquez@x25.net>
Subject: Kernel build error, linux module?
To: <freebsd-current@freebsd.org>
Message-ID: <002501c46e67$efbd1650$47fda3d1@sanmarcos.x25.net>
Content-Type: text/plain;	charset="iso-8859-1"

5.2-current july 18th,2004

#cd /usr/src
#make buildkernel KERNCONF=KERNEL

---------
---------
/usr/src/sys/compat/linux/linux_socket.c: In function `linux_sendto_hdrincl':

/usr/src/sys/compat/linux/linux_socket.c:443: warning: declaration of `sg' sha
dows a parameter
/usr/src/sys/compat/linux/linux_socket.c:458: warning: passing arg 1 of `stack
gap_alloc' from incompatible pointer type
/usr/src/sys/compat/linux/linux_socket.c: In function `linux_sendto':
/usr/src/sys/compat/linux/linux_socket.c:881: warning: passing arg 2 of `linux
_sendto_hdrincl' from incompatible pointer type
/usr/src/sys/compat/linux/linux_socket.c:881: error: too few arguments to func
tion `linux_sendto_hdrincl'
*** Error code 1

Stop in /usr/src/sys/modules/linux.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/CONCEPT.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
----------
----------

I've attached my kernel. Any ideas? I may be missing something in my custome k
ernel. Thanks for the time.

over and out,
JesseFrom owner-freebsd-current@FreeBSD.ORG  Tue Jul 20 14:43:43 2004
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id D5E8E16A4CE; Tue, 20 Jul 2004 14:43:43 +0000 (GMT)
Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.77])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id DA83B43D2D; Tue, 20 Jul 2004 14:43:42 +0000 (GMT)
	(envelope-from tataz@sitadelle.com)
Received: from droopy.tech.sitadelle.com (unknown [213.223.184.193])
	by smtp.cegetel.net (Postfix) with ESMTP id D32216733F;
	Tue, 20 Jul 2004 16:43:39 +0200 (CEST)
Received: by droopy.tech.sitadelle.com (Postfix, from userid 1000)
	id 74814FC2F5; Tue, 20 Jul 2004 16:44:34 +0200 (CEST)
Date: Tue, 20 Jul 2004 16:44:34 +0200
From: Jeremie Le Hen <jeremie.le-hen@epita.fr>
To: freebsd-current@freebsd.org
Message-ID: <20040720144434.GT9548@sitadelle.com>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="h31gzZEtNLTqOjlF"
Content-Disposition: inline
User-Agent: Mutt/1.5.5.1+cvs20040105i
Subject: mount(8) and /etc/rc.d/jail
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,

	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>


--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hello -current,

I have a jail running Postfix whose filesystem is mirrored from the host
using mount_nullfs(8).  The problem is that when I upgrade the Postfix,
the port removes /usr/local/libexec/postfix/, which is mount_nullfs'ed
on /jail/postfix/usr/local/libexec/postfix/, then recreates it, but the
vnode is obsviously not the same and thus the nullfs mount is not valid
any longer.  Of course, I can simply install Postfix in the jail
filesystem and not on the host, but I consider this as a workaround and
furthermore I want to run Postfix from the host itself.

I was fed up with typing 
    for fs in `mount | awk '/postfix/ {print $3}'` ; do umount $i ; done
each time I don't forget to do it.

I decided to make the rc(8) jail script manage the mounts for each jail.
There was two ways to do it :
    * either use a tiny awk script to parse fstab(5) file and some
      magic shell gymnatic to mount/umount when starting/stopping the
      jail,
    * or make a new mount(8)/umount(8) option to act only on mount
      points which match a given prefix.
I implemented the second solution, but if someone has a good argument
to use the first one instead, I'm ready to listen to him.

Two patches are attached.  I didn't make a PR since I would like to
see what people think before sending it.  The first patch adds a `-c'
flags to mount(8) and umount(8) whose argument is the prefix to match
for (`c' for `cmp', since `p' is already used in mount(8)).  I tested
it against my system and it seems to work quite well.  Nevertheless a
friend of mine pointed me that matching against a pathname could be
delicate because of symlinks.  I don't really know how to overcome this,
except I can put some king of warning or advice in the manpage.
Suggestions are very welcome.  The second patch simply modifies the
rc(8) jail script to take advantage of the first one.  It works well
either.

Regards,
-- 
Jeremie LE HEN aka TtZ/TataZ                          jeremie.le-hen@epita.fr

                                                                 ttz@epita.fr

Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!


--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="mount-c.patch"

Index: sbin/mount/mount.8
=================================RCS file: /home/ncvs/src/sbin/mount/mount.8,v

retrieving revision 1.68
diff -u -p -r1.68 mount.8
--- sbin/mount/mount.8	17 May 2004 08:35:42 -0000	1.68
+++ sbin/mount/mount.8	20 Jul 2004 13:00:16 -0000
@@ -37,6 +37,7 @@
 .Sh SYNOPSIS
 .Nm
 .Op Fl adfpruvw
+.Op Fl c Ar prefix
 .Op Fl F Ar fstab
 .Op Fl o Ar options
 .Op Fl t Ar ufs | external_type
@@ -80,9 +81,18 @@ Exceptions are those marked as
 .Dq noauto ,
 excluded by the
 .Fl t
+flag (see below), restricted by the
+.Fl c
 flag (see below), or if they are already mounted (except the
 root file system which is always remounted to preserve
 traditional single user mode behavior).
+.It Fl c
+This flag can be used to indicate that the action should only occur
+when the mount point matches
+.Pa prefix .
+Note that this does only make sense with the
+.Fl a
+flag.
 .It Fl d
 Causes everything to be done except for the actual system call.
 This option is useful in conjunction with the
Index: sbin/mount/mount.c
=================================RCS file: /home/ncvs/src/sbin/mount/mount.c,v

retrieving revision 1.66
diff -u -p -r1.66 mount.c
--- sbin/mount/mount.c	26 Apr 2004 15:13:45 -0000	1.66
+++ sbin/mount/mount.c	20 Jul 2004 13:00:16 -0000
@@ -132,17 +132,21 @@ main(argc, argv)
 	FILE *mountdfp;
 	pid_t pid;
 	int all, ch, i, init_flags, mntsize, rval, have_fstab;
-	char *cp, *ep, *options;
+	char *cmp, *cp, *ep, *options;
 
 	all +	cmp  	options  	vfslist  	vfstype -	while ((ch +	while ((ch  		switch 
(ch) {
 		case 'a':
 			all  			break;
+		case 'c':
+			cmp +			break;
 		case 'd':
 			debug  			break;
@@ -186,6 +190,9 @@ main(argc, argv)
 	argc - 	argv + 
+	if (all = 0 && cmp !+	    warnx("Warning: use of -c without -a");
+
 #define	BADTYPE(type)							\
 	(strcmp(type, FSTAB_RO) &&					\
 	    strcmp(type, FSTAB_RW) && strcmp(type, FSTAB_RQ))
@@ -200,6 +207,9 @@ main(argc, argv)
 				if (BADTYPE(fs->fs_type))
 					continue;
 				if (checkvfsname(fs->fs_vfstype, vfslist))
+					continue;
+				if (cmp !+				    strncmp(fs->fs_file, cmp, strlen(cmp)))
 					continue;
 				if (hasopt(fs->fs_mntops, "noauto"))
 					continue;
Index: sbin/umount/umount.8
=================================RCS file: /home/ncvs/src/sbin/umount/umount.8
,v
retrieving revision 1.20
diff -u -p -r1.20 umount.8
--- sbin/umount/umount.8	9 Apr 2004 19:58:40 -0000	1.20
+++ sbin/umount/umount.8	20 Jul 2004 13:00:17 -0000
@@ -40,6 +40,7 @@
 .Ar special | node | fsid
 .Nm
 .Fl a | A
+.Op Fl c Ar prefix
 .Op Fl F Ar fstab
 .Op Fl fv
 .Op Fl h Ar host
@@ -68,6 +69,15 @@ are unmounted.
 .It Fl A
 All the currently mounted file systems except
 the root are unmounted.
+.It Fl c
+This flag can be used to indicate that the action should only occur
+when the mount point matches
+.Pa prefix .
+Note that this does only make sens with the
+.Fl a
+or
+.Fl A
+flags.
 .It Fl F Ar fstab
 Specify the
 .Pa fstab
Index: sbin/umount/umount.c
=================================RCS file: /home/ncvs/src/sbin/umount/umount.c
,v
retrieving revision 1.44
diff -u -p -r1.44 umount.c
--- sbin/umount/umount.c	9 Apr 2004 19:58:40 -0000	1.44
+++ sbin/umount/umount.c	20 Jul 2004 13:00:17 -0000
@@ -66,6 +66,7 @@ typedef enum { FIND, REMOVE, CHECKUNIQUE
 struct  addrinfo *nfshost_ai  int	fflag, vflag;
 char   *nfshost;
+char   *cmp  
 struct statfs *checkmntlist(char *);
 int	 checkvfsname (const char *, char **);
@@ -94,7 +95,7 @@ main(int argc, char *argv[])
 	sync();
 
 	all -	while ((ch +	while ((ch  		switch (ch) {
 		case 'A':
 			all @@ -102,6 +103,9 @@ main(int argc, char *argv[])
 		case 'a':
 			all  			break;
+		case 'c':
+			cmp +			break;
 		case 'F':
 			setfstab(optarg);
 			break;
@@ -153,6 +157,9 @@ main(int argc, char *argv[])
 			sfs  			if (checkvfsname(sfs->f_fstypename, typelist))
 				continue;
+			if (cmp !+			    strncmp(sfs->f_mntonname, cmp, strlen(cmp)))
+				continue;
 			if (umountfs(sfs) ! 				errs  		}
@@ -164,6 +171,8 @@ main(int argc, char *argv[])
 		errs  		break;
 	case 0:
+		if (cmp !+			warnx("Warning: use of -c without -a nor -A");
 		for (errs  			if (checkname(*argv, typelist) ! 				errs @@ -203,6 +212,8 @@
 umountall(char **typelist)
 		if (getvfsbyname(fs->fs_vfstype, &vfc) = -1)
 			continue;
 		if (checkvfsname(fs->fs_vfstype, typelist))
+			continue;
+		if (cmp ! 			continue;
 
 		/*

--h31gzZEtNLTqOjlF
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="jail_mount.patch"

Index: etc/defaults/rc.conf
=================================RCS file: /home/ncvs/src/etc/defaults/rc.conf
,v
retrieving revision 1.210
diff -u -p -r1.210 rc.conf
--- etc/defaults/rc.conf	30 Jun 2004 15:58:46 -0000	1.210
+++ etc/defaults/rc.conf	20 Jul 2004 12:59:37 -0000
@@ -489,6 +489,7 @@ jail_sysvipc_allow="NO"	# Allow SystemV 
 #jail_example_fdescfs_enable="NO"		# mount fdescfs in the jail
 #jail_example_procfs_enable="NO"		# mount procfs in jail
 #jail_example_devfs_ruleset="ruleset_name"	# devfs ruleset to apply to jail
+#jail_example_mount_enable="NO"			# mount jail's fstab entries
 
 ##############################################################
 ### Define source_rc_confs, the mechanism used by /etc/rc.* ##
Index: etc/rc.d/jail
=================================RCS file: /home/ncvs/src/etc/rc.d/jail,v
retrieving revision 1.14
diff -u -p -r1.14 jail
--- etc/rc.d/jail	8 Mar 2004 12:25:05 -0000	1.14
+++ etc/rc.d/jail	20 Jul 2004 12:59:37 -0000
@@ -44,12 +44,15 @@ init_variables()
 	[ -z "${jail_fdescfs}" ] && jail_fdescfs="NO"
 	eval jail_procfs=\"\$jail_${_j}_procfs_enable\"
 	[ -z "${jail_procfs}" ] && jail_procfs="NO"
+	eval jail_mount=\"\$jail_${_j}_mount_enable\"
+	[ -z "${jail_mount}" ] && jail_mount="NO"
 
 	# Debugging aid
 	#
 	debug "$_j devfs enable: $jail_devfs"
 	debug "$_j fdescfs enable: $jail_fdescfs"
 	debug "$_j procfs enable: $jail_procfs"
+	debug "$_j mount enable: $jail_mount"
 	debug "$_j hostname: $jail_hostname"
 	debug "$_j ip: $jail_ip"
 	debug "$_j root: $jail_rootdir"
@@ -108,6 +111,10 @@ jail_umount_fs()
 			umount -f ${jail_procdir} >/dev/null 2>&1
 		fi
 	fi
+
+	if checkyesno jail_mount; then
+		umount -A -c ${jail_rootdir} >/dev/null 2>&1
+	fi
 }
 
 jail_start()
@@ -125,6 +132,10 @@ jail_start()
 	for _jail in ${jail_list}
 	do
 		init_variables $_jail
+		if checkyesno jail_mount; then
+			info "Mounting jail's fstab entries"
+			mount -a -c ${jail_rootdir}
+		fi
 		if checkyesno jail_devfs; then
 			info "Mounting devfs on ${jail_devdir}"
 			devfs_mount_jail "${jail_devdir}" ${jail_ruleset}

--h31gzZEtNLTqOjlF--

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

Message: 11
Date: Tue, 20 Jul 2004 04:42:56 +0100
From: Bruce M Simpson <bms@spc.org>
Subject: Re: Excellent job on the firewire support!
To: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
Cc: simokawa@freebsd.org
Message-ID: <20040720034256.GA826@empiric.dek.spc.org>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 20, 2004 at 11:41:52AM +0900, Hidetoshi Shimokawa wrote:
> It is not enough :-< I lack the knowledge of BIOS/PCI(and ACPI?).
> Once we can access the OHCI register via PCI in the loader,
> the remaining part is relatively easy as you described.
> I need some help for this part. I suppose that implementing dcons 
> in the loader is architecture dependent.

Very much so, to begin with. Let's consider the i386 case.

libi386/biospci.c wants FireWire device classes added to it for its probe.
Some BIOS wrapper functions to manipulate PCI configuration registers need
to be added too.

Then a fwconsole driver much like comconsole could be written, i.e.
fwc_probe(), fwc_init() etc. I believe it's safe to assume that V==P
for address space at this point. I guess this could act as a shim before
the driver actually gets loaded. kenv could be used to tell dcons where
the loader had allocated the buffer before the kernel actually starts.

There would have to be a comfortable handover between loader and dcons
in the kernel, but because it just uses a ring buffer, I imagine this is
somewhat easier than it would be otherwise.

I am about to get some long overdue sleep, otherwise I'd begin hacking this
myself. ;-)

BMS

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

Message: 12
Date: Tue, 20 Jul 2004 11:20:44 -0400
From: Brian Fundakowski Feldman <green@freebsd.org>
Subject: Re: [amd64] System lockups still continuing
To: Kevin Oberman <oberman@es.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040720152044.GB1009@green.homeunix.org>
Content-Type: text/plain; charset=us-ascii

On Tue, Jul 20, 2004 at 05:32:20AM -0700, Kevin Oberman wrote:
> > Date: Mon, 19 Jul 2004 16:09:19 -0500 (CDT)
> > From: "Conrad J. Sabatier" <conrads@cox.net>
> > 
> > 
> > On 19-Jul-2004 Kevin Oberman wrote:
> > >> 
> > >> On 18-Jul-2004 Conrad J. Sabatier wrote:
> > >> > I had posted several weeks ago about constant hard lockups of my
> > >> > amd64 box.  At first, I attributed the problem to GNOME, then to
> > >> > my kernel config, but now it appears to me that the problem
> > >> > really lies with Mozilla/Firefox.
> > >> 
> > >> Well, another theory bites the dust.  I tried running GNOME
> > >> yesterday, never touched Mozilla or Firefox, and the system locked
> > >> up while doing some file management chores in Nautilus.
> > >> 
> > >> It must be something low-level in GNOME, some shared library,
> > >> probably, but I have yet to track it down.
> > > 
> > > I have lost track of the full thread and this mail list is not
> > > tracked by google :-(, so this may have been ruled out. Are you sure
> > > that it's not the preemption problem that is biting you? This applies
> > > to CURRENT systems only, so may not be applicable to what you are
> > > seeing, the symptoms are a match.
> > 
> > Hmm, you may be right.  Is there any workaround for this?  I've tried
> > both SCHED_ULE and SCHED_4BSD, both producing the same results.
> > 
> > What's strange is that this only seems to occur when either running a
> > full-blown GNOME desktop or using some GNOME-related app under another
> > environment.
> > 
> > I'm currently working under KDE, just for comparison, and no such
> > problems have occurred, unless I try using, say, Mozilla or Firefox.
> > 
> > I'll Cc: this to current and see what they think.
> 
> The problem is not specific to ULE or 4BSD. A fix was checked in last
> night, so cvsup and rebuild might just fix it. Early reports are that
> the patch resolves the problem, but the author is not sure that this is
> a complete fix.

It is not a complete fix in i386/SMP, but seems to make it harder to
cause the lock-up.  I am not able to cause the lock-up at all simply
by disabling PREEMPTION in src/sys/param.h.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \

 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\


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

Message: 13
Date: Tue, 20 Jul 2004 08:38:00 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: [amd64] System lockups still continuing 
To: Brian Fundakowski Feldman <green@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040720153800.4CA0A5D09@ptavv.es.net>

> Date: Tue, 20 Jul 2004 11:20:44 -0400
> From: Brian Fundakowski Feldman <green@freebsd.org>
> 
> On Tue, Jul 20, 2004 at 05:32:20AM -0700, Kevin Oberman wrote:
> > > Date: Mon, 19 Jul 2004 16:09:19 -0500 (CDT)
> > > From: "Conrad J. Sabatier" <conrads@cox.net>
> > > 
> > > 
> > > On 19-Jul-2004 Kevin Oberman wrote:
> > > >> 
> > > >> On 18-Jul-2004 Conrad J. Sabatier wrote:
> > > >> > I had posted several weeks ago about constant hard lockups of my
> > > >> > amd64 box.  At first, I attributed the problem to GNOME, then to
> > > >> > my kernel config, but now it appears to me that the problem
> > > >> > really lies with Mozilla/Firefox.
> > > >> 
> > > >> Well, another theory bites the dust.  I tried running GNOME
> > > >> yesterday, never touched Mozilla or Firefox, and the system locked
> > > >> up while doing some file management chores in Nautilus.
> > > >> 
> > > >> It must be something low-level in GNOME, some shared library,
> > > >> probably, but I have yet to track it down.
> > > > 
> > > > I have lost track of the full thread and this mail list is not
> > > > tracked by google :-(, so this may have been ruled out. Are you sure
> > > > that it's not the preemption problem that is biting you? This applies

> > > > to CURRENT systems only, so may not be applicable to what you are
> > > > seeing, the symptoms are a match.
> > > 
> > > Hmm, you may be right.  Is there any workaround for this?  I've tried
> > > both SCHED_ULE and SCHED_4BSD, both producing the same results.
> > > 
> > > What's strange is that this only seems to occur when either running a
> > > full-blown GNOME desktop or using some GNOME-related app under another
> > > environment.
> > > 
> > > I'm currently working under KDE, just for comparison, and no such
> > > problems have occurred, unless I try using, say, Mozilla or Firefox.
> > > 
> > > I'll Cc: this to current and see what they think.
> > 
> > The problem is not specific to ULE or 4BSD. A fix was checked in last
> > night, so cvsup and rebuild might just fix it. Early reports are that
> > the patch resolves the problem, but the author is not sure that this is
> > a complete fix.
> 
> It is not a complete fix in i386/SMP, but seems to make it harder to
> cause the lock-up.  I am not able to cause the lock-up at all simply
> by disabling PREEMPTION in src/sys/param.h.

Brian,

Thanks for the information. In my case it's i386/UP. I am currently
building a new kernel and will try it out soon. When I had the problem,
it showed up reliably in a buildworld, so I will fire off one as soon as
the new kernel is up.

I tried disabling PREEMPTION, but the system was barely usable whenever
it was running anything that was CPU intensive (such as compiling a
port), so I backed out the changes instead. While this works, it is
something I want to get away from ASAP.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 14
Date: Tue, 20 Jul 2004 18:02:11 +0200
From: Ollivier Robert <roberto@keltia.freenix.fr>
Subject: HEADSUP: ntpd 4.2.0 committed
To: Brad Knowles <brad.knowles@skynet.be>
Cc: current@freebsd.org
Message-ID: <20040720160211.GA70447@tara.freenix.org>
Content-Type: text/plain; charset=us-ascii

According to Brad Knowles:
> > I'm 95% finished with the upgrade to 4.2.0, I just need to test it on out

> > Tier-1 architectures.  Lots of bug fixes, IPv6 for free and all that.

As threatened almost a month ago, I've now committed ntpd 4.2.0 to the
5.2-CURRENT tree.  It has been tested on all our Tier-1 platforms and
IA-64.  Please report any problem to me or through Gnats.  64 bits
cleanliness is not confirmed for the asynchronous resolver (arlib) so
if anyone can confirm it works (or not) on our 64 bits platforms, I'd like
to get feedback.

What's in doc/ has not been updated so if anyone feels an urge to do so,
please step in.
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr

Darwin snuadh.freenix.org Kernel Version 7.4.0: Wed May 12 16:58:24 PDT 2004

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

Message: 15
Date: Tue, 20 Jul 2004 12:48:44 -0300
From: Jean Milanez Melo <jmelo-lists@freebsdbrasil.com.br>
Subject: FreeBSD embedded: TinyBSD
To: current@freebsd.org
Message-ID: <1090338524.783.3.camel@offset.freebsdbrasil.com.br>
Content-Type: text/plain; charset="us-ascii"

Hello current,

  Please allow me to introduce myself, I'm one of the coordinators of
  the Brazilian FreeBSD Users group, coordinator of the official
  FreeBSD documentation's translation group and have been working with
  embedded FreeBSD systems since year 2000.

  I've been studying NanoBSD ever since Poul-Henning posted about it on one of

  the mailling lists, and I have been following this project closely. It
  really is a great project.

  However, I think it sometimes creates unnecessary partitions, takes
  too long to build the system due to make world and it copies lots of
  unneeded binaries, taking a lot of precious space.

  So me and Patrick Tracanelli (another active member of the Brazilian
  FreeBSD community) decided to write a new set of scripts to build
  embedded systems. We've named it TinyBSD, and its goal is to be faster
  at building-time, occupy less space on the target device and to ease
  customization like PicoBSD does.

  Untar/gzip the tinybsd.tgz file under /usr/src/release.

  # ls
  TINYBSD            TODO               tinybsd.basefiles  tinybsd.sh

  We first take the file TINYBSD, which like in PicoBSD we can use to
  define or remove all kernel options to the new system.

  Then we have tinybsd.basefiles, where we define all binaries necessary
  to get the system running and anyone can edit it as they will.

  Finally we have the script itself, tinybsd.sh. It's a simple script,
  yet functional. We based it on NanoBSD's and its idea is to create a
  temporary work directory where the new system's directory tree will be
  created. Then it'll copy all files listed on tinybsd.basefiles to this
  tree. This copying process is essential to the speed of the building
  process, as we eliminate the recompiling phase. The reason for this is
  FreeBSD 5.1' dynamically-linked base system, which take much less
  space than the old statically-linked ones. This way we can also do the
  copying without affecting the production system in any way.

  After all this, we compile the kernel using the TINYBSD file and then
  we install the necessary libs using the dependencies' output from the
  binaries. We populate the /etc directory on the temp work directory
  and put in a few important default settings in /etc/rc.conf, like:

  hostname="tinybsd.freebsd.org"
  sendmail_enable="NONE"
  sshd_enable="YES"
  usbd_enable="NO"
  inetd_enable="NO"
  portmap_enable="NO"
  update_motd="NO"
  varsize="8192"
  diskless_mount="/etc/rc.d/diskless"

  Lastly, we create the empty image according to the specifications for
  the device passed in as a parameter and copy the entire temp directory
  to the new image. After that, the user can use dd to write the final
  image to the target device.

  Booting the system works as embedded systems do, mounting /var and
  /tmp as MFS filesystems.

  The most interesting point is the space used by default, only 19MB.

  As you can see, it's pretty simple. But since PicoBSD is practically
  unusable with the 5.x series, TinyBSD could be an interesting
  alternative along with NanoBSD to be put on the base system in future
  versions.

  Patrick and I have been thinking of enhancing the script and adding
  end-user helping tools such dialog-based menus and the likes, for more
  details see our TODO file. In case the FreeBSD project has any interest
  in our project, we can perfectly maintain TinyBSD as an embedded option
  for FreeBSD users.

  We would like that the interested parties make tests and then
  report bug, sends sugestions to improve the TinyBSD.

  Thank you for your attention
  Jean Milanez Melo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinybsd.tgz
Type: application/octet-stream
Size: 7553 bytes
Desc: 
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040720/
732b9530/tinybsd-0001.obj

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

Message: 16
Date: Tue, 20 Jul 2004 12:39:04 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.ORG>
Subject: Re: I/O or Threading Suffer 
To: Mark Murray <mark@grondar.org>
Cc: jesk <jesk@killall.org>
Message-ID:
	<Pine.NEB.3.96L.1040720122732.98217B-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


On Tue, 20 Jul 2004, Mark Murray wrote:

> Robert Watson writes:
> >                                                Mark -- how much
> > computation is being done here -- would it be worth dropping the Giant
> > lock during that computation so that the thread can yield without
> > generating a priority inversion?
> 
> I'm sure it could. There are some Giant issues related to the UIO stuff
> that bit me in the bum when I removed the NEEDS_GIANT flag from the
> device, but I'm reasonably sure that with careful work this can be
> untangled. 

UIO shouldn't require Giant.  Are you sure it still does?  FYI, I'm not
even thinking you have to mark the whole device driver as not requiring
Giant, just dropping Giant about some of the long running work (and maybe
conditional on the amount of work).  For a small random read, it's not
worth it, but for sustained large reads of randomness, it might be
interesting to see what impact it has.  We could even consider a yield of
some sort.

Anyhow, up front, it might be sufficient to drop and reacquire giant and
see what impact it has for the test scenario we're currently looking at.

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research


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

Message: 17
Date: Tue, 20 Jul 2004 11:10:22 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: Maxim Maximov <mcsi@mcsi.pp.ru>
Cc: freebsd-current@freebsd.org
Message-ID: <40FD51FE.2080208@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Maxim Maximov wrote:
> Scott Long wrote:
> 
>> All,
>>
>> Initial testing of this patch looks very promising.  For those that
>> aren't comfortable with patching their sources by hand, note that it
>> was committed to CVS a few hours ago and should be showing up on CVSup
>> very shortly (rev 1.8 of sys/i386/i386/intr_machdep.c is what you want
>> if you are running i386).  Please go out and test this as much as 
>> possible so that we can determine if futher action is needed.
> 
> 
>     I think it is needed :( Things actually get _much_ better, now I've 
> been able to use my big IMAP folders, but still after applying the patch 
> and working about an hour mozilla freezes with the same sympthoms (cpu 
> fan gets spinning faster and faster as if cpu temperature is raising). 
> Are there any ways I can help track this down further?
>     Preemption is enabled, of course. My kernel's config is latest 
> GENERIC with these additions:
> 
> ######
> device        pf
> device        pflog
> options         ALTQ
> options         ALTQ_CBQ        # Class Bases Queueing
> options         ALTQ_RED        # Random Early Drop
> options         ALTQ_RIO        # RED In/Out
> options         ALTQ_HFSC       # Hierarchical Packet Scheduler
> options         ALTQ_CDNR       # Traffic conditioner
> options         ALTQ_PRIQ       # Priority Queueing
> options         ALTQ_NOPCC      # Required for SMP build
> options         ALTQ_DEBUG
> device        radeondrm
> device          acpi_asus
> device        sound
> device        snd_ich
> options        ALT_BREAK_TO_DEBUGGER
> options        MSGBUF_SIZE=245760
> 
>     My system is the notebook ASUS L5Ga. At boot I'm getting many 
> witness messages like these and I turned on debug.mpsafenet=1. Can this 
> be a problem?

The problem here is that the sk driver is holding a mutex across a call
to mii_phy_probe() which then winds up in bus_probe_and_attach().  The
current architecure of the miibus code makes it very hard to lock
drivers correctly and efficiently, but this paraticlar case shouldn't
affect runtime stability.  If you get others messages like this while
doing network I/O then I would worry.

Scott

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

Message: 18
Date: Tue, 20 Jul 2004 13:20:52 -0400 (EDT)
From: FreeBSD Tinderbox <tinderbox@freebsd.org>
Subject: [current tinderbox] failure on sparc64/sparc64
To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>,
	<sparc64@freebsd.org>
Message-ID: <20040720172052.8E2077303F@freebsd-current.sentex.ca>

TB --- 2004-07-20 16:49:58 - tinderbox 2.3 running on freebsd-current.sentex.c
a
TB --- 2004-07-20 16:49:58 - starting CURRENT tinderbox run for sparc64/sparc6
4
TB --- 2004-07-20 16:49:58 - cleaning the sandbox
TB --- 2004-07-20 16:51:12 - checking out the source tree
TB --- 2004-07-20 16:51:12 - cd /home/tinderbox/sandbox/CURRENT/sparc64/sparc6
4
TB --- 2004-07-20 16:51:12 - /usr/bin/cvs -f -R -Q -d/home/ncvs checkout -P -A
 src
TB --- 2004-07-20 16:58:38 - patching the sources
TB --- 2004-07-20 16:58:38 - cd /home/tinderbox/sandbox/CURRENT/sparc64/sparc6
4/src
TB --- 2004-07-20 16:58:38 - /usr/bin/patch -f -s -i/home/tinderbox/sandbox/sp
arc64.diff
TB --- 2004-07-20 16:58:38 - building world (CFLAGS=-O -pipe)
TB --- 2004-07-20 16:58:38 - cd /home/tinderbox/sandbox/CURRENT/sparc64/sparc6
4/src
TB --- 2004-07-20 16:58:38 - /usr/bin/make -B buildworld
>>> Rebuilding the temporary build tree
>>> stage 1.1: legacy release compatibility shims
>>> stage 1.2: bootstrap tools
>>> stage 2.1: cleaning up the object tree
>>> stage 2.2: rebuilding the object tree
>>> stage 2.3: build tools
>>> stage 3: cross tools
>>> stage 4.1: building includes
>>> stage 4.2: building libraries
>>> stage 4.3: make dependencies
[...]
echo nslookup: /home/tinderbox/sandbox/CURRENT/sparc64/sparc64/obj/sparc64/tin
derbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libc.a /tinderbox/CURRENT/spar
c64/sparc64/obj/sparc64/tinderbox/CURRENT/sparc64/sparc64/src/usr.sbin/nslooku
p/../../lib/libbind/libbind.a /home/tinderbox/sandbox/CURRENT/sparc64/sparc64/
obj/sparc64/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libl.a /home/ti
nderbox/sandbox/CURRENT/sparc64/sparc64/obj/sparc64/tinderbox/CURRENT/sparc64/
sparc64/src/i386/usr/lib/libedit.a /home/tinderbox/sandbox/CURRENT/sparc64/spa
rc64/obj/sparc64/tinderbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libtermcap
.a >> .depend
===> usr.sbin/nsupdate
rm -f .depend
mkdep -f .depend -a    -I/tinderbox/CURRENT/sparc64/sparc64/src/usr.sbin/nsupd
ate/../../contrib/bind/port/freebsd/include -I/tinderbox/CURRENT/sparc64/sparc
64/src/usr.sbin/nsupdate/../../contrib/bind/bin/named -I/tinderbox/CURRENT/spa
rc64/sparc64/src/usr.sbin/nsupdate/../../contrib/bind/include -I. /tinderbox/C
URRENT/sparc64/sparc64/src/usr.sbin/nsupdate/../../contrib/bind/bin/nsupdate/n
supdate.c
echo nsupdate: /home/tinderbox/sandbox/CURRENT/sparc64/sparc64/obj/sparc64/tin
derbox/CURRENT/sparc64/sparc64/src/i386/usr/lib/libc.a /tinderbox/CURRENT/spar
c64/sparc64/obj/sparc64/tinderbox/CURRENT/sparc64/sparc64/src/usr.sbin/nsupdat
e/../../lib/libbind/libbind.a >> .depend
===> usr.sbin/ntp
===> usr.sbin/ntp/libntp
make: don't know how to make authencrypt.c. Stop
*** Error code 2

Stop in /tinderbox/CURRENT/sparc64/sparc64/src/usr.sbin/ntp.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src/usr.sbin.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src.
*** Error code 1

Stop in /tinderbox/CURRENT/sparc64/sparc64/src.
TB --- 2004-07-20 17:20:52 - WARNING: /usr/bin/make returned exit code  1 
TB --- 2004-07-20 17:20:52 - ERROR: failed to build world
TB --- 2004-07-20 17:20:52 - tinderbox aborted


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

Message: 19
Date: Tue, 20 Jul 2004 10:28:20 -0700
From: Julian Elischer <julian@elischer.org>
Subject: Re: NEW TAR
To: Peter Jeremy <PeterJeremy@optushome.com.au>
Cc: current@freebsd.org
Message-ID: <40FD5634.5040000@elischer.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Peter Jeremy wrote:

>On Mon, 2004-Jul-19 21:29:54 -0700, Tim Kientzle wrote:
>  
>
>>I have some ideas about sparse file handling,
>>but they're not gtar-compatible.  (The gtar
>>approach has a number of drawbacks.  The primary
>>one being that on many systems it requires reading
>>the entire file twice, once to find holes and again
>>to actually archive the file.
>>    
>>
>
>Actually, it's not possible to accurately determine the holes in a
>file by reading it - you can't differentiate between a hole and a
>allocated block of zeroes.  What you need is a (new) syscall that
>invokes a new VOP_... and returns a bitmap of allocated blocks.  This
>would be non-trival unfortunately.
>

OR, given the right flags, note all blocks of zeros as if they were 
unallocated,
and write them that way.. regardless of how it was in the original file.

>
>  
>



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

Message: 20
Date: Tue, 20 Jul 2004 19:39:44 +0200
From: Thomas Quinot <thomas@FreeBSD.ORG>
Subject: Re: Obtaining a kernel dump is not possible
To: "Oliver B. Fischer" <plexus@snafu.de>
Cc: current@freebsd.org
Message-ID: <20040720173944.GA4122@melusine.cuivre.fr.eu.org>
Content-Type: text/plain; charset=us-ascii

* Oliver B. Fischer, 2004-07-20 :

> How can I get it and save it too?

First you need to configure your kernel with DDB, see:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldeb
ug-online-ddb.html

and use the 'trace' command to obtain a backtrace once you get a panic.

I think the easiest way to save the trace is to obtain it from a serial
console, and save a transcript of the session on the terminal side.

Thomas.

-- 
    Thomas.Quinot@Cuivre.FR.EU.ORG

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

Message: 21
Date: Tue, 20 Jul 2004 19:57:39 +0200
From: Matthias Buelow <mkb@mukappabeta.de>
Subject: Re: NEW TAR
To: Peter Jeremy <PeterJeremy@optushome.com.au>
Cc: current@freebsd.org
Message-ID: <16637.23827.578767.763759@moghedien.mukappabeta.net>
Content-Type: text/plain; charset=us-ascii

Peter Jeremy writes:

>Actually, it's not possible to accurately determine the holes in a
>file by reading it - you can't differentiate between a hole and a
>allocated block of zeroes.  What you need is a (new) syscall that

but that's the point, isn't it.  if you get a larger block of zeroes,
you seek forward that number in the output file, and let the
filesystem create (any) holes.

>invokes a new VOP_... and returns a bitmap of allocated blocks.  This
>would be non-trival unfortunately.

this is completely unnecessary and wouldn't work across filesystems
anyways.

-- 
  Matthias Buelow; mkb@{mukappabeta,informatik.uni-wuerzburg}.de

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

Message: 22
Date: Tue, 20 Jul 2004 20:59:16 +0200
From: "Oliver B. Fischer" <plexus@snafu.de>
Subject: Re: Obtaining a kernel dump is not possible
To: Thomas Quinot <thomas@freebsd.org>
Cc: current@freebsd.org
Message-ID: <40FD6B84.7050702@snafu.de>
Content-Type: text/plain; charset=us-ascii; format=flowed

Thomas Quinot wrote:
> I think the easiest way to save the trace is to obtain it from a serial
> console, and save a transcript of the session on the terminal side.

Well, unfortunately my thinkpas doesn't have an serial port... :(

Regards,

Oliver Fischer


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

Message: 23
Date: Tue, 20 Jul 2004 12:09:58 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement] 
To: Scott Long <scottl@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040720190959.0744F5D08@ptavv.es.net>

I just rebuilt my kernel and the problem is back. :-(

I sure hope peter or Scott can figure this out soon. The kernel has now
changed enough that backing off the 4 files I was backing off is no
longer adequate, so I am again running with preemption turned off.

System is P4-M 1.8 GHz UP with SCHED_ULE. It reliably dies on a
buildworld.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 24
Date: Tue, 20 Jul 2004 13:13:48 -0600
From: Scott Long <scottl@samsco.org>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: Kevin Oberman <oberman@es.net>
Cc: freebsd-current@freebsd.org
Message-ID: <40FD6EEC.3030900@samsco.org>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kevin Oberman wrote:
> I just rebuilt my kernel and the problem is back. :-(
> 
> I sure hope peter or Scott can figure this out soon. The kernel has now
> changed enough that backing off the 4 files I was backing off is no
> longer adequate, so I am again running with preemption turned off.
> 
> System is P4-M 1.8 GHz UP with SCHED_ULE. It reliably dies on a
> buildworld.

Does it work better if you remove the PREEMPTION define in 
/sys/i386/include/param.h?

Scott

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

Message: 25
Date: Tue, 20 Jul 2004 15:55:17 -0400 (EDT)
From: Robert Watson <rwatson@FreeBSD.org>
Subject: Anyone else noticed: bgfsck doesn't bgfsck non-root 'a'
	partitions?
To: current@FreeBSD.org
Message-ID:
	<Pine.NEB.3.96L.1040720155203.98217H-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII


fsck has logic to force a full preening fsck of '/', permitting background
file system fsck only for non-root file systems.  For the past few weeks,
I've been wondering why it takes *so* *long* to fsck the root file system
of one of my boxes at work, only to find out that the reason is that it's
running a non-background fsck on /dev/da1s1a, which is an 'a' partition,
but not the root file system (/dev/da0s1a).  It successfully uses bgfsck
on /var and /usr, but not /local0.  So it sounds like the logic in fsck is
simply guessing that any 'a' partition needs a foreground fsck.  This
might be a problem if you wanted to background fsck a multi-terabyte
/bigpartition for exactly the reason bgfsck was introduced. :-)  Has
anyone else run into this, or perhaps want to fix it?

Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org      Principal Research Scientist, McAfee Research


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

Message: 26
Date: Tue, 20 Jul 2004 12:56:43 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement] 
To: Scott Long <scottl@samsco.org>
Cc: freebsd-current@freebsd.org
Message-ID: <20040720195643.89CA85D08@ptavv.es.net>

> Date: Tue, 20 Jul 2004 13:13:48 -0600
> From: Scott Long <scottl@samsco.org>
> 
> Kevin Oberman wrote:
> > I just rebuilt my kernel and the problem is back. :-(
> > 
> > I sure hope peter or Scott can figure this out soon. The kernel has now
> > changed enough that backing off the 4 files I was backing off is no
> > longer adequate, so I am again running with preemption turned off.
> > 
> > System is P4-M 1.8 GHz UP with SCHED_ULE. It reliably dies on a
> > buildworld.
> 
> Does it work better if you remove the PREEMPTION define in 
> /sys/i386/include/param.h?

Scott,

That's how I built my current kernel and it's at least fairly painful It
does not freeze any longer, but the interactivity is poor. I'm not sure
if it's as bad as last time I tried, but my editor freezes for seconds
at a time and then catches up once something gets scheduled. (I think
it's the X server and not the editor that is the issue.)

It's better than the freezes, but it's pretty painful.

I can provide configs, logs (nothing there, though) or any other
information.
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

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

Message: 27
Date: Tue, 20 Jul 2004 22:24:11 +0200
From: "Willem Jan Withagen" <wjw@withagen.nl>
Subject: Erros in: make -j 16 buildword
To: <current@FreeBSD.ORG>
Message-ID: <021001c46e97$84c05210$471b3dd4@digiware.nl>
Content-Type: text/plain;	charset="iso-8859-1"

Hi,

One way or another it seems that I can no longer buildworld with -j16.
-j8 works perfectly, but -j16 fails consistently at:

===> gnu/usr.bin/texinfo/doc
ln -fs /home2/src/gnu/usr.bin/texinfo/doc/../../../../contrib/texinfo/doc/texi
nf
o.txi texinfo.texi
makeinfo --no-split -I /home2/src/gnu/usr.bin/texinfo/doc -I /home2/src/gnu/us
r.
bin/texinfo/doc/../../../../contrib/texinfo/doc texinfo.texi  -o texinfo.info

makeinfo --no-split -I /home2/src/gnu/usr.bin/texinfo/doc -I /home2/src/gnu/us
r.
bin/texinfo/doc/../../../../contrib/texinfo/doc /home2/src/gnu/usr.bin/texinfo
/d
oc/../../../../contrib/texinfo/doc/info.texi  -o info.info
makeinfo --no-split -I /home2/src/gnu/usr.bin/texinfo/doc -I /home2/src/gnu/us
r.
bin/texinfo/doc/../../../../contrib/texinfo/doc /home2/src/gnu/usr.bin/texinfo
/d
oc/../../../../contrib/texinfo/doc/info-stnd.texi  -o info-stnd.info
gzip -cn info.info > info.info.gz
gzip -cn info-stnd.info > info-stnd.info.gz
gzip -cn texinfo.info > texinfo.info.gz
1 error
*** Error code 2
1 error
*** Error code 2
1 error

I have not tried any values in between, but there was I time I could build at

-j32 and get loads of around 25 in some parts.

Given the sparseness of info here, I'm at a loss where to go and look. Since i
t
could stem from any of up to 16 make threads some more error infor is needed.


Unless anybody has suggestions of which programs generate these tearse
messages???
Or a way to get make to be more informative???

--WjW


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

Message: 28
Date: Wed, 21 Jul 2004 08:24:08 +1200
From: Drew Broadley <drew@corrupt.co.nz>
Subject: Re: HEADS UP [Re: thread+preemption stability improvement]
To: Kevin Oberman <oberman@es.net>
Cc: freebsd-current@freebsd.org
Message-ID: <40FD7F68.8030601@corrupt.co.nz>
Content-Type: text/plain; charset=us-ascii; format=flowed

Kevin Oberman wrote:

>>Date: Tue, 20 Jul 2004 13:13:48 -0600
>>From: Scott Long <scottl@samsco.org>
>>
>>Kevin Oberman wrote:
>>    
>>
>>>I just rebuilt my kernel and the problem is back. :-(
>>>
>>>I sure hope peter or Scott can figure this out soon. The kernel has now
>>>changed enough that backing off the 4 files I was backing off is no
>>>longer adequate, so I am again running with preemption turned off.
>>>
>>>System is P4-M 1.8 GHz UP with SCHED_ULE. It reliably dies on a
>>>buildworld.
>>>      
>>>
>>Does it work better if you remove the PREEMPTION define in 
>>/sys/i386/include/param.h?
>>    
>>
>
>Scott,
>
>That's how I built my current kernel and it's at least fairly painful It
>does not freeze any longer, but the interactivity is poor. I'm not sure
>if it's as bad as last time I tried, but my editor freezes for seconds
>at a time and then catches up once something gets scheduled. (I think
>it's the X server and not the editor that is the issue.)
>
>It's better than the freezes, but it's pretty painful.
>
>I can provide configs, logs (nothing there, though) or any other
>information.
>  
>
Change the HZ to 2000 in the kernel. This will help handle the backlog 
introduced by removing PREEMPTION

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

Message: 29
Date: Tue, 20 Jul 2004 13:48:10 -0700
From: "Darren Pilgrim" <dmp@bitfreak.org>
Subject: RE: fetch hangs, part 2
To: "'Matt White'" <matt+list.sw.freebsd.current@publicly.neglect.us>,
	<freebsd-current@freebsd.org>
Message-ID: <000401c46e9a$e14dd590$132a15ac@spud>
Content-Type: text/plain;	charset="us-ascii"

I've been having the same (or a similar problem).  Fetching the distfile for
a port will hang.  I poked some more at this and found that all the sites
fetch is hanging on successfully negotiate the TCP connection then go dead
without closing the connection.  My workaround has been to edit the Makefile
and remove the offending site from MASTER_SITES or manually fetch from
ftp.freebsd.org.

> From: Matt White
> 
> Thanks, but it looks like those are the default settings, so I'm guessing 
> setting that's not going to help me.  It's probably better to figure out 
> what's wrong here anyway so we can use whatever settings we want.  If I 
> don't hear anything more, I'll try to get a ktrace tonight.
> 
> 
> -Matt
> 
> --On Sunday, July 18, 2004 1:48 PM -0500 "Conrad J. Sabatier" 
> <conrads@cox.net> wrote:
> 
> >
> > On 18-Jul-2004 Matt White wrote:
> >> I looked in the archives and saw that a couple of others also had
> >> this
> >> problem.  Fetch is getting distributions for ports and it'll just
> >> hang.
> >> Killing the build and restarting it will usually cause it to advance.
> >> Did
> >> any of you guys who saw this problem before come up with a solution?
> >
> > I found that changing my buffer size settings made all the difference.
> > I had been using the following in /etc/sysctl.conf:
> >
> > net.inet.tcp.recvspace=131072
> > net.inet.tcp.sendspace=65536
> >
> > Changing them to:
> >
> > net.inet.tcp.recvspace=65536
> > net.inet.tcp.sendspace=32768
> >
> > Solved the problem.



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

Message: 30
Date: Tue, 20 Jul 2004 23:14:00 +0200
From: Stefan Bethke <stb@lassitu.de>
Subject: Re: NEW TAR
To: Peter Jeremy <PeterJeremy@optushome.com.au>
Cc: current@freebsd.org
Message-ID: <B82A97D5-DA91-11D8-B0C4-000A95C893E4@lassitu.de>
Content-Type: text/plain; charset=US-ASCII; format=flowed

Am 20.07.2004 um 10:10 schrieb Peter Jeremy:

> Actually, it's not possible to accurately determine the holes in a
> file by reading it - you can't differentiate between a hole and a
> allocated block of zeroes.  What you need is a (new) syscall that
> invokes a new VOP_... and returns a bitmap of allocated blocks.  This
> would be non-trival unfortunately.

This one point that has been made a number of times in the past, and 
one I don't understand:

There are no sparse files as far as the userland is concerned; it's an 
optimization that remains invisible, apart from space and/or 
performance savings.

For the extraction process, it should be sufficient to seek over any 
extended range of zeros. When packaging files that might have holes in 
them, it'll certainly be nice if there was a way to skip reading all 
those zeros in, but that's just an optimization.

The way you describe it (and others have before), it sounds like the 
holes were an attribute of the file that should be preserved by tar (or 
any other archiver); I believe it's not.  Preserving them in the way 
your post can be read is problematic: what if the 
block/allocation/cluster/fragment size of the extraction target differs 
from the source?  How far would you need to acertain compatible 
allocation semantics between both filesystems?

Since this has come up multiple times in the past, I feel I'm missing 
some important detail, and I'd appreciate if someone would enlighten 
me.


Stefan

-- 
Stefan Bethke <stb@lassitu.de>   Fon +49 170 346 0140


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

_______________________________________________
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 69, Issue 6
**********************************************


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


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