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: bringing /etc/services up to date (Thordur Ivar)
2. Re: bringing /etc/services up to date (Brooks Davis)
3. Patch for gbde(8) (Ruslan Ermilov)
4. Re: panic: m_copym, length > size of mbuf chain (Daniel Lang)
5. [fixed] Re: Yesterday's code panics: Don't call
insmntque(foo, NULL) (Luke)
6. Re: Rewrite cvsup & portupgrade in C (Matthew D. Fuller)
7. Re: Kernel modules (Roman Kurakin)
8. Re: bringing /etc/services up to date (Matthew D. Fuller)
9. Re: Rewrite cvsup & portupgrade in C (Gustavo A. Baratto)
10. panic: Assertion i >= 0 && i < LOCK_NCHILDREN failed (Daniel Lang)
11. Re: speeding up ugen by an order of magnitude. (Julian Elischer)
12. Re: Rewrite cvsup & portupgrade in C (Garance A Drosihn)
13. Re: speeding up ugen by an order of magnitude. (Julian Elischer)
14. Re: bringing /etc/services up to date (Brooks Davis)
15. Re: Rewrite cvsup & portupgrade in C (Brooks Davis)
16. Re: bringing /etc/services up to date (Christopher Taylor)
17. Re: bringing /etc/services up to date (Matthew D. Fuller)
18. sockstat broken (Jul-1 current) (Alex K)
19. Re: Kernel modules (Robert Watson)
20. Re: bringing /etc/services up to date (Brooks Davis)
21. Re: unkillable process in physrd-sttae (Kevin Oberman)
22. Re: Rewrite cvsup & portupgrade in C (Gustavo A. Baratto)
23. rsync (was: Re: Rewrite cvsup & portupgrade in C) (Colin Percival)
24. Re: speeding up ugen by an order of magnitude. (Robert Watson)
25. Re: Current broken on my laptop (Toshiba Libretto 110CT)
(Nate Lawson)
26. Any way to debug a hard lockup? (Conrad J. Sabatier)
27. Re[2]: Kernel modules (Alexander)
28. Re: Any way to debug a hard lockup? (Sean McNeil)
29. Re: Any way to debug a hard lockup? (Joe Marcus Clarke)
30. Re: speeding up ugen by an order of magnitude. (Julian Elischer)
31. Re: Rewrite cvsup & portupgrade in C (Maxime Henrion)
32. Re: Apache13+mod_ssl and mod_php4 core dumping (Guy Helmer)
33. Re[2]: Kernel modules (Alexander)
34. Re: Query on status of cross-builds (Marius Strobl)
----------------------------------------------------------------------
Message: 1
Date: Wed, 7 Jul 2004 16:58:07 +0000
From: Thordur Ivar <thib@mi.is>
Subject: Re: bringing /etc/services up to date
To: freebsd-current@freebsd.org
Message-ID: <20040707165807.27d83657.thib@mi.is>
Content-Type: text/plain; charset=US-ASCII
On Wed, 07 Jul 2004 03:43:25 -0700
Colin Percival <colin.percival@wadham.ox.ac.uk> wrote:
> I've put together a patch to bring /etc/services up to date with
> almost a decade of IANA port assignments. Unfortunately, this
> turned out to be rather larger than I expected: It adds 6400 lines,
> and increases the size of /etc/services from 73 kB to 327 kB.
> Is anyone going to be very unhappy if I go ahead and commit this?
>
> Colin Percival
>
> _______________________________________________
> 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"
>
>
Please do.
But if you do not go ahead with the commit could you put it somewhere
where it is publicly available and post the location here ?
--
As far as the laws of mathematics refer to reality, they are not
certain, and as far as they are certain, they do not refer to reality.
-- Albert Einstein
------------------------------
Message: 2
Date: Wed, 7 Jul 2004 10:25:58 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: bringing /etc/services up to date
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: current@freebsd.org
Message-ID: <20040707172558.GA17351@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 07, 2004 at 03:43:25AM -0700, Colin Percival wrote:
> I've put together a patch to bring /etc/services up to date with
> almost a decade of IANA port assignments. Unfortunately, this
> turned out to be rather larger than I expected: It adds 6400 lines,
> and increases the size of /etc/services from 73 kB to 327 kB.
> Is anyone going to be very unhappy if I go ahead and commit this?
Can you check how much this change slows down inetd startup with a few
services enabled? The traditional argument against this is that reading
the whole IANA service file takes too long. If the difference isn't
measurable, the the argument is bogus, but I'm not sure that's the case.
The alternative solution would be to add optional database backing.
That shouldn't be too hard to do, and there are several examples to work
from.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040707/
29af664d/attachment-0001.bin
------------------------------
Message: 3
Date: Wed, 7 Jul 2004 20:31:05 +0300
From: Ruslan Ermilov <ru@FreeBSD.org>
Subject: Patch for gbde(8)
To: current@FreeBSD.org
Message-ID: <20040707173105.GA70913@ip.net.ua>
Content-Type: text/plain; charset="us-ascii"
Hi there,
I have some old patch for gbde(8). It fixes some omissions
in the utility usage (and its style) and in the manpage.
Can someone using this utility please double-check that this
patch is still correct (it's been a while since I developed
it), and possibly commit it (if you have commit privilege).
Cheers,
--
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer
-------------- next part --------------
Index: gbde.8
===================================================================
RCS file: /home/ncvs/src/sbin/gbde/gbde.8,v
retrieving revision 1.12
diff -u -p -r1.12 gbde.8
--- gbde.8 23 May 2004 08:40:52 -0000 1.12
+++ gbde.8 1 Jun 2004 15:25:02 -0000
@@ -51,8 +51,8 @@
.Ar destination
.Op Fl i
.Op Fl f Ar filename
-.Op Fl L Ar lockfile
-.Op Fl P Ar pass-phrase
+.Op Fl L Ar new-lockfile
+.Op Fl P Ar new-pass-phrase
.Nm
.Cm setkey
.Ar destination
@@ -62,12 +62,16 @@
.Op Fl L Ar new-lockfile
.Op Fl P Ar new-pass-phrase
.Nm
-.Cm destroy
+.Cm nuke
.Ar destination
.Op Fl n Ar key
.Op Fl l Ar lockfile
.Op Fl p Ar pass-phrase
-.Op Fl L Ar lockfile
+.Nm
+.Cm destroy
+.Ar destination
+.Op Fl l Ar lockfile
+.Op Fl p Ar pass-phrase
.Sh DESCRIPTION
.Bf -symbolic
NOTICE:
@@ -97,12 +101,21 @@ The operational aspect consists of two s
one to open and attach
a device to the in-kernel cryptographic
.Nm
-module,
-and one to close and detach a device.
+module
+.Pq Cm attach ,
+and one to close and detach a device
+.Pq Cm detach .
.Pp
The management part allows initialization of the master key and lock sectors
-on a device, initialization and replacement of pass-phrases and
-key invalidation and blackening functions.
+on a device
+.Pq Cm init ,
+initialization and replacement of pass-phrases
+.Pq Cm setkey ,
+and key invalidation
+.Pq Cm nuke
+and blackening
+.Pq Cm destroy
+functions.
.Pp
The
.Fl l Ar lockfile
@@ -114,7 +127,11 @@ option is specified, the first sector is
The
.Fl L Ar new-lockfile
argument
-specifies the lock selector file for the key modified with the
+specifies the lock selector file for the key
+initialized with the
+.Cm init
+subcommand
+or modified with the
.Cm setkey
subcommand.
.Pp
Index: gbde.c
===================================================================
RCS file: /home/ncvs/src/sbin/gbde/gbde.c,v
retrieving revision 1.23
diff -u -p -r1.23 gbde.c
--- gbde.c 25 Jun 2004 13:04:49 -0000 1.23
+++ gbde.c 7 Jul 2004 17:25:06 -0000
@@ -130,18 +130,18 @@ g_hexdump(void *ptr, int length)
#endif
static void __dead2
-usage(const char *reason)
+usage(void)
{
- const char *p;
- p = getprogname();
- fprintf(stderr, "Usage error: %s", reason);
- fprintf(stderr, "Usage:\n");
- fprintf(stderr, "\t%s attach dest [-l lockfile]\n", p);
- fprintf(stderr, "\t%s detach dest\n", p);
- fprintf(stderr, "\t%s init /dev/dest [-i] [-f filename] [-L lockfile]\n", p)
;
- fprintf(stderr, "\t%s setkey dest [-n key] [-l lockfile] [-L lockfile]\n", p
);
- fprintf(stderr, "\t%s destroy dest [-n key] [-l lockfile] [-L lockfile]\n",
p);
+ fprintf(stderr,
+"usage: gbde attach destination [-l lockfile] [-p pass-phrase]\n"
+" gbde detach destination\n"
+" gbde init destination [-i] [-f filename] [-L new-lockfile]\n"
+" [-P new-pass-phrase]\n"
+" gbde setkey destination [-n key] [-l lockfile] [-p pass-phrase]\n"
+" [-L new-lockfile] [-P new-pass-phrase]\n"
+" gbde nuke destination [-n key] [-l lockfile] [-p pass-phrase]\n"
+" gbde destroy destination [-l lockfile] [-p pass-phrase]\n");
exit (1);
}
@@ -720,12 +720,12 @@ main(int argc, char **argv)
struct g_bde_softc sc;
if (argc < 3)
- usage("Too few arguments\n");
+ usage();
if ((i = modfind("g_bde")) < 0) {
/* need to load the gbde module */
if (kldload(GBDEMOD) < 0 || modfind("g_bde") < 0) {
- usage(GBDEMOD ": Kernel module not available\n");
+ err(1, GBDEMOD ": Kernel module not available");
}
}
doopen = 0;
@@ -752,7 +752,7 @@ main(int argc, char **argv)
doopen = 1;
opts = "l:p:n:";
} else {
- usage("Unknown sub command\n");
+ usage();
}
argc--;
argv++;
@@ -791,11 +791,12 @@ main(int argc, char **argv)
case 'n':
n_opt = strtoul(optarg, &q, 0);
if (!*optarg || *q)
- usage("-n argument not numeric\n");
+ err(1, "-n argument not numeric");
if (n_opt < -1 || n_opt > G_BDE_MAXKEYS)
- usage("-n argument out of range\n"); break;
+ err(1, "-n argument out of range");
+ break;
default:
- usage("Invalid option\n");
+ usage();
}
if (doopen) {
@@ -813,7 +814,7 @@ main(int argc, char **argv)
if (!memcmp(dest, _PATH_DEV, strlen(_PATH_DEV)))
strcpy(dest, dest + strlen(_PATH_DEV));
if (strchr(dest, '/'))
- usage("\"dest\" argument must be geom-name\n");
+ err(1, "\"destination\" argument must be geom-name");
}
memset(&sc, 0, sizeof sc);
@@ -860,7 +861,7 @@ main(int argc, char **argv)
}
break;
default:
- usage("Internal error\n");
+ err(1, "internal error");
}
return(0);
-------------- 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/20040707/
a25f17b8/attachment-0001.bin
------------------------------
Message: 4
Date: Wed, 7 Jul 2004 19:40:44 +0200
From: Daniel Lang <dl@leo.org>
Subject: Re: panic: m_copym, length > size of mbuf chain
To: Robert Watson <rwatson@freebsd.org>
Cc: current@freebsd.org
Message-ID: <20040707174044.GC45200@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii
Hi Robert,
Robert Watson wrote on Wed, Jul 07, 2004 at 12:24:59PM -0400:
[..]
> > As I told Bruce, I have never set debug.mpsafenet (in case you are
> > especially interested in this tunable).
>
> Yeah, that's one of the ones I was particularly interested in :-).
>
> Just to try ruling out possibilities -- have you run an extensive set of
> hardware diagnostics? Most server class hardware ships with a decent
> diagnostics disk, and I'm sure we can find some for you in the event your
> hardware didn't come with some. While it's quite possibly a software
I agree. I have indeed have asked our hardware department to check
the memory. They did run memtest86 several days without any error,
so I am somewhat convinced, that the memory is intact. It is Dell
memory, ordered just for this server, so I assume the specs match
the requirements.
However, it is obviously possible, that other system components could
be faulty. I did follow your advice and downloaded a set of diagnostic
utilities for this server from the Dell support page. I will execute them
tomorrow, when I'm back at the office.
> problem, tracking hardware problems using software symptoms constitutes
> undesirable pain and so it wouldn't hurt to give that a spin. I remember
> seing your earlier e-mails about running with WITNESS increasing the
> chances of pain -- this could be a bug in WITNESS as you suggest, or it
> could be that WITNESS increases the opportunities for a variety of locking
> related races by increasing the cost of lock/unlock operations.
True. And I have already reconsidered my suggestion, since the removal
of WITNESS did not result in a stable system. Instead I just
encountered tight lockups. The system was up a bit longer, though.
Regardless of the diagnostics to be done tomorrow, I will inspect
the latest crash, in which I was again lucky to get a crash-dump.
I will file a PR with my findings and mail the number to the -current
list. It was again inside of WITNESS code, this time a failed assertion.
Cheers,
Daniel
--
IRCnet: Mr-Spock - ceterum censeo Microsoftinem esse delendam -
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
------------------------------
Message: 5
Date: Wed, 7 Jul 2004 10:41:24 -0700 (PDT)
From: Luke <luked@pobox.com>
Subject: [fixed] Re: Yesterday's code panics: Don't call
insmntque(foo, NULL)
Cc: current@freebsd.org
Message-ID: <Pine.NEB.4.60.0407071038590.3569@mx.freeshell.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Since I said something...
I got the latest source again yesterday, built a kernel, and I don't see
this problem anymore.
Thanks you!
On Mon, 5 Jul 2004, Luke wrote:
> Date: Mon, 5 Jul 2004 12:08:52 -0700 (PDT)
> From: Luke <luked@pobox.com>
> Cc: current@freebsd.org
> Subject: Re: Yesterday's code panics: Don't call insmntque(foo, NULL)
>
>> On Mon, 5 Jul 2004, Chris Shenton wrote:
>>> I built a kernel from CVS yesterday, installed it and rebooted this
>>> morning. It panicked with the message (manually copied):
>>>
>>> ...
>>> mounting root from ufs:/dev/amrd0s1a
>>> panic: Don't call insmntque(foo, NULL)
>>> Debugger("panic")
>>> Stopped at Debugger+0x45: xchgl %ebx, in_Debugger.0
>>>
>>> This message appears in /usr/src/sys/kern/vfs_subr.c
>>>
>>> Any suggestions?
>>>
>>> Thanks.
>>
>> Perhaps I don't have the right debugging options turned on, but I'm
>> getting a page fault at that same spot (mounting root) with kernels built
>> on source from about fifteen minutes ago.
>> Kernels built from source from June 26 work.
>>
>> I've tried different kernel options trying to find something that doesn't
>> crash, but no luck so far.
>
> Sorry, I spoke too soon. Disabling ACPI at the loader allows the system to
> mount root.
> _______________________________________________
> 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"
>
------------------------------
Message: 6
Date: Wed, 7 Jul 2004 12:46:41 -0500
From: "Matthew D. Fuller" <fullermd@over-yonder.net>
Subject: Re: Rewrite cvsup & portupgrade in C
To: Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc: Kirk Strauser <kirk@strauser.com>
Message-ID: <20040707174641.GD54749@over-yonder.net>
Content-Type: text/plain; charset=us-ascii
On Tue, Jul 06, 2004 at 09:32:51PM -0700 I heard the voice of
Steve Kargl, and lo! it spake thus:
> On Tue, Jul 06, 2004 at 11:22:58PM -0500, Kirk Strauser wrote:
>
> > For example, OpenBSD doesn't have an m3 port for non-x86 platforms
>
> So, let Theo write a m3 port.
It doesn't just happen that easily.
You'd have to change the license to require commercial users to jump
over a cat when they make a profit off using the program. Then it'll
be rewritten more portably and efficiently in, like, a week.
--
Matthew Fuller (MF4839) | fullermd@over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
"The only reason I'm burning my candle at both ends, is because I
haven't figured out how to light the middle yet"
------------------------------
Message: 7
Date: Wed, 07 Jul 2004 22:05:53 +0400
From: Roman Kurakin <rik@cronyx.ru>
Subject: Re: Kernel modules
To: Alexander <lists@perespim.net>
Cc: freebsd-current@freebsd.org
Message-ID: <40EC3B81.7000802@cronyx.ru>
Content-Type: text/plain; charset=us-ascii; format=flowed
Alexander wrote:
>Does anyone know, what kernel parts may not be used in modules, and
>should be compiled directly into the kernel?
>
>
Why do you need to know this?
rik
>Thank you for your attention.
>
>
>
------------------------------
Message: 8
Date: Wed, 7 Jul 2004 13:13:27 -0500
From: "Matthew D. Fuller" <fullermd@over-yonder.net>
Subject: Re: bringing /etc/services up to date
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: current@freebsd.org
Message-ID: <20040707181327.GE54749@over-yonder.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 07, 2004 at 10:25:58AM -0700 I heard the voice of
Brooks Davis, and lo! it spake thus:
>
> Can you check how much this change slows down inetd startup with a
> few services enabled? The traditional argument against this is that
> reading the whole IANA service file takes too long. If the
> difference isn't measurable, the the argument is bogus, but I'm not
> sure that's the case. The alternative solution would be to add
> optional database backing. That shouldn't be too hard to do, and
> there are several examples to work from.
In theory, any program reading the data should be using
getservby{name,port}() and friends, since it avoids code duplication
and handles NIS and such already. So, hashing it into a DB and fixing
those functions to match would probably work. When this has been
brought up in the past, there's been expressed concern that a number
of programs don't, and piddle with the file manually, so while they
could still read the flatfile, they'd be in the dumps on performance
as the file grew. AFAIK, nobody's even done any exhaustive testing of
whether that really happens, or how much gain hashing would give.
--
Matthew Fuller (MF4839) | fullermd@over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
"The only reason I'm burning my candle at both ends, is because I
haven't figured out how to light the middle yet"
------------------------------
Message: 9
Date: Wed, 7 Jul 2004 11:17:49 -0700
From: "Gustavo A. Baratto" <gbaratto@superb.net>
Subject: Re: Rewrite cvsup & portupgrade in C
To: <freebsd-current@freebsd.org>
Message-ID: <02ef01c4644e$b5f956e0$6400a8c0@chivas>
Content-Type: text/plain; charset="iso-8859-1"
An opinion about having a csvup-like program in the base system, from a user
that is not a developer :
- It is a real pain to go find the cvsup package everytime I need to setup a
freebsd box... the versions are different for each freebsd release, and I
can never use the same URL with pkg_add... If I could, this wouldn't be a
big deal, because I could just script this once and use many times.
I use cvsup to sync /usr/src and /usr/ports. The first think I do (and
probably everybody else) after installing a RELEASE, is to cvsup /usr/src,
and buildworld to apply the patches and stress-test the box before going to
production. When I first started using freebsd about 2 years ago, I was
wondering why a so much needed and widely used tool was not present in the
base system, while things much less used and more dangerous were
(bind,ntp,sendmail,telnetd,etc). Having a cvs-like program in the base
system is not just a natural addition, but pretty much requirement for most
simple users like me.
Rsync is another tool that should be considered going to the base system as
well.
thanks guys :)
----- Original Message -----
From: "Steve Kargl" <sgk@troutmask.apl.washington.edu>
To: "Maxime Henrion" <mux@freebsd.org>
Cc: "Vladimir Dyuzhev" <vladimir-dozen@sympatico.ca>;
<freebsd-current@freebsd.org>
Sent: Wednesday, July 07, 2004 9:07 AM
Subject: Re: Rewrite cvsup & portupgrade in C
> On Wed, Jul 07, 2004 at 05:21:49PM +0200, Maxime Henrion wrote:
> >
> > So now, please everybody listen. I did look at the code. I chose C and
> > while it's probably not the best language to write CVSup with, it's far
> > from being bad at this task. It has actually been _very_ helpful for
> > some parts of the code. And finally, I'm doing the work here and it
> > works. If you think I'm wasting my time and prefer to use the m3
version,
> > noone will prevent you from doing so. If you want to rewrite CVSup in
yet
> > another language for some reason, noone will prevent you from doing so.
> >
>
> My initial argument does not invlove the language. I don't
> care about the language. My argument is that neither cvsup
> nor csup belong in the base system. Both utilities can be
> installed from ports. If you're going to import csup, then
> I hope csup goes through a security audit and you define a
> NO_CSUP make.conf variable.
>
> It is Kirk's incessant rambling that ezm3 isn't portable to
> other OSes; therefore, csup should be in the base system
> that I find illogical.
>
> --
> Steve
> _______________________________________________
> 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"
>
------------------------------
Message: 10
Date: Wed, 7 Jul 2004 20:20:18 +0200
From: Daniel Lang <dl@leo.org>
Subject: panic: Assertion i >= 0 && i < LOCK_NCHILDREN failed
To: freebsd-current@freebsd.org
Cc: rwatson@freebsd.org
Message-ID: <20040707182018.GA45659@atrbg11.informatik.tu-muenchen.de>
Content-Type: text/plain; charset=us-ascii
Hi,
as announced, here is the PR I just filed: kern/68779
it includes a gdb stack trace and some very basic analysys.
The crash dump and kernel are currently available, so if
anyone is interested in some particular data, please let me
know in the next few hours.
Thanks and best regards,
Daniel
--
IRCnet: Mr-Spock - Eddie would go! -
Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/
------------------------------
Message: 11
Date: Wed, 7 Jul 2004 11:22:15 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: speeding up ugen by an order of magnitude.
To: ticso@cicely.de
Cc: mycroft@netbsd.org
Message-ID:
<Pine.BSF.4.21.0407071111040.80217-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 7 Jul 2004, Bernd Walter wrote:
> On Tue, Jul 06, 2004 at 04:32:28PM -0700, Julian Elischer wrote:
> >
> > So, we had a device that we access through ugen.
> >
> > the manufacturer said we should get the transaction in 3 seconds
> > and wiindows and linux did, but FreeBSD got it in 15 seconds.
> > I suspect since the code is the same, NetBSD would get the same result..
> >
> > lokking at it I noticed that ugen does everything in 1K bits,
> > which is ok for USB1, but a bit silly for USB2.
>
> Mmm - 128k is very big - consider that you may have hundrets of
> ugen bulk pipes open - all with outstanding reads.
> This would eat up kernel memory quite fast.
Yes that's why I brought it up here.
That was only a "proof-of-concept" that showed that teh slowdown was
coming from the fact that the ugen was only pushing
one KB of data per frame (1mSec) interrupt. (it was pinned at 1MB/sec)
The correct answer may be to do what pould-henning suggested and use teh
physio facility to do this. I considerred that originally but there is
overhead in that too, and it is also possible that the NetBSD and
FreeBSD physio facilities have diverged enough to make this non trivial
as far as keeping diffs to a minimum. (It is after all NetBSD code).
It would be possibel to modulate teh malloc per xfer by only malloccing
a buffer large enough for the transfer, but the malloc per transfer
seems a lot of overhead. Alternatively it may be possible to malloc once
for every endpoint on teh client device, but I'm not clear on whether it
is possible to have multiple outstanding requests per endpoint. If so
then how many buffers DO we malloc, and how big? What if there are a lot
of endpoints?
>
> The problem is lost bus time between finishing an xfer and issuing
> the next one - consider that part of this lost time is OS dependend
> latency and in fact might be limited to FreeBSD.
No, the lost time is I believe due to something in the way that the ehci
driver is setting things up. I believe from empirical evidence that
we are getting one transfer per frame (8 uframes). I don't believe OS
response time is a key factor.
>
> What about those options:
> - limit the allocated memory to the user request so we don't take the
> whole 128k if not reuired.
this requires a separate malloc per xfer. it;s a valid option but
is it acceptable?
> - Do interleaving with 2 or more xfers if the read request is known to
> take more xfers.
You still need to malloc enough data for all outstanding data.
better to do it with ONE request than multiple..
>
> Naturally the situation with bulk writes is the same.
yes.
------------------------------
Message: 12
Date: Wed, 7 Jul 2004 14:25:10 -0400
From: Garance A Drosihn <drosih@rpi.edu>
Subject: Re: Rewrite cvsup & portupgrade in C
To: Maxime Henrion <mux@freebsd.org>
Cc: freebsd-current@freebsd.org
Message-ID: <p06110401bd11ec14cab2@[128.113.24.47]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
If Maxime has the time and the will to rewrite cvsup in C, then
there isn't much reason for anyone to argue with him over it.
Things get done by people who do the actual work, not by people
arguing on the mailing lists.
I personally like Modula-3 as a language, and I wish it were more
readily portable, etc. However, no matter what merits Modula-3
has as a computer language, the FreeBSD Project is pretty much a
C-based project. It should not be all that much of a shock that
a FreeBSD developer might want to rewrite CVSup in C, the same
way that we have rewritten a number of Perl scripts into C.
To me, the big question is "When will it be ready?". It would be
nice if we could start testing the rewrite in wider variety of
situations. We will need to do that if we hope to switch to
using it.
--
Garance Alistair Drosehn = gad@gilead.netel.rpi.edu
Senior Systems Programmer or gad@freebsd.org
Rensselaer Polytechnic Institute or drosih@rpi.edu
------------------------------
Message: 13
Date: Wed, 7 Jul 2004 11:27:22 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: speeding up ugen by an order of magnitude.
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: mycroft@netbsd.org
Message-ID:
<Pine.BSF.4.21.0407071122290.80217-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 7 Jul 2004, Poul-Henning Kamp wrote:
> In message <20040707091311.GE12877@cicely12.cicely.de>, Bernd Walter writes:
> >On Tue, Jul 06, 2004 at 04:32:28PM -0700, Julian Elischer wrote:
>
> >What about those options:
> >- limit the allocated memory to the user request so we don't take the
> > whole 128k if not reuired.
> >- Do interleaving with 2 or more xfers if the read request is known to
> > take more xfers.
>
> I would consider ugen to be a primary candidate to use physio like
> I belive scsi-tape drives do ?
I believe that is a good candidate. I considerred this as an option
but I haven't looked to see how compaitble NetBSD physio still is with
our diverged physio. FOr reasns of future co-operation, I'd like to keep
diffs to a minimum. As it is out USB code is VERY close to NetBSD except
for umass.c which is qiite different.
>
> --
> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG | TCP/IP since RFC 956
> FreeBSD committer | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
------------------------------
Message: 14
Date: Wed, 7 Jul 2004 11:30:54 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: bringing /etc/services up to date
To: "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc: current@freebsd.org
Message-ID: <20040707183054.GA22792@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 07, 2004 at 01:13:27PM -0500, Matthew D. Fuller wrote:
> On Wed, Jul 07, 2004 at 10:25:58AM -0700 I heard the voice of
> Brooks Davis, and lo! it spake thus:
> >
> > Can you check how much this change slows down inetd startup with a
> > few services enabled? The traditional argument against this is that
> > reading the whole IANA service file takes too long. If the
> > difference isn't measurable, the the argument is bogus, but I'm not
> > sure that's the case. The alternative solution would be to add
> > optional database backing. That shouldn't be too hard to do, and
> > there are several examples to work from.
>
> In theory, any program reading the data should be using
> getservby{name,port}() and friends, since it avoids code duplication
> and handles NIS and such already. So, hashing it into a DB and fixing
> those functions to match would probably work. When this has been
> brought up in the past, there's been expressed concern that a number
> of programs don't, and piddle with the file manually, so while they
> could still read the flatfile, they'd be in the dumps on performance
> as the file grew. AFAIK, nobody's even done any exhaustive testing of
> whether that really happens, or how much gain hashing would give.
IMO, programs that read the flatfile will get what they deserve. They
are broken and can not work in perfectly valid environments. For
instance, they won't work with the following services file in an NIS
environment:
sunrpc 111/tcp rpcbind #SUN Remote Procedure Call
sunrpc 111/udp rpcbind #SUN Remote Procedure Call
syslog 514/udp
+
-- Broooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040707/
0e5bd805/attachment-0001.bin
------------------------------
Message: 15
Date: Wed, 7 Jul 2004 11:32:58 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: Rewrite cvsup & portupgrade in C
To: "Gustavo A. Baratto" <gbaratto@superb.net>
Cc: freebsd-current@freebsd.org
Message-ID: <20040707183258.GB22792@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 07, 2004 at 11:17:49AM -0700, Gustavo A. Baratto wrote:
> An opinion about having a csvup-like program in the base system, from a user
> that is not a developer :
> - It is a real pain to go find the cvsup package everytime I need to setup a
> freebsd box... the versions are different for each freebsd release, and I
> can never use the same URL with pkg_add... If I could, this wouldn't be a
> big deal, because I could just script this once and use many times.
> I use cvsup to sync /usr/src and /usr/ports. The first think I do (and
> probably everybody else) after installing a RELEASE, is to cvsup /usr/src,
> and buildworld to apply the patches and stress-test the box before going to
> production. When I first started using freebsd about 2 years ago, I was
> wondering why a so much needed and widely used tool was not present in the
> base system, while things much less used and more dangerous were
> (bind,ntp,sendmail,telnetd,etc). Having a cvs-like program in the base
> system is not just a natural addition, but pretty much requirement for most
> simple users like me.
No version number is needed, just type "pkg_add -r cvsup" or "pkg_add -r
cvsup-without-gui" (what I use). That my first step when I install a
FreeBSD box.
-- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040707/
4aff2a03/attachment-0001.bin
------------------------------
Message: 16
Date: Wed, 7 Jul 2004 11:33:23 -0700
From: Christopher Taylor <freebsd@kiwi.net>
Subject: Re: bringing /etc/services up to date
To: current@freebsd.org
Message-ID: <20040707183323.GA95847@trogon.kiwi.net>
Content-Type: text/plain; charset="us-ascii"
If it were up to me, I would leave the existing /etc/services as is but
include the "up-to-date" version in the tree, renamed, so that we have
the option of using it if we wish.
--
christopher h. taylor <ctaylor@kiwi.net>
code monkey, running [FreeBSD 4.10-RELEASE-p2 i386]
+----------------------------------------------------------------------+
| GPG-Key: gpg --keyserver PGP.MIT.EDU --recv-key 0x62C429BA |
| Key Fingerprint: 7BE5 D9B6 3F6E A4BD 3E28 7945 C90F F36F 62C4 29BA |
+----------------------------------------------------------------------+
[ Yahoo/athen66 AIM/athen66 ICQ/1136957 SMS/mobile@kiwi.net ]
[ MSN/athen66@hotmail.com Friendster/friendster@kiwi.net ]
Go away or I will replace you with a very small shell script.
** Colin Percival <colin.percival@wadham.ox.ac.uk> [2004-07-07 03:43:25 -0700]
:
// I've put together a patch to bring /etc/services up to date with
// almost a decade of IANA port assignments. Unfortunately, this
// turned out to be rather larger than I expected: It adds 6400 lines,
// and increases the size of /etc/services from 73 kB to 327 kB.
// Is anyone going to be very unhappy if I go ahead and commit this?
//
// Colin Percival
//
// _______________________________________________
// 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"
-------------- 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/20040707/
0707707c/attachment-0001.bin
------------------------------
Message: 17
Date: Wed, 7 Jul 2004 13:36:31 -0500
From: "Matthew D. Fuller" <fullermd@over-yonder.net>
Subject: Re: bringing /etc/services up to date
To: Brooks Davis <brooks@one-eyed-alien.net>
Cc: current@freebsd.org
Message-ID: <20040707183631.GH54749@over-yonder.net>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 07, 2004 at 11:30:54AM -0700 I heard the voice of
Brooks Davis, and lo! it spake thus:
>
> IMO, programs that read the flatfile will get what they deserve.
You won't get any argument from *ME* on that. But there ARE still
programs (that do "get what they deserve", but it's still annoying)
that parse /etc/passwd manually instead of using getpw*() or PAM, too.
Chances are, there are programs being written right now that do that,
either through ignorance, or "for security", or just for sheer
cussedness.
That's not to say it's a showstopper that should paralyze any future
work. But it's also not entirely a handwave "who cares?" Like most
interesting things in life, it's an irritating middle ground.
--
Matthew Fuller (MF4839) | fullermd@over-yonder.net
Systems/Network Administrator | http://www.over-yonder.net/~fullermd/
"The only reason I'm burning my candle at both ends, is because I
haven't figured out how to light the middle yet"
------------------------------
Message: 18
Date: Wed, 7 Jul 2004 22:41:30 +0400
From: Alex K <lesha@intercaf.ru>
Subject: sockstat broken (Jul-1 current)
To: freebsd-current@freebsd.org
Message-ID: <200407072241.30053.lesha@intercaf.ru>
Content-Type: text/plain; charset="koi8-r"
Hello, everyone!
It seems to me that sockstat got broken in -current.
Worked fine on Jun-25 current.
$ sockstat
sockstat: struct xtcpcb size mismatch
sockstat: struct xfile size mismatch
Cheers,
AL
p.s. Yes I have already tried:
cd /usr/src/usr.bin/sockstat; make clean; make; make install
--
perl -e 'print unpack("u","1;&5S:&%`:6YT97)C868N<G4`");'
------------------------------
Message: 19
Date: Wed, 7 Jul 2004 14:42:22 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: Kernel modules
To: Alexander <lists@perespim.net>
Cc: freebsd-current@freebsd.org
Message-ID:
<Pine.NEB.3.96L.1040707144009.37929M-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 7 Jul 2004, Alexander wrote:
> Does anyone know, what kernel parts may not be used in modules, and
> should be compiled directly into the kernel?
>
> Thank you for your attention.
Well, in general, the things that are built into modules can be loaded as
modules. There are things that aren't currently modularized but could be,
but building that list will require iterating the kernel. There's been a
fair amount of interest lately in at leasting making things conditionally
compilable, if not modularized, just because our kernel is big and there
are environments where reducing its size would be useful, even if we build
it in by default. For example, right now UFS ACL code is conditionally
compiled, but we always link in the basic ACL infrastructure. We should
add an "options ACL" that compiles in kern_acl.c and otherwise provides
process-friendly "Oops, it's not there" behavior. Most current modules
have a man page, and you can generate some basic module lists by looking
in src/sys/modules, which includes the build infrastructure for the
modules. Note that some sub-directories build more than one module.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
------------------------------
Message: 20
Date: Wed, 7 Jul 2004 11:47:42 -0700
From: Brooks Davis <brooks@one-eyed-alien.net>
Subject: Re: bringing /etc/services up to date
To: "Matthew D. Fuller" <fullermd@over-yonder.net>
Cc: current@freebsd.org
Message-ID: <20040707184742.GA26130@Odin.AC.HMC.Edu>
Content-Type: text/plain; charset="us-ascii"
On Wed, Jul 07, 2004 at 01:36:31PM -0500, Matthew D. Fuller wrote:
> On Wed, Jul 07, 2004 at 11:30:54AM -0700 I heard the voice of
> Brooks Davis, and lo! it spake thus:
> >
> > IMO, programs that read the flatfile will get what they deserve.
>
> You won't get any argument from *ME* on that. But there ARE still
> programs (that do "get what they deserve", but it's still annoying)
> that parse /etc/passwd manually instead of using getpw*() or PAM, too.
> Chances are, there are programs being written right now that do that,
> either through ignorance, or "for security", or just for sheer
> cussedness.
>
> That's not to say it's a showstopper that should paralyze any future
> work. But it's also not entirely a handwave "who cares?" Like most
> interesting things in life, it's an irritating middle ground.
Given that a) nothing will break [0] and b) a quick vi session will fix
the "problem", I'm not worried. I am worried about what happens to the
performance of applications that do use the API properly. If their
performance degrades significantly, that needs to be fixed before this
code is brought in.
-- Brooks
[0] I suppose a deeply emdeded device with next no free memory using a
really stupid parser could break, but if that case, where did they find
the storage for the services file?
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040707/
17e06a70/attachment-0001.bin
------------------------------
Message: 21
Date: Wed, 07 Jul 2004 11:49:07 -0700
From: "Kevin Oberman" <oberman@es.net>
Subject: Re: unkillable process in physrd-sttae
To: Mikhail Teterin <mi+mx@aldan.algebra.com>
Cc: pav@FreeBSD.org
Message-ID: <20040707184907.E4D445D09@ptavv.es.net>
> From: Mikhail Teterin <mi+mx@aldan.algebra.com>
> Date: Tue, 6 Jul 2004 13:46:55 -0400
> Sender: owner-freebsd-current@freebsd.org
>
> => As I was playing a DVD, the picture stopped and everything seemingly
> => froze. I was able to login from another machine and look, what's
> => happening.
> =
> =I see this regularly, both DVD-Video playback and reading of files off
> =data DVD. Workaround is to list directories and read files from the DVD,
> =it will unstuck blocked process too. Or, issue
>
> I'm not so much concerned about the DVD-playback (`cdcontrol reset' is
> my workaround), but for the possibility of a process getting into a
> state, where it can not be killed. NFS-related issues used to be like
> this, but, it seems, `umount -f' works now.
>
> =# atacontrol mode 1 udma33 xxx
> =
> =(in case your DVD unit is alone on secondary IDE channel)...
>
> Thanks, I'll try that too. Currently I just run
>
> while (1)
> cdcontrol reset
> sleep 1
> end
>
> while the movie is playing :-(
I have seen similar problems on my ThinkPad T30. It used to work very
cleanly, but now I am getting intermittent freezes, too. My CD is also
running DMA33 with ATAPICAM and CURRENT updated at least once a week and
often much more frequently, but my windows (other than the on running
the application) don't freeze. I can't kill the process though and it
stays in the phyrd state.
I can simply run another application (in another window) that accesses
the DVD. As soon as I do that, the frozen window takes off again and
runs without any error.
This looks to me like I am losing an interrupt. The driver locks things
up until the new application kicks the drive, delivering an interrupt
and things are off and running.
I first noticed this about 2 weeks ago, but I had not used the drive for
a couple of months for large transfers, so I don;t know exactly when the
problem showed up. mplayer is the application I was using.
--
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: 22
Date: Wed, 7 Jul 2004 11:49:11 -0700
From: "Gustavo A. Baratto" <gbaratto@superb.net>
Subject: Re: Rewrite cvsup & portupgrade in C
To: "Brooks Davis" <brooks@one-eyed-alien.net>
Cc: freebsd-current@freebsd.org
Message-ID: <031c01c46453$17f3bfd0$6400a8c0@chivas>
Content-Type: text/plain; charset="iso-8859-1"
mmmmmm... good,
so, the component of the system located between the monitor and the chair
was the problem ;)
Thanks for your advice.
----- Original Message -----
From: "Brooks Davis" <brooks@one-eyed-alien.net>
To: "Gustavo A. Baratto" <gbaratto@superb.net>
Cc: <freebsd-current@freebsd.org>
Sent: Wednesday, July 07, 2004 11:32 AM
Subject: Re: Rewrite cvsup & portupgrade in C
------------------------------
Message: 23
Date: Wed, 07 Jul 2004 11:38:48 -0700
From: Colin Percival <colin.percival@wadham.ox.ac.uk>
Subject: rsync (was: Re: Rewrite cvsup & portupgrade in C)
To: "Gustavo A. Baratto" <gbaratto@superb.net>
Cc: freebsd-current@freebsd.org
Message-ID: <6.1.0.6.1.20040707113145.03e4ef98@popserver.sfu.ca>
Content-Type: text/plain; charset=us-ascii
At 11:17 07/07/2004, Gustavo A. Baratto wrote:
>Rsync is another tool that should be considered going to the base system as
>well.
Given that rsync
(a) is distributed under the GPL license, and
(b) has had two serious security flaws in the past year,
I don't think we really want to import it right now (or
possibly ever).
Colin Percival
------------------------------
Message: 24
Date: Wed, 7 Jul 2004 14:53:38 -0400 (EDT)
From: Robert Watson <rwatson@freebsd.org>
Subject: Re: speeding up ugen by an order of magnitude.
To: Julian Elischer <julian@elischer.org>
Cc: mycroft@netbsd.org
Message-ID:
<Pine.NEB.3.96L.1040707144843.37929O-100000@fledge.watson.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 7 Jul 2004, Julian Elischer wrote:
> Yes that's why I brought it up here. That was only a "proof-of-concept"
> that showed that teh slowdown was coming from the fact that the ugen was
> only pushing one KB of data per frame (1mSec) interrupt. (it was pinned
> at 1MB/sec) The correct answer may be to do what pould-henning
> suggested and use teh physio facility to do this. I considerred that
> originally but there is overhead in that too, and it is also possible
> that the NetBSD and FreeBSD physio facilities have diverged enough to
> make this non trivial as far as keeping diffs to a minimum. (It is after
> all NetBSD code).
You might want to take a look at the ZERO_COPY socket send code, as well
as the sendfile() code... FYI, I'm in the process of reformulating some
of the zero copy send code on the advice of Alan Cox to make it less
strict about alignment, etc.
Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
robert@fledge.watson.org Principal Research Scientist, McAfee Research
>
> It would be possibel to modulate teh malloc per xfer by only malloccing
> a buffer large enough for the transfer, but the malloc per transfer
> seems a lot of overhead. Alternatively it may be possible to malloc once
> for every endpoint on teh client device, but I'm not clear on whether it
> is possible to have multiple outstanding requests per endpoint. If so
> then how many buffers DO we malloc, and how big? What if there are a lot
> of endpoints?
>
>
> >
> > The problem is lost bus time between finishing an xfer and issuing
> > the next one - consider that part of this lost time is OS dependend
> > latency and in fact might be limited to FreeBSD.
>
> No, the lost time is I believe due to something in the way that the ehci
> driver is setting things up. I believe from empirical evidence that
> we are getting one transfer per frame (8 uframes). I don't believe OS
> response time is a key factor.
>
>
> >
> > What about those options:
> > - limit the allocated memory to the user request so we don't take the
> > whole 128k if not reuired.
>
> this requires a separate malloc per xfer. it;s a valid option but
> is it acceptable?
>
>
> > - Do interleaving with 2 or more xfers if the read request is known to
> > take more xfers.
>
> You still need to malloc enough data for all outstanding data.
> better to do it with ONE request than multiple..
>
>
> >
> > Naturally the situation with bulk writes is the same.
>
> yes.
>
> _______________________________________________
> 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"
>
------------------------------
Message: 25
Date: Wed, 07 Jul 2004 11:48:24 -0700
From: Nate Lawson <nate@root.org>
Subject: Re: Current broken on my laptop (Toshiba Libretto 110CT)
To: Mark Murray <mark@grondar.org>
Cc: current@freebsd.org
Message-ID: <40EC4578.4060100@root.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Mark Murray wrote:
> I've been hoping this was temporary instability, but it appears to
> be here to stay.
>
> My Toshiba Libretto (ToPIC97 chipset) hangs hard on boot at a random
> time with recent currents. Ie the hang can happen while the probes
> are still happening or it can happen while the rc scripts are
> running. I never get as far as being able to log in. This happens
> with a range of BIOS options, and also with ACPI disabled. I have
> the latest BIOS for my laptop (8.10). I have tried it with no cards
> in the PCMCIA/CardBus slots to no avail.
>
> The hang symptom is a hard hang with no keyboard response; I need
> to hit reset or do a power-down.
>
> Enclosed is output from dmesg. Any suggestions?
These parts of the dmesg look sketchy:
> psm0: unable to allocate IRQ
> atpic: No ELCR to configure IRQ12 as edge/high
> psmcpnp0 irq 12 on acpi0
> psm0: current command byte:0047
> psm0: <PS/2 Mouse> irq 12 on atkbdc0
>
> sio0: irq maps: 0x1 0x11 0x11 0x11
> sio0 port 0x3f8-0x3ff irq 4 on acpi0
> sio0: type 16550A
> atpic: No ELCR to configure IRQ4 as edge/high
>
> atpic: Ignoring invalid level/low configuration for IRQ13
I'm guessing it's the atpic changes that are causing this.
--
-Nate
------------------------------
Message: 26
Date: Wed, 07 Jul 2004 14:03:31 -0500 (CDT)
From: "Conrad J. Sabatier" <conrads@cox.net>
Subject: Any way to debug a hard lockup?
To: freebsd-current@freebsd.org
Cc: freebsd-x11@freebsd.org
Message-ID: <XFMail.20040707140331.conrads@cox.net>
Content-Type: text/plain; charset=us-ascii
For the last few days, my amd64 box (Athlon 64 3200+, 5.2-CURRENT,
updating just about daily lately) has been locking up hard fairly
often, and I have no clue as to why.
Checking the logs after rebooting reveals nothing at all out of the
ordinary. The box just "seizes up" and that's that. Only thing to do
is a power-down and restart.
Changing from SCHED_ULE to SCHED_4BSD appears to make no difference at
all.
My other box, an older (32-bit) Athlon, has been rock stable. I've
been keeping both machines updated simultaneously to exactly the same
revisions, using as near-identical system settings as possible also,
the main difference being I'm running X.org/GNOME on the amd64 box and
no X on the i386 box.
Any suggestions? Instinct tells me it may be a problem with some of
the ports I'm running (X.org/GNOME, hence the Cc:s), but how to verify?
Sure, I could run without X a while and see how it goes, but that still
won't help to isolate the problem, if it is, in fact, port-related.
Thanks.
--
Conrad J. Sabatier <conrads@cox.net> -- "In Unix veritas"
------------------------------
Message: 27
Date: Wed, 7 Jul 2004 22:09:59 +0300
From: Alexander <lists@perespim.net>
Subject: Re[2]: Kernel modules
To: freebsd-current@freebsd.org
Message-ID: <1928959957.20040707220959@perespim.net>
Content-Type: text/plain; charset=us-ascii
Hello Roman,
Wednesday, July 7, 2004, 9:05:53 PM, you wrote:
RK> Why do you need to know this?
just want to build kernel as small as it is possible, and then add
functionality via modules
--
Best regards,
Alexander mailto:lists@perespim.net
------------------------------
Message: 28
Date: Wed, 07 Jul 2004 12:13:29 -0700
From: Sean McNeil <sean@mcneil.com>
Subject: Re: Any way to debug a hard lockup?
To: conrads@cox.net
Cc: freebsd-x11@freebsd.org
Message-ID: <1089227609.34828.6.camel@server.mcneil.com>
Content-Type: text/plain
On Wed, 2004-07-07 at 12:03, Conrad J. Sabatier wrote:
> For the last few days, my amd64 box (Athlon 64 3200+, 5.2-CURRENT,
> updating just about daily lately) has been locking up hard fairly
> often, and I have no clue as to why.
>
> Checking the logs after rebooting reveals nothing at all out of the
> ordinary. The box just "seizes up" and that's that. Only thing to do
> is a power-down and restart.
>
> Changing from SCHED_ULE to SCHED_4BSD appears to make no difference at
> all.
>
> My other box, an older (32-bit) Athlon, has been rock stable. I've
> been keeping both machines updated simultaneously to exactly the same
> revisions, using as near-identical system settings as possible also,
> the main difference being I'm running X.org/GNOME on the amd64 box and
> no X on the i386 box.
>
> Any suggestions? Instinct tells me it may be a problem with some of
> the ports I'm running (X.org/GNOME, hence the Cc:s), but how to verify?
> Sure, I could run without X a while and see how it goes, but that still
> won't help to isolate the problem, if it is, in fact, port-related.
>
> Thanks.
I've had the same problem, but not the time to look into it. You may
want to try to telnet, ssh, or use the serial port. I'm not sure, but
it seems the machine is still running but X is locked up solid and
ctl-alt-f1 doesn't work. Serial port access would be your best bet.
The lockups started for me after the native preemption stuff was added
in.
Sean
------------------------------
Message: 29
Date: Wed, 07 Jul 2004 15:19:35 -0400
From: Joe Marcus Clarke <marcus@marcuscom.com>
Subject: Re: Any way to debug a hard lockup?
To: conrads@cox.net
Cc: freebsd-x11@freebsd.org
Message-ID: <1089227975.854.57.camel@gyros>
Content-Type: text/plain; charset="us-ascii"
On Wed, 2004-07-07 at 15:03, Conrad J. Sabatier wrote:
> For the last few days, my amd64 box (Athlon 64 3200+, 5.2-CURRENT,
> updating just about daily lately) has been locking up hard fairly
> often, and I have no clue as to why.
>
> Checking the logs after rebooting reveals nothing at all out of the
> ordinary. The box just "seizes up" and that's that. Only thing to do
> is a power-down and restart.
>
> Changing from SCHED_ULE to SCHED_4BSD appears to make no difference at
> all.
>
> My other box, an older (32-bit) Athlon, has been rock stable. I've
> been keeping both machines updated simultaneously to exactly the same
> revisions, using as near-identical system settings as possible also,
> the main difference being I'm running X.org/GNOME on the amd64 box and
> no X on the i386 box.
>
> Any suggestions? Instinct tells me it may be a problem with some of
> the ports I'm running (X.org/GNOME, hence the Cc:s), but how to verify?
> Sure, I could run without X a while and see how it goes, but that still
> won't help to isolate the problem, if it is, in fact, port-related.
You'll need to use a serial console and DDB to debug these problems.
See
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.
html on setting that up. Once the machine breaks into the debugger, you'll be
able to get a stack trace.
Joe
>
> Thanks.
--
PGP Key : http://www.marcuscom.com/pgp.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20040707/
201c1c03/attachment-0001.bin
------------------------------
Message: 30
Date: Wed, 7 Jul 2004 12:20:35 -0700 (PDT)
From: Julian Elischer <julian@elischer.org>
Subject: Re: speeding up ugen by an order of magnitude.
To: ticso@cicely.de
Cc: Poul-Henning Kamp <phk@phk.freebsd.dk>
Message-ID:
<Pine.BSF.4.21.0407071137440.80217-100000@InterJet.elischer.org>
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Wed, 7 Jul 2004, Bernd Walter wrote:
> On Wed, Jul 07, 2004 at 11:16:14AM +0200, Poul-Henning Kamp wrote:
> > In message <20040707091311.GE12877@cicely12.cicely.de>, Bernd Walter write
s:
> > >On Tue, Jul 06, 2004 at 04:32:28PM -0700, Julian Elischer wrote:
> >
> > >What about those options:
> > >- limit the allocated memory to the user request so we don't take the
> > > whole 128k if not reuired.
> > >- Do interleaving with 2 or more xfers if the read request is known to
> > > take more xfers.
> >
> > I would consider ugen to be a primary candidate to use physio like
> > I belive scsi-tape drives do ?
>
> I don't really know the points between physio and the current way.
> The story with USB bulk transfers is that legal transfers can have a
> data size of even down to 0 bytes and a lot a typical clients do
> small transfers - just depends on the designers needs.
I might add that the INTERRUPT mode code for ugen
does things in turn of 128 byte chunks, but for USB2
devices it is now permissable to use chunks of up to 1024 bytes.
we should probably make that adjustable depending on whether the device
is a USB 2 one or not..
Ther eis a lot to be done here to make this code really USB-2 code
as opposed to USB-2 "aware" code.
> In the current code it seems that short transfers are already broken
> at least I don't see where short transfers can break out of the while
> loop so the knowledge about the real transfers size is lost.
> Under normal conditions we should break out on short transfers and
> return the so far transfered size.
> We should also be able to do interleaving some day.
> If you think that the requirements wouldn't collide with physio then
> OK.
Physio simply transforms a transfer into user space in a way that the
transfers don't require a buffer, but rather, use the user's buffer
pages as the direct target of the transfer. You need to supply a
"strategy" routine that does both read and write to the mapped buffers
on behalf of physio and it tends to use system "buf" structs.
>
> Nevertheless I see ugen more as a quick and dirty way to test drive a
> device from userland with all it's great debugging capabilities before
> writing a specific kernel driver.
> The requirement that ugen has to be generic is often bad for
> performance sensitive applications.
Ugen is used in production all over the place where people have to used
devices there is no specific support for, and where there is no
kernel expertise.
>
> --
> B.Walter BWCT http://www.bwct.de
> bernd@bwct.de info@bwct.de
>
> _______________________________________________
> 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"
>
------------------------------
Message: 31
Date: Wed, 7 Jul 2004 21:23:02 +0200
From: Maxime Henrion <mux@freebsd.org>
Subject: Re: Rewrite cvsup & portupgrade in C
To: Garance A Drosihn <drosih@rpi.edu>
Cc: freebsd-current@freebsd.org
Message-ID: <20040707192302.GL82302@elvis.mu.org>
Content-Type: text/plain; charset=us-ascii
Garance A Drosihn wrote:
> If Maxime has the time and the will to rewrite cvsup in C, then
> there isn't much reason for anyone to argue with him over it.
> Things get done by people who do the actual work, not by people
> arguing on the mailing lists.
>
> I personally like Modula-3 as a language, and I wish it were more
> readily portable, etc. However, no matter what merits Modula-3
> has as a computer language, the FreeBSD Project is pretty much a
> C-based project. It should not be all that much of a shock that
> a FreeBSD developer might want to rewrite CVSup in C, the same
> way that we have rewritten a number of Perl scripts into C.
>
> To me, the big question is "When will it be ready?". It would be
> nice if we could start testing the rewrite in wider variety of
> situations. We will need to do that if we hope to switch to
> using it.
I hope to be able to release a beta version of csup soon now. Be
sure that as soon as I think it's ready for it, you'll be one of the
first (with John Polstra, of course!) I'll contact. I want that to
happen as soon as possible, so that we have a chance to test it for
as long as possible before 5.3-RELEASE. However, my limited free
time doesn't permit me to go as fast as I would. Anyways, the only
big feature still missing in csup before it's really interesting to
start testing is the status file support. I'm currently doing some
various cleanups and will get to that as soon as possible. Once this
is done, I'll release the beta.
Cheers,
Maxime
------------------------------
Message: 32
Date: Wed, 07 Jul 2004 14:26:32 -0500
From: Guy Helmer <ghelmer@palisadesys.com>
Subject: Re: Apache13+mod_ssl and mod_php4 core dumping
To: Vonleigh Simmons <nospam@illusionart.com>
Cc: freebsd-current@freebsd.org
Message-ID: <40EC4E68.7060104@palisadesys.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Vonleigh Simmons wrote:
>> I believe I had to build apache+mod_ssl with the
>> "APACHE_WITHOUT_EXPAT=YES" configuration to resolve this. ISTR that
>> php's built-in expat conflicted with Apache's.
>
>
> Makes sense. At first I couldn't update it because of conflicts
> with older versions of expat and libtool. After some deinstalling and
> reinstalling it finally compiled and that's when the core dumps started.
>
> What does expat for apache do? What things will be different and
> what problems could I run into by compiling it without expat? Last,
> since I'm fairly new at this, all I have to do is:
>
> make APACHE_WITHOUT_EXPAT=YES
>
> Or is it more involved? Thanks.
>
I'm not sure what the built-in expat provides. On my systems, Apache
works OK without it.
I've set APACHE_WITHOUT_EXPAT=YES in /etc/make.conf so it will always be
set when I rebuild Apache. It will work to set it on the command line,
also.
Guy
------------------------------
Message: 33
Date: Wed, 7 Jul 2004 22:44:04 +0300
From: Alexander <lists@perespim.net>
Subject: Re[2]: Kernel modules
To: freebsd-current@freebsd.org
Message-ID: <242167631.20040707224404@perespim.net>
Content-Type: text/plain; charset=us-ascii
Hello Robert,
thank you for your answer
--
Best regards,
Alexander mailto:lists@perespim.net
------------------------------
Message: 34
Date: Wed, 7 Jul 2004 22:05:36 +0200
From: Marius Strobl <marius@alchemy.franken.de>
Subject: Re: Query on status of cross-builds
To: Marcel Moolenaar <marcel@xcllnt.net>
Cc: current@freebsd.org
Message-ID: <20040707220536.A86755@newtrinity.zeist.de>
Content-Type: text/plain; charset=us-ascii
On Fri, Jul 02, 2004 at 03:50:17PM -0700, Marcel Moolenaar wrote:
> On Sat, Jul 03, 2004 at 12:19:36AM +0300, Ruslan Ermilov wrote:
> > >
> > > No. It's a compiler bug on sparc64. I think the old binutils just
> > > didn't complain about the invalid instruction. I compared the
> > > output of the native cc and the cross cc and they are different.
> > > Not much, but fataly so.
> > >
> > Yes, I produced that diff as well (by using -save-temps).
> > Unfortunately, I don't know sparc64 assembler at all...
>
> [context: the faulty instruction is the fstox in the following snippet]
>
> fmuls %f8, %f9, %f8
> fstox %f8, %f7
> st %f8, [%fp+2031]
>
> As far as I can tell, the fstox is faulty because the target
> FP register is a double extended FP, which therefore has to be
> an even numbered FP register. The native cc uses %f12, while
> the cross cc uses %f7.
>
> Simply replacing %f7 with %f6 or %f8 resolves the problem. Note
> that %f8 should have been the register, because it's used by
> the subsequent st instruction.
>
> I have no idea why a cross cc would trigger this. Maybe there's
> a flags field with more than 32 flags and defined as long. On 64-bit
> machines this works out well, on 32-bit machines this breaks.
> I dunno...
>
I hit this bug also with a native compilation on sparc64 trying to
build nmap. The patch below fixes both the cross-buildworlds and
the nmap build. It's taken from the GCC gcc-3_3-branch branch
(sparc.h revision 1.215.4.4) so it can be committed to the FSF
branch in FreeBSD. It's also part of GCC 3.4 and 3.4.1.
I have no idea why GNU tar trigged the bug only when cross building
for sparc64.
Index: sparc.h
===================================================================
RCS file: /usr/data/bsd/cvs/fbsd/src/contrib/gcc/config/sparc/sparc.h,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 sparc.h
--- sparc.h 11 Jul 2003 03:40:53 -0000 1.1.1.6
+++ sparc.h 7 Jul 2004 13:02:48 -0000
@@ -1233,6 +1233,20 @@
{-1, -1, -1, 0x20}, /* GENERAL_OR_EXTRA_FP_REGS */ \
{-1, -1, -1, 0x3f}} /* ALL_REGS */
+/* Defines invalid mode changes. Borrowed from pa64-regs.h.
+
+ SImode loads to floating-point registers are not zero-extended.
+ The definition for LOAD_EXTEND_OP specifies that integer loads
+ narrower than BITS_PER_WORD will be zero-extended. As a result,
+ we inhibit changes from SImode unless they are to a mode that is
+ identical in size. */
+
+#define CANNOT_CHANGE_MODE_CLASS(FROM, TO, CLASS) \
+ (TARGET_ARCH64 \
+ && (FROM) == SImode \
+ && GET_MODE_SIZE (FROM) != GET_MODE_SIZE (TO) \
+ ? reg_classes_intersect_p (CLASS, FP_REGS) : 0)
+
/* The same information, inverted:
Return the class number of the smallest class containing
reg number REGNO. This could be a conditional expression
------------------------------
_______________________________________________
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 68, Issue 9
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[31m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m