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: speeding up ugen by an order of magnitude. (Bernd Walter)
2. Re: contradictory: Automatic reboot in 15 seconds ...
(Bernd Walter)
3. Re[2]: Rewrite cvsup & portupgrade in C (Alexander)
4. Kernel modules (Alexander)
5. bringing /etc/services up to date (Colin Percival)
6. Subversion (was Rewrite cvsup & portupgrade in C) (Craig Boston)
7. Re: bringing /etc/services up to date (Drew Broadley)
8. Re: bringing /etc/services up to date (Drew Broadley)
9. Re: bringing /etc/services up to date (Brad Knowles)
10. Re: COMPAT_43 tty processing ? (pfgshield-pedro@yahoo.com)
11. Re: unkillable process in physrd-sttae (Mikhail Teterin)
12. Re: bringing /etc/services up to date (John Merryweather Cooper)
13. Fatal trap 12 in microuptime (Bjoern A. Zeeb)
----------------------------------------------------------------------
Message: 1
Date: Wed, 7 Jul 2004 11:59:50 +0200
From: Bernd Walter <ticso@cicely12.cicely.de>
Subject: Re: speeding up ugen by an order of magnitude.
To: Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc: FreeBSD current users <current@freebsd.org>
Message-ID: <20040707095949.GF12877@cicely12.cicely.de>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 07, 2004 at 11:16:14AM +0200, 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 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.
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.
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.
--
B.Walter BWCT http://www.bwct.de
bernd@bwct.de info@bwct.de
------------------------------
Message: 2
Date: Wed, 7 Jul 2004 12:03:29 +0200
From: Bernd Walter <ticso@cicely12.cicely.de>
Subject: Re: contradictory: Automatic reboot in 15 seconds ...
To: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc: FreeBSD current mailing list <current@freebsd.org>
Message-ID: <20040707100328.GG12877@cicely12.cicely.de>
Content-Type: text/plain; charset=us-ascii
On Wed, Jul 07, 2004 at 09:33:36AM +0000, Bjoern A. Zeeb wrote:
> Hi,
>
> while PXE booting I ran into a panic and got this message:
>
> --- cut ---
> ...
> panic: page fault
>
> syncing disks, buffers remaining...
> done
> Uptime: 2s
> Automatic reboot in 15 seconds - press a key on the console to abort
> --> Press a key on the console to reboot,
> --> or switch off the system now.
> --- cut ---
>
>
> so what should I do now - press a key to abort or press a key to
> reboot?
Press a key to reboot - that's the last message.
Somehow the automtic reboot was aborted.
> Actually pressing a key seems to reboot the machine while not doing
> anything results in nothing happening - so the automatic reboot
> doesn't seem to happen. Perhaps some broken logic in shutdown_panic ?
A your system received a char to abort the automatic reboot.
E.g. a bad configured terminal server for serial acces may have send
a stop char.
--
B.Walter BWCT http://www.bwct.de
bernd@bwct.de info@bwct.de
------------------------------
Message: 3
Date: Wed, 7 Jul 2004 13:33:09 +0300
From: Alexander <lists@perespim.net>
Subject: Re[2]: Rewrite cvsup & portupgrade in C
To: freebsd-current@freebsd.org
Message-ID: <1112610824.20040707133309@perespim.net>
Content-Type: text/plain; charset=us-ascii
thx for pointing me at that post, exciting,
i think subversion hackers have fixed the main problems for now..
well, i hope, really :-/
--
Best regards,
Alexander mailto:lists@perespim.net
------------------------------
Message: 4
Date: Wed, 7 Jul 2004 13:46:02 +0300
From: Alexander <lists@perespim.net>
Subject: Kernel modules
To: freebsd-current@freebsd.org
Message-ID: <1381764998.20040707134602@perespim.net>
Content-Type: text/plain; charset=us-ascii
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.
--
Best regards,
Alexander mailto:lists@perespim.net
------------------------------
Message: 5
Date: Wed, 07 Jul 2004 03:43:25 -0700
From: Colin Percival <colin.percival@wadham.ox.ac.uk>
Subject: bringing /etc/services up to date
To: current@freebsd.org
Message-ID: <6.1.0.6.1.20040707033352.03dbca18@popserver.sfu.ca>
Content-Type: text/plain; charset=us-ascii
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
------------------------------
Message: 6
Date: Wed, 7 Jul 2004 05:59:57 -0500
From: Craig Boston <craig@xfoil.gank.org>
Subject: Subversion (was Rewrite cvsup & portupgrade in C)
To: freebsd-current@freebsd.org, noackjr@alumni.rice.edu
Cc: Alexander <lists@perespim.net>
Message-ID: <200407070559.57818.craig@xfoil.gank.org>
Content-Type: text/plain; charset="iso-8859-1"
On Wednesday 07 July 2004 12:38 am, Jon Noack wrote:
> On 07/07/04 00:24, Alexander wrote:
> > i think that cvs is a _bit_ arcane, subversion is good replacement..
> > well i said it's only my 2 cents :)
>
> Here's the start of an interesting thread over on -hackers from a few
> months ago wrt subversion:
> http://lists.freebsd.org/pipermail/freebsd-hackers/2004-February/005592.html
FWIW, I've been using subversion for my local FreeBSD repository pretty much
since that thread on -hackers. It does still have a few nits and performance
problems that make it painful on very large repositories. It's downright
awesome on small repos though :)
Here's what I've been doing:
freebsd/branches/* My local branches
freebsd/drops/* Snapshots of the real CVS tree.
freebsd/projects/* Random bits that don't fit anywhere else (stuff being
developed outside the tree)
Every couple weeks I'll use cvs to check out snapshots of HEAD, RELENG_4,
RELENG_4_10, and RELENG_5_2, and use svn_load_dirs to load them into the
corresponding directory in drops/. Then I'll use svn merge to merge any
changes into my local branch.
Unfortunately even very simple operations that have to apply to the whole tree
take forever and a half. update/co is the worst offender (and svn_load_dirs
runs it twice!), commit and status to a lesser extent. Sometimes even a
simple "svn info" against a single file that's at the top of the repo, say,
UPDATING, will take a long time to complete too. I had to set http-timeout
to a ridiculous number (3600, probably overkill though) because for svn
update and commit the neon client would often time out waiting for the server
to finish.
Admittedly, my server is underpowered so I'm not expecting it to be super
quick. However, the really annoying part is that long operations often can't
be canceled! For example, an accidental "svn update" on the top level, then
pressing ^C to interrupt does nothing. If the process is killed (or neon
times out, blah), stale locks are left all over the place and the apache
process on the server continues churning away until it would have finished
anyway, massively slowing down any further actions until it does...
I will say that the copy-on-write branching is VERY cool. I can see why
people like p4 so much just for that one feature alone. Automatic repeated
merge capability is supposed to be coming soon, that should be good too.
I should probably go over to the subversion lists and see if anybody has any
suggestions to improve the situation.
Craig
------------------------------
Message: 7
Date: Wed, 07 Jul 2004 23:12:25 +1200
From: Drew Broadley <drew@corrupt.co.nz>
Subject: Re: bringing /etc/services up to date
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: current@freebsd.org
Message-ID: <40EBDA99.5020309@corrupt.co.nz>
Content-Type: text/plain; charset=us-ascii; format=flowed
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?
>
>Colin Percival
>
>
What are the netstat calls to /etc/services like with the update, any
performance decrease ?
(I cannot think of any other application that uses them off the top of
my head)
- Drew
------------------------------
Message: 8
Date: Wed, 07 Jul 2004 23:14:30 +1200
From: Drew Broadley <drew@corrupt.co.nz>
Subject: Re: bringing /etc/services up to date
To: Drew Broadley <drew@corrupt.co.nz>
Cc: current@freebsd.org
Message-ID: <40EBDB16.1020301@corrupt.co.nz>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Drew Broadley wrote:
> 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?
>>
>> Colin Percival
>>
>>
> What are the netstat calls to /etc/services like with the update, any
> performance decrease ?
>
> (I cannot think of any other application that uses them off the top of
> my head)
>
> - Drew
+ inetd ;)
- Drew
------------------------------
Message: 9
Date: Wed, 7 Jul 2004 13:38:10 +0200
From: Brad Knowles <brad.knowles@skynet.be>
Subject: Re: bringing /etc/services up to date
To: Colin Percival <colin.percival@wadham.ox.ac.uk>
Cc: current@freebsd.org
Message-ID: <p06002043bd1190d45893@[10.0.1.3]>
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
At 3:43 AM -0700 2004-07-07, 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?
Speaking only for myself, I would gladly welcome such an update.
Having a grossly outdated /etc/services is something that I have
found rather annoying on more than one occasion, although I've
usually solved the problem by just blowing away what is there and
bringing in a new one from somewhere else. By making this change,
you will save me that pain.
But I speak only for myself.
--
Brad Knowles, <brad.knowles@skynet.be>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.
------------------------------
Message: 10
Date: Tue, 6 Jul 2004 16:19:17 +0200 (CEST)
From: <pfgshield-pedro@yahoo.com>
Subject: Re: COMPAT_43 tty processing ?
To: freebsd-current@FreeBSD.org
Message-ID: <20040706141917.84951.qmail@web13425.mail.yahoo.com>
Content-Type: text/plain; charset=iso-8859-1
Just FYI (and for those not reading -ports);
The tty processing cleanup seems to have broken x11-toolkits/xview:
http://pointyhat.freebsd.org/errorlogs/i386-errorlogs/e.5.2004070110/xview-3.2
.1_2.log
It took quite an effort to fix xview before this change and I was glad to do
it, but I don't have -current so anyone wanting to try to fix it is welcome.
cheers,
Pedro.
____________________________________________________________
Yahoo! Companion - Scarica gratis la toolbar di Ricerca di Yahoo!
http://companion.yahoo.it
------------------------------
Message: 11
Date: Tue, 6 Jul 2004 13:46:55 -0400
From: Mikhail Teterin <mi+mx@aldan.algebra.com>
Subject: Re: unkillable process in physrd-sttae
To: pav@FreeBSD.org
Cc: current@FreeBSD.org
Message-ID: <200407061346.55218@misha-mx.virtual-estates.net>
Content-Type: text/plain; charset="iso-8859-15"
=> 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 :-(
Yours,
-mi
------------------------------
Message: 12
Date: Wed, 07 Jul 2004 04:38:36 -0700
From: John Merryweather Cooper <johnmary@adelphia.net>
Subject: Re: bringing /etc/services up to date
To: Drew Broadley <drew@corrupt.co.nz>
Cc: current@freebsd.org
Message-ID:
<1089200316.55099.10.camel@68-169-191-150.losaca.adelphia.net>
Content-Type: text/plain
On Wed, 2004-07-07 at 04:12, Drew Broadley wrote:
> 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?
> >
> >Colin Percival
> >
> >
> What are the netstat calls to /etc/services like with the update, any
> performance decrease ?
>
> (I cannot think of any other application that uses them off the top of
> my head)
>
> - Drew
ipfw uses /etc/services if you use, e.g., "domain" instead of "53" in
your rules. I would hope any application that seriously used
/etc/services would read it once, store it in some speedily accessible
form, and work from there. As a flat, human-created file, /etc/services
would not be my candidate for efficient program access.
jmc
------------------------------
Message: 13
Date: Wed, 7 Jul 2004 11:55:38 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Subject: Fatal trap 12 in microuptime
To: FreeBSD current mailing list <current@freebsd.org>
Message-ID:
<Pine.BSF.4.53.0407071151380.59767@e0-0.zab2.int.zabbadoz.net>
Content-Type: TEXT/PLAIN; charset=US-ASCII
Hi,
when PXE booting I am getting this:
--- cut ---
Timecounter "TSC" frequency 133637195 Hz quality 800
Timecounters tickmd0: Preloaded image </head-20040706.bin> 25165824 bytes at 0
xc06b9ad4
every 10.000 msec
IPv6 packet filtering initialized, default to accept, unlimited logging
ipfw2 initialized, divert enabled, rule-based forwarding enabled, default to a
ccept, logging unlimited
IPsec: Initialized Security Association Processing.
lo0: bpf attached
Fatal trap 12: page fault while in kernel mode
fault virtual address = 0xd8
fault code = supervisor write, page not present
instruction pointer = 0x8:0xc04947ff
stack pointer = 0x10:0xc2021d58
frame pointer = 0x10:0xc2021d6c
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
kernel: type 12 trap, code=0
Stopped at microuptime+0x1f: movl %eax,0(%ebx)
db> where
microuptime(d8,8,c060d18c,c26875cc,c2021d98) at microuptime+0x1f
proc0_post(0,201ec00,201e000,0,c04282f5) at proc0_post+0x36
mi_startup() at mi_startup+0x94
begin() at begin+0x2c
--- cut ---
(kgdb) l *0xc04947ff
0xc04947ff is in microuptime (time.h:128).
123
124 static __inline void
125 bintime2timeval(const struct bintime *bt, struct timeval *tv)
126 {
127
128 tv->tv_sec = bt->sec;
129 tv->tv_usec = ((uint64_t)1000000 * (uint32_t)(bt->frac >> 32))
>> 32;
130 }
131
132 static __inline void
this looks odd to me :(
machine still at DDB prompt so please let me know if you need any
further information or parts of kernel config.
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
------------------------------
_______________________________________________
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 7
**********************************************
--
[35mEvariste Galois[m:
[33m�����呛��樱������蔷������,����直前......[m
[m[31m�� ��源:������� bbs.ustc.edu.cn [FROM: 210.45.72.234][m