Re: Strange FreeBSD 4.x system freezes and SQUID

2000-06-28 Thread Mike Tancsa

On 27 Jun 2000 17:24:23 -0400, in sentex.lists.freebsd.misc you wrote:


To followup on my system 'freezing' problem I have been running the box
for a good 12hrs now with 2 small modifications.
One, I up'd the max users to 256. Two, I began rotating the squid logs
every 4hrs.

This last point is rather strange.  I notice that after the log rotation,
my free vnodes blast up from 2,000 to nearly 12,000.

4 usersLoad  0.62  0.36  0.22  Wed Jun 28 23:49

Mem:KBREALVIRTUAL VN PAGER  SWAP PAGER
Tot   Share  TotShareFree in  out in  out
Act  1913761168   193640 1908   19860 count
All  5133201572  2994980 2488 pages
  zfod   Interrupts
Proc:r  p  d  s  wCsw  Trp  Sys  Int  Sof  Fltcow 443 total
   1  5  1140  588 1065  444   182  59568 wireahc0
irq10
   203060 act fxp0
irq12
 4.7%Sys   0.9%Intr  3.7%User  0.0%Nice 90.7%Idl   231828 inact   210 fxp1
irq9
||||||||||  18864 cache 5 twe0 irq11
==+>> 996 freefdc0
irq6
  daefr   sio0
irq4
Namei Name-cacheDir-cache prcfr   sio1
irq3
Calls hits% hits% react   sio7
irq7
  390  332   8562 pdwak   100 clk
irq0
  pdpgs   128 rtc
irq8
Disks twed0   da0   da1   da2   fd0 pass0 pass1   intrn
KB/t  10.33 16.00  0.00  0.00  0.00  0.00  0.00 62064 buf
tps   5 0 0 0 0 0 0   233 dirtybuf
MB/s   0.05  0.00  0.00  0.00  0.00  0.00  0.00 36260 desiredvnodes
% busy5 0 0 0 0 0 0 36213 numvnodes
 8479 freevnodes


This is after rotating the logs an hours ago via cron.  The freevnodes
keeps going down until the next rotate.  Why would rotating a few big logs
cause these values to change so much ?

-rw-r--r--  1 squid  squid  28204318 Jun 28 23:51 access.log
-rw-r--r--  1 squid  squid  65535714 Jun 28 22:00 access.log.0
-rw-r--r--  1 squid  squid  19418684 Jun 28 18:00 access.log.1

If I dont rotate them I start to get into the 'freezing' syndrome again
where the system is unresponsive for a good 3-6 seconds.

---Mike

Mike Tancsa  ([EMAIL PROTECTED])  
Sentex Communications Corp, 
Waterloo, Ontario, Canada
"Given enough time, 100 monkeys on 100 routers 
could setup a national IP network." (KDW2)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: todays kernel not compiling.

2000-06-28 Thread Kris Kennaway

On Thu, 29 Jun 2000, Lauri Laupmaa wrote:

> ../../i386/i386/in_cksum.c: In function `in_cksum':
> ../../i386/i386/in_cksum.c:238: `__func__' undeclared (first use this 
> function)
> ../../i386/i386/in_cksum.c:238: (Each undeclared identifier is 
> reported only once
> ../../i386/i386/in_cksum.c:238: for each function it appears in.)
> ../../i386/i386/in_cksum.c: In function `in_cksum_skip':
> ../../i386/i386/in_cksum.c:426: `__func__' undeclared (first use this 
> function)
> *** Error code 1

Looks like you're compiling a 4.0-STABLE kernel with 3.x gcc

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe <[EMAIL PROTECTED]>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: FreeBSD 3.5 now available . . . . .

2000-06-28 Thread Kris Kennaway

On Tue, 27 Jun 2000, kmays wrote:

> I hope the 3.x build can be merged into future 4.x builds
> successfully so we can do away with 3.x. I don't think all of the bugs in
> 3.x will ever be fixed unless you freeze new features and try to fix all the
> old ones.

I don't know what you're talking about "merging into future 4.x builds".
4.x is already much more stable than 3.x ever was..the bug-fixing has
already taken place during the development of the 4.0 branch.

Kris

--
In God we Trust -- all others must submit an X.509 certificate.
-- Charles Forsythe <[EMAIL PROTECTED]>



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: Gnome compliance and speed?

2000-06-28 Thread Matt Heckaman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Jun 2000, Dolgan wrote:

: I installed it from the ports.
: 
: However, that was an unupdated ports. But it was from the ports that I got
: when I installed 4.0-STABLE. So how old could it be?

If you upgraded to 4.0-STABLE through a make world, your ports did not get
updated. :)
 
: I don't know how to update the ports file. You think I should reinstall from
: a later ports file? Not quite sure how to delete the old Gnome if so.

Read over /usr/share/examples/cvsup/ports-supfile, change the host to
cvsupX.freebsd.org (where X = number, I like cvsup3) and run cvsup -g -L 2
on ports-supfile.
 
: I installed both from ports, btw.

* Matt Heckaman   - mailto:[EMAIL PROTECTED]  http://www.lucida.qc.ca/ *
* GPG fingerprint - A9BC F3A8 278E 22F2 9BDA  BFCF 74C3 2D31 C035 5390 *

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.1 (FreeBSD)
Comment: http://www.lucida.qc.ca/pgp

iD8DBQE5WrKXdMMtMcA1U5ARAkIIAJ991v+dKm73goaxgXG/q/CJ34fPuACeO/V6
EmbrjKEabAwo/3ycRCqOAzY=
=w0++
-END PGP SIGNATURE-




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Help : about ipnat rdr problem

2000-06-28 Thread He Feng(BJ)

 ------
|___|--|___|> Internet
  | | |
host A host B
172.17.2.229  172.17.2.176  202.99.99.99

host A: winnt + exchange
host B: FreeBSD 4.0-release,recompiled kernel and add "options IPFILTER"

I want to redirect outside POP3 requests to Host A via HostB

here is my ipnat config file:

# cat /etc/ipnat.conf

map ep0 172.17.2.0/24 -> 202.99.99.99/32 portmap tcp/udp 1:65000
rdr ep0 202.99.99.99/32 port 110 -> 172.17.2.229 port 110 tcp/udp

#ipnat -C
#ipnat -f /etc/ipnat.conf

when i try to telnel 202.99.99.99 110,there is no response.

after about 60 second, echo "connection closed by server."









To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: Gnome compliance and speed?

2000-06-28 Thread Matt Heckaman

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 28 Jun 2000, Dolgan wrote:
...
: I installed clean from a 6-27-2000 snapshot. That was yesterday. Wouldn't
: that make the ports updated, or not..?

Hmm, it should yes.

: Why would it be a ports thing, though? It's Gnome 1.2.1... latest. Is there
: something weird with ports?
: Latest sawfish too.

Yeah, but ports often apply several patches to make things work right on
FreeBSD, those patches could have been updated without a version upgrade
of gnome. Given that you installed from a snapshot of yesterday, you
should have the latest ports though. At this point, I'm not sure what the
problem is.. Maybe someone who runs the combination would have an idea.

* Matt Heckaman   - mailto:[EMAIL PROTECTED]  http://www.lucida.qc.ca/ *
* GPG fingerprint - A9BC F3A8 278E 22F2 9BDA  BFCF 74C3 2D31 C035 5390 *

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.0.1 (FreeBSD)
Comment: http://www.lucida.qc.ca/pgp

iD8DBQE5WrqRdMMtMcA1U5ARAseTAJ4g927b4R9ACY5SRVX++MBW8cu3NACgr4V0
hvHt/mfYRJppqBesXVYH/RU=
=tMyz
-END PGP SIGNATURE-




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: Gnome compliance and speed?

2000-06-28 Thread Dolgan

Unfortunately, I did that.

It seemed to have no effect. :(

KDE is fine, but I *hate hate* KDE.

- Original Message -
From: "Sean O'Connell" <[EMAIL PROTECTED]>
To: "Dolgan" <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 7:47 PM
Subject: Re: Gnome compliance and speed?


> Dolgan stated:
> : I didn't "upgrade."
> :
> : I had RELEASE, then I did a clean installation just to avoid the
trouble.
> : See it was about an hour after I got done installing FBSD for the first
time
> : so it didn't matter.
> :
> : I installed clean from a 6-27-2000 snapshot. That was yesterday.
Wouldn't
> : that make the ports updated, or not..?
> :
> : Why would it be a ports thing, though? It's Gnome 1.2.1... latest. Is
there
> : something weird with ports?
> : Latest sawfish too.
>
> Dolgan-
>
> Did you tweak the  SYSV shared memory parameters in your kernel?  If
> you are making heavy use of imlib, you need to do this.  There was a
> fairly long thread on either -stable or -current (I forget) detailing
> various folks tweakings of their SYSV share memory setting in the
> kernel.
>
> Look at LINT ... the options in question are
>
> options SHMALL=1025
> options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)"
> options SHMMAXPGS=1025
> options SHMMIN=2
> options SHMMNI=33
> options SHMSEG=9
>
> Some of these need to included in your kernel and larger.  Take a
> gander at either
>
> http://www.freebsd.org/mail/current/freebsd-stable.html
>
> or
>
> http://www.freebsd.org/mail/current/freebsd-current.html
>
> And look aroung for sawfish/gnome/ipcs/sysv shared memory
>
> When your perfomance goes into the toilet look at
>
> ipcs -mob
>
> Hope this helps,
> S
>
>
> 101-01010101010
> Sean O'Connell   [EMAIL PROTECTED]



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



[Summary] Re: Repeatable panic: zone: entry not free

2000-06-28 Thread Gregory Bond

For the record/mail-list archives:

I sumbitted this as a PR (http://www.freebsd.org/cgi/query-pr.cgi?pr=19553)
and David Malone pointed out that using KLDs compiled without INVARIANTS
in a kernel compiled with INVARIANTS will cause this.  See the PR for details.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: Gnome compliance and speed?

2000-06-28 Thread Dolgan

I installed it from the ports.

However, that was an unupdated ports. But it was from the ports that I got
when I installed 4.0-STABLE. So how old could it be?

I don't know how to update the ports file. You think I should reinstall from
a later ports file? Not quite sure how to delete the old Gnome if so.

I installed both from ports, btw.


- Original Message -
From: "Matt Heckaman" <[EMAIL PROTECTED]>
To: "Dolgan" <[EMAIL PROTECTED]>
Sent: Wednesday, June 28, 2000 6:57 PM
Subject: Re: Gnome compliance and speed?


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Question: Did you install GNOME/Sawfish from the ports? I do not use
> sawfish (I'm a windowmaker fan) but I often use various gnome applications
> (not to mention compiling gnome (minus panel) support into everything I
> can. (I really like Gnome) and I've never had a problem with anything
> here. We have virtually identical machines; Celeron 400 / 128MB /
> 4.0-STABLE (May 30 2000). Offhand, did you update the ports tree? (see
> /usr/share/examples/cvsup/ports-supfile)
>
> I don't know if that's much help, but we'll see. :)
>
> Matt




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



ugh X server prob

2000-06-28 Thread Michael Glenn Williams

After 4.0-release fresh install, my X server lets me run xterms, but no
window managers. Yes after 6+ releases of X I should know
how to debug these things *sigh*

Can someone point me to what I didn't read or give debug hints. The
error is below. Ask me anything you want, privately this is most
surely brain cramp.

Tx

michaelw# xhost +
Xlib: connection to ":0.0" refused by server
Xlib: Client is not authorized to connect to Server
xhost:  unable to open display ":0.0"
michaelw# xauth
Using authority file /home/michaelw/.Xauthority
xauth> list
michaelw.iprg.nokia.com:0  MIT-MAGIC-COOKIE-1
778ffa6dea880331103e5bd722597a4d
michaelw.iprg.nokia.com/unix:0  MIT-MAGIC-COOKIE-1
778ffa6dea880331103e5bd722597a4d
michaelw.iprg.nokia.com:0  XDM-AUTHORIZATION-1
24af78dee89c923000110500b4c45744
michaelw.iprg.nokia.com/unix:0  XDM-AUTHORIZATION-1
24af78dee89c923000110500b4c45744
brakescr.iprg.nokia.com:0  MIT-MAGIC-COOKIE-1
5d341f7a3b794c7e334107257738
brakescr.iprg.nokia.com/unix:0  MIT-MAGIC-COOKIE-1
5d341f7a3b794c7e334107257738
xauth> quit
michaelw# ps -auxww | DWIM
USER   PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
michaelw  3364  0.0  0.0 00  ??  Z 7:36PM   0:00.00
(xclock)
root  2948  0.0  1.3  2264 1672  ??  Is5:36PM   0:00.06
/usr/X11R6/bin/xdm
root  3118  0.0  9.8 13244 12436  ??  Ss5:45PM   0:01.26
/usr/X11R6/bin/X -auth
/usr/X11R6/lib/X11/xdm/authdir/authfiles/A:0-LG2948 (XF86_SVGA)
root  3343  0.0  1.6  2388 2040  ??  Is7:36PM   0:00.04
/usr/X11R6/bin/xdm
michaelw  3353  0.0  1.6  2320 2012  ??  Rs7:36PM   0:00.07 xterm
-geometry 80x25+20+100 -name Login xterm -ls
michaelw  3365  0.0  0.0 00  ??  Z 7:36PM   0:00.00  (xload)





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: todays kernel not compiling.

2000-06-28 Thread Kent Stewart



Lauri Laupmaa wrote:
> 
> Hi
> 
> I get:
> 
> ../../i386/i386/in_cksum.c: In function `in_cksum':
> ../../i386/i386/in_cksum.c:238: `__func__' undeclared (first use this
> function)
> ../../i386/i386/in_cksum.c:238: (Each undeclared identifier is
> reported only once
> ../../i386/i386/in_cksum.c:238: for each function it appears in.)
> ../../i386/i386/in_cksum.c: In function `in_cksum_skip':
> ../../i386/i386/in_cksum.c:426: `__func__' undeclared (first use this
> function)
> *** Error code 1

Did you cvsup and retry it. I cvsup'ed today and didn't have any
problems doing a make world and kernel.

Kent

> 
> TIA
> 
> L.
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message

-- 
Kent Stewart
Richland, WA

mailto:[EMAIL PROTECTED]
http://www.3-cities.com/~kstewart/index.html
FreeBSD News http://daily.daemonnews.org/

SETI(Search for Extraterrestrial Intelligence) @ HOME
http://setiathome.ssl.berkeley.edu/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Gnome compliance and speed?

2000-06-28 Thread Dolgan

I don't know if this is the right place for this, and I'm still rather
inexperienced, but:

First, here's my setup:
FreeBSD 4.0-STABLE (6/27/00)
AMD K6-2 400, 128MB of ram (just providing this for proof that it's not my
hardware)
Gnome 1.2.1
Sawfish 0.28.1
XFree86 3.3.6 - also tried with X 4.0
The gtk and all that that I got when I did a 'make install' in
/usr/ports/x11/gnome

Gnome runs extremely slower than it should (I've been using Gnome 1.2 and
the pre-releases of it for a LONG time in Linux with nada for problems until
I got FBSD),
and when I boot into it with a Deskguide applet open, it says that I don't
have a gnome-compliant Window Manager, even though sawfish has pretty much
always been gnome-compliant (if not really always).

I tried the default installation. I tried a clean install to see if I did
something wrong the first time. I copied my .gnome directories from my Linux
installation of Debian 2.3 that's on the *same system* which runs better
than fine, and stil the same thing.

It does it with root, as well as user.

Any ideas? Let me know if you need more info.
I am inexperienced, and very stumped. I've tried searching Google and many
other places to no avail. Help greatly appreciated.

-Dolgan



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: Bad apache ports on stable 4.0

2000-06-28 Thread Jonathan Smith

CC'd to ports where it belongs.
(Please respond only there as I don't think this is a -stable issue).

I'd like to suggest they add this to the messages that says to hadd the
handler lines, it certainly would have saved me grief -- and you.

I had the same problems (and a few worse ones).

To get php working, you need to manually add the following lines to tell
apache that the module exist (in addition to defining that certain files
should use the handlers):

In Dynamic Shared Object (DSO) Support:

Append to the list of LoadModule lines:

LoadModule php4_modulelibexec/apache/libphp4.so


Append to the list of AddModule lines:

AddModule mod_php4.c


j.

--
Close your eyes.  Now forget what you see.  What do you feel? --
My heart. --  Come here. --  Your heart. --  See?  We're exactly the same.

Jon Smith -- Senior Math Major @ Purdue

On Thu, 29 Jun 2000, Michael wrote:

> I went from 4.0 release to 4.0 stable and when I installed apache and
> modphp4 from ports the php4 side of it doesnt work.
> It all compiles fine (apache and the php4 /usr/ports/www/mod_php4) but the
> end result was either apache would load and any .php I requested would be
> downloaded instead of executed or apache wouldnt even load.
> And yes I was adding AddType application/x-httpd-php .php and AddType
> application/x-httpd-php-source .phps
> to the apache confile file
> 
> I sat there for about 24 hours worth of compiling most of the apache
> choices(apache13, apache13-ssl, apache13-modssl)  in ports and deleteing and
> adding the modphp4 and they all gave the same results.
> I kept trying because I had faith that it was something I wasnt doing and
> not the stable ports, but after a while I belived it was the modphp4 that
> wasnt getting compiled properly even though there wasn't any error messages
> in the compile.
> 
> I downloaded php4 from the www.php.net web site compiled/installed it (I
> used apache from ports) and apache worked with php first time.
> 
> So I belive the /usr/ports/www/mod_php4 is dodgey and what happened to the
> nice menu you used to get when installing apache from ports with the options
> to choose mysql and php etc?
> 
> 
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message
> 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: HELP PLEAS! with Oracle install!

2000-06-28 Thread Marcel Moolenaar

Stan Brown wrote:

> I am trying to install Oralce on 4.0 STABEL. I have read teh Handbook
> section on this and done everythign it recomends.
[snip]
> Now, whne I try to run the installer, I get an error message that says
> esentiallly that /usr/local/jre/bin/jre is not found. Now I think this
> must be tje Java Runtime Environment. Since I am runing in a Linux
> compatabilty shell. I belive the file it is really looking for is
> /compat/linux/usr/local/jre/bin/jre.

The handbook describes Oracle 8.0.5.x. Oracle 8 doesn't have a Java
installer. Oracle 8i does, but isn't covered by the handbook. The
handbook does give a good starting point when trying to install and run
Oracle 8i, but it is no following-these-easy-steps-to-guaranteed-success
kind of description anymore (it never was :-)

I suggest reading the Oracle installation manual before you attempt to
do anything unsupported with it. And with anything unsupported: assume
you don't get any support :-)

> I have istalled the jre jdk, and linux-jdk ports, all to no vail.

The Oracle manual clearly stated that blackdown JDK was recommended.
That may have changed in the mean time of course, but I don't think that
it will be as trivial as installing just any JDK port (and specifically
a FreeBSD port).

> Could someone _PLESE_ explain what I am doing wrong?

1. You're installing the wrong Oracle version, or you're reading the
   wrong description for the Oracle version you're trying to install.
2. You're pioneering with the expectation that the road ahead is
   already paved.

-- 
Marcel Moolenaar
  mail: [EMAIL PROTECTED] / [EMAIL PROTECTED]
  tel:  (408) 447-4222


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Bad apache ports on stable 4.0

2000-06-28 Thread Michael

I went from 4.0 release to 4.0 stable and when I installed apache and
modphp4 from ports the php4 side of it doesnt work.
It all compiles fine (apache and the php4 /usr/ports/www/mod_php4) but the
end result was either apache would load and any .php I requested would be
downloaded instead of executed or apache wouldnt even load.
And yes I was adding AddType application/x-httpd-php .php and AddType
application/x-httpd-php-source .phps
to the apache confile file

I sat there for about 24 hours worth of compiling most of the apache
choices(apache13, apache13-ssl, apache13-modssl)  in ports and deleteing and
adding the modphp4 and they all gave the same results.
I kept trying because I had faith that it was something I wasnt doing and
not the stable ports, but after a while I belived it was the modphp4 that
wasnt getting compiled properly even though there wasn't any error messages
in the compile.

I downloaded php4 from the www.php.net web site compiled/installed it (I
used apache from ports) and apache worked with php first time.

So I belive the /usr/ports/www/mod_php4 is dodgey and what happened to the
nice menu you used to get when installing apache from ports with the options
to choose mysql and php etc?




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: microuptime() going backwards

2000-06-28 Thread Wilko Bulte

On Wed, Jun 28, 2000 at 08:47:49AM -0500, Bob Willcox wrote:
> On Wed, Jun 28, 2000 at 12:16:12PM +1000, Greg Lehey wrote:
> > On Tuesday, 27 June 2000 at  8:26:49 +0200, Wilko Bulte wrote:
> > > On Tue, Jun 27, 2000 at 12:03:49PM +1000, Greg Lehey wrote:
> > >> On Monday, 26 June 2000 at 22:56:29 +0200, Wilko Bulte wrote:
> > >>> I just got tons and tons of
> > >>>
> > >>> Jun 26 22:06:33 freebie /kernel: microuptime() went backwards (18951.226366 -> 
>1 8951,199762)
> > >>> Jun 26 22:06:34 freebie /kernel: microuptime() went backwards (18951.226366 -> 
>1 8951,210275)
> > >>>
> > >>> (approx 10Mb worth of them). This was during a mpeg video playing operation.
> > >>>
> > >>> FreeBSD freebie.wbnet 4.0-STABLE FreeBSD 4.0-STABLE #2: Sat Jun 24 16:52:41 
>CEST 2000 [EMAIL PROTECTED]:/usr/src/sys/compile/FREEBIE  i386
> > >>>
> > >>> System is an Athlon 700Mc, dmesg.boot available if required.
> > >>>
> > >>> Any idea what is causing this?
> > >>
> > >> Yup.  Is this an Epox board?  I think it's a bug in the APM code.  It
> > >> even bites if APM is disabled.  Try completely removing APM from the
> > >> kernel.
> > >
> > > No, it is an Abit KA7. But I will try removing apm, it is indeed in the
> > > kernel. I'll see what happens next. Why does apm influence the time stuff?
> > 
> > It changes the way the timer code works.  I've been told various
> > things, and have quoted some of them in the past, but it seems they
> > may be wrong.  As far as I can tell now, the issue is that
> > microuptime() is not atomic, and it seems that it's possible for race
> > conditions to arise where it's called reentrantly and returns the
> > older time after returning a newer time.  If this hypothesis is
> > correct, you should also be able to eliminate the messages by putting
> > a splhigh() around the body of microuptime() (in /sys/kern/kern_tc.c).
> > This isn't the solution though, especially since we're removing spls
> > with the new SMP code.
> 
> I just tried the splhigh() around microuptime() on my system here with
> this problem and it did not solve the problem.  Removal of apm from
> the kernel seems to have, though.  Note that this is an Abit KA7 board
> with a 700MHz Athlon CPU.  Also, I have another system here with a

OK, same board/CPU here.

> similar configuration (same Abit board but with a 800MHz CPU in it and
> a SCSI disk vs. IDE) that doesn't suffer from this problem (with apm
> installed).

Mine is SCSI-only, Adaptec 2940UW based. So there is no relation with the
disksubsystem type.

-- 
Wilko Bulte http://www.freebsd.org  "Do, or do not. There is no try"
[EMAIL PROTECTED]   http://www.nlfug.nl Yoda - The Empire Strikes Back


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: New Machine boot up

2000-06-28 Thread John Baldwin

> I hope I have the right list.  Just built a new machine for a friend and
> to got it to install I had to go into the Visual config and disable alot
> of stuff. Once installed and running with a custom kernel ALl is working
> well except the disable stuff I had when I initially set when I
> installed spits out can't find this and that etc.. 
> 
> My question is how do I clear that out so it boots nice, clean and
> pretty.

Edit /boot/loader.conf and comment out or remove the line saying
'userconfig_script="YES"' or some such.

---

John Baldwin <[EMAIL PROTECTED]>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: New Machine boot up

2000-06-28 Thread Willem Brown

Hi,

Look in the /boot/kernel.conf file. I just deleted the lines that did not
need to be there.

Regards
Willem Brown

On Wed, Jun 28, 2000 at 10:43:05AM -0700, Ron 'The InSaNe One' Rosson wrote:
> I hope I have the right list.  Just built a new machine for a friend and
> to got it to install I had to go into the Visual config and disable alot
> of stuff. Once installed and running with a custom kernel ALl is working
> well except the disable stuff I had when I initially set when I
> installed spits out can't find this and that etc.. 
> 
> My question is how do I clear that out so it boots nice, clean and
> pretty.
> 
> TIA
> -- 
> --
> Ron Rosson  ... and a UNIX user said ...
> The InSaNe One  rm -rf *
> [EMAIL PROTECTED]  and all was /dev/null and *void()
> --
>   Zenocide: the killing of ancient philosophers.
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message

-- 
 /* === */
 /*  Linux, FreeBSD, NetBSD, OpenBSD. The choice is yours.  */
 /* === */

The first time, it's a KLUDGE!
The second, a trick.
Later, it's a well-established technique!
-- Mike Broido, Intermetrics


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



New Machine boot up

2000-06-28 Thread Ron 'The InSaNe One' Rosson

I hope I have the right list.  Just built a new machine for a friend and
to got it to install I had to go into the Visual config and disable alot
of stuff. Once installed and running with a custom kernel ALl is working
well except the disable stuff I had when I initially set when I
installed spits out can't find this and that etc.. 

My question is how do I clear that out so it boots nice, clean and
pretty.

TIA
-- 
--
Ron Rosson... and a UNIX user said ...
The InSaNe Onerm -rf *
[EMAIL PROTECTED]and all was /dev/null and *void()
--
Zenocide: the killing of ancient philosophers.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: SMP panic on boot

2000-06-28 Thread Brad Jones

On Wed, Jun 28, 2000 at 12:02:18PM -0500, Brian wrote:
> I have just installed a machine with 4.0 release. When I rebuilt the kernel
> to enable SMP,
> I got a panic on reboot. I cvsup'd to stable and tried it again, but the
> same problem
> occured. The following message is what I recieved:
> 
> APIC_IO: Testing 8254 interrupt delivery
> APIC_IO: routing 8254 via IOAPIC #0 intpin 2
> 
> panic: mbinit
> mp_lock = 0002; cpuid = 0; lapic.id = 
> 
> Then the machine reboots. I have tried changing the SMP version between 1.1
> and 1.4 with
> the same results. The machine has worked previosly with 3.x. The machine is
> a Abit BP6 with
> dual Celeron 433's and 768 MB RAM. IDE hard drive and CDROM. I am not using
> the Highpoint
> controller on the board. I know that 4.0 will work with these boards, I have
> two others running the same thing, but with SCSI. Any ideas what could be
> causing this?

ISTR having this problem as well.  As I recall, it triggered when I tried
setting my BIOS to handle the USB keyboard instead of leaving it to the OS.
(Same board, same CPUs, less memory, using HPT366.)

Try tweaking that and see if it helps.

BJ

-- 
Brad Jones -- [EMAIL PROTECTED]
"I use emacs, which might be thought of as a thermonuclear word processor."
 -- Neal Stephenson


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



No Subject

2000-06-28 Thread Fink William A CONT NPRI

subscribe freebsd-stable


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



SMP panic on boot

2000-06-28 Thread Brian

Hello,

I have just installed a machine with 4.0 release. When I rebuilt the kernel
to enable SMP,
I got a panic on reboot. I cvsup'd to stable and tried it again, but the
same problem
occured. The following message is what I recieved:

APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2

panic: mbinit
mp_lock = 0002; cpuid = 0; lapic.id = 

Then the machine reboots. I have tried changing the SMP version between 1.1
and 1.4 with
the same results. The machine has worked previosly with 3.x. The machine is
a Abit BP6 with
dual Celeron 433's and 768 MB RAM. IDE hard drive and CDROM. I am not using
the Highpoint
controller on the board. I know that 4.0 will work with these boards, I have
two others running the same thing, but with SCSI. Any ideas what could be
causing this?

Thanks,

Brian




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



regcomp(3) acting weird?

2000-06-28 Thread Brad Knowles

Folks,

I'm trying to use spegla 1.1p4 to mirror a particular site, and 
up until now I've not had any trouble.  However, now I want to skip a 
particular subdirectory, and regcomp(3) looks to me like it's acting 
really weird.  I would normally take this issue up just with the 
author, but it seems to me that the problem is with regcomp(3) and 
not spegla, so I figured I'd ask here as well.


Here's the section of code (as it originally looked) that is 
calling regcomp(3):

/* init the sp_skip struct */
struct sp_skip *
sps_init(const char *arg)
{
 size_t  len;
 int cflags;
 struct  sp_skip *sps;

 len = strlen(arg);
 if ((sps = calloc((size_t)1, sizeof(*sps) + len + 1)) == NULL)
 return NULL;
 /* LINTED save us from one calloc */
 sps->sps_name = (char *)(sps + 1);
 (void) strcpy(sps->sps_name, arg);
 cflags = 0;
 cflags |= REG_EXTENDED; /* extended RE's */
 cflags |= REG_NOSUB;/* only report match or no match */
 sps->sps_reg_errno = regcomp(&sps->sps_reg, sps->sps_name, cflags);
 if (sps->sps_reg_errno != 0) {
 free(sps);
 return NULL;
 }
 return sps;
}

Here is the configuration file I'm using:

version   = 1.1
minfree   = 102400
loglevel  = 10
localdir  = /home/ftp/mirror/interplay
dodelete  = yes
remotedir = /pub
skip  = ^/movies
username  = anonymous
password  = [EMAIL PROTECTED]
host  = ftp.interplay.com
timeout   = 120
retries   = 300 # busy ftp server and lots of files.
 # Takes lots of hours to complete
 # and don't want to quit when we are
 # almost finished.
retrytime = 120 # if network goes down don't consume
 # all retries to fast.
logfile   = /var/log/ftpd/interplay.log
lockfile  = /var/run/interplay.lock

However, spegla dies while trying to parse it:

$ /usr/local/bin/spegla -f /usr/local/etc/spegla/interplay.conf
spegla: sps_init: Undefined error: 0

The section of spegla.c that is calling this routine is:

/* ARGSUSED */
static void
add_param_sps(int option, const char *arg, struct cl_sps_que **q)
{
 struct  sp_skip *sps;

 option = 0; /* quiet gcc */
 if (*q == NULL && ((*q = cl_sps_init()) == NULL))
 e_err(1, "cl_sps_init");
 if ((sps = sps_init(arg)) == NULL)
 e_err(1, "sps_init");
 if (sps_error(sps))
 e_errx(1, "sps_init: %s", sps_strerror(sps));
 (void) cl_sps_push(*q, sps);
}


However, looking at this problem further, it appears that the 
error number regcomp(3) is returning is not *remotely* anywhere close 
to any of the standard REG_* error codes.  I put in some stupid 
fprintf commands, and found the following values being set after the 
call to regcomp(3):

sps->sps_name   = ^/movies
(int) &sps->sps_reg = 135192588
(int) &sps->sps_reg.re_endp = 135192596
sps->sps_reg_errno  = 135196672

These are the definitions I can find for REG_* in /usr/include/regex.h:

#define REG_BASIC   
#define REG_EXTENDED0001
#define REG_ICASE   0002
#define REG_NOSUB   0004
#define REG_NEWLINE 0010
#define REG_NOSPEC  0020
#define REG_PEND0040
#define REG_DUMP0200
#define REG_NOMATCH  1
#define REG_BADPAT   2
#define REG_ECOLLATE 3
#define REG_ECTYPE   4
#define REG_EESCAPE  5
#define REG_ESUBREG  6
#define REG_EBRACK   7
#define REG_EPAREN   8
#define REG_EBRACE   9
#define REG_BADBR   10
#define REG_ERANGE  11
#define REG_ESPACE  12
#define REG_BADRPT  13
#define REG_EMPTY   14
#define REG_ASSERT  15
#define REG_INVARG  16
#define REG_ATOI255 /* convert name to number (!) */
#define REG_ITOA0400/* convert number to name (!) */
#define REG_NOTBOL  1
#define REG_NOTEOL  2
#define REG_STARTEND4
#define REG_TRACE   00400   /* tracing of execution */
#define REG_LARGE   01000   /* force large representation */
#define REG_BACKR   02000   /* force use of backref code */

But none of these numbers looks remotely like what 
sps->sps_reg_errno is being set to!


I'm completely and totally stumped.  I've gotten to the point 
where it looks like regcomp(3) is doing something totally whacked-out 
in response to the input, but I can't figure out how to proceed from 
here.

Any and all assistance would be appreciated!

--
   These are my opinions -- not to be taken as official Skynet policy
==
Brad Knowles, <[EMAIL PROTECTED]>|| Belgacom Skynet SA/NV
Systems Architec

Re: startup issues after mergemaster

2000-06-28 Thread Thomas Keusch

On Mon, Jun 26, 2000 at 07:49:20PM +0200, Gerhard Sittig wrote:

> > | > After doing a mergemaster of configuration files in /etc
> > | > this morning (2000/06/26 08:00 CEST) the system fails to
> > | > read /etc/rc.conf completely (stops after reading the top
> > | > 3 lines, which are nic configparams).
> > | 
> > |   What clued you in to it stopping at exactly that point? 
> > 
> > On line four I have 'portmap_enable="NO"'. This as all the
> > following lines are ignored.
> 
> This sounds very much like an unterminated string -- the ticks /
> quotes are opened but never closed.  This way the assignment
> continues till the EOF.  And the RHS is somewhat defective.

I had the same problem a few weeks ago.

It had something to do with the firewall_* settings in /etc/rc.conf .

The issue may have been caused by an weird combination of firewall_script
pointing to a custom rc.firewall file and firewall_type being undefined or
something similiar.  I'm sorry I can't be more precise, as I don't have a
copy of my old stuff left and have not had the time to figure out the exact
reason back then either.

So I suggest commenting out firewall_* and reboot, see if it works, and go
from there.  Check if you are using firewall_* as it is supposed, I found it
to be a bit confusing sometimes.

Oh, and don't lock yourself out! :-)

-- 

 thomas..powered.by.debian/linux.
   .served.by.FreeBSD.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: lsof-4.49.3 on FreeBSD 3.5-STABLE

2000-06-28 Thread Claude Buisson



On Wed, 28 Jun 2000, Neil Sedlak wrote:

> On Tue, Jun 27, 2000 at 06:31:23PM -1000, Art Neilson, WH7N wrote:
> > lsof make blows up under 3.5-STABLE as shown below.  has anyone else
> > stumbled across this??
> I have the same exact breakage from a cvsup during the afternoon (EST) of
> June 22.
> 
> > ===>  Building for lsof-4.49.3
> My version of lsof is 4.49.2
> 
> > /usr/include/vm/vm_map.h:158: field `vm_pmap' has incomplete type
> 
> --

The current versions of lsof do not know about FreeBSD 3.5, but only
about 3.4 and older, 4.0, 5.0.

I modified the Configure script to test for 3.5* as the result of uname,
leading to the version "350" (same as 3.4* => 340), and added support
to 350 (same as for 340) later in the script.

> Neil Sedlak
> [EMAIL PROTECTED]
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-stable" in the body of the message
> 

Claude Buisson



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: microuptime() going backwards

2000-06-28 Thread Andreas Persson

On Tue, Jun 27, 2000 at 08:21:18PM -0700, Mike Smith wrote:
>I explained this to you at Usenix, actually.  It has nothing to do with 
>APM, it has to do with the selection of clocks available with/without APM 
>compiled into the kernel - there is probably either a bug in the TSC 
>hardware on this CPU, or (more likely) a bug in the timecounter code 
>(since people see this on !APM systems already).
Setting the sysctl kern.timecounter.method to 1 seems to have solved this
on one of my 4.0-RELEASE boxes. No microuptime() messages for almost 3
weeks now.

>-- 
>\\ Give a man a fish, and you feed him for a day. \\  Mike Smith
>\\ Tell him he should learn how to fish himself,  \\  [EMAIL PROTECTED]
>\\ and he'll hate you for a lifetime. \\  [EMAIL PROTECTED]

-- 
Andreas Persson
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message



Re: FreeBSD 3.5 now available . . . . .

2000-06-28 Thread Alex Rousskov

On Tue, 27 Jun 2000, Chad R. Larson wrote:

> But I still think the idea has merit.  There should be some way of
> unequivocally stating "I'm running , and stuff is broken since
> when I was running ".  This "I'm running -stable, cvsup'd
> sometime early in June" just doesn't cut it when trying to track
> down the source of a breakage.

As you pointed out, since people can sync only a part of their sources
(a single file in the extreme case), your ultimate goal may not be
reachable assuming that s and s strings are of a reasonable
length.

However, it seems to me that the "snapshot identifiers" (the  and
 above) can be quite long and can represent the state of several
(many) major chunks of the cvs tree. Each chunk gets a unique id that is
automatically changed after each commit to that chunk. Commit time may
be an acceptable identifier.

The resulting "global" identifier would look like
"   ..." 
allowing developers to approximately identify the state of the code.

Note that the string above can be MD5-ed and CRCed to make it shorter
and more robust. One can make a tool that reconstructs the original
identifier based on an MD5 digest by enumerating all known combinations
of chunk identifiers (the digest can be constructed to assist with such
a reconstruction, if needed).

$0.02,

Alex.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-stable" in the body of the message