Re: kernel help

2004-10-07 Thread James Pole
Heya,
To remove the old kernel just delete /kernel and rename /kernel.old to 
/kernel.

But note that you need to build the whole world (cd /usr/src/  make 
buildworld  make installworld) before the kernel will be in sync with 
the rest of the system. If the kernel version is not in sync with the 
version of the 'world' (ie the user-land applications such as SSH, etc) 
then problems can occur.

The FreeBSD manual has more information on the correct prodecure for 
upgrading a FreeBSD box.

Regards,
James
On 7/10/2004, at 5:56 PM, [EMAIL PROTECTED] wrote:
So tonight I walked through compiling my kernel from 4.9-STABLE to 
4.10-STABLE.
Compiling it went really well and all looked good until I reboot.  
When I
rebooted All seemed to go ok for a bit... but then commands started to 
hang and
disconnecting from SSH would leave my SSH session hung.  I reboot back 
into my
kernel.old and most everything is relatively happy again.

But now my question.  How do I make this the default kernel again?  I 
obviously
don't want to use the new kernel because it has problems.  Can someone 
help me
with this?

For reference sake I only used the GENERIC config and the only like I 
added to
it was the options line to add user quotas.

THanks
Geoff Sweet
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to 
[EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel help

2004-10-07 Thread Geoff Sweet
Hey thanks James... it appears that that is what I am missing.  I am
fairly new to this kind of thing, so I guess I missed the buildworld and
installworld part.  That would also explain why the system tends to hang
when I run older userland apps.

So off I go a reading...

-Geoff

On Wed, 2004-10-06 at 23:37, James Pole wrote:
 Heya,
 
 To remove the old kernel just delete /kernel and rename /kernel.old to 
 /kernel.
 
 But note that you need to build the whole world (cd /usr/src/  make 
 buildworld  make installworld) before the kernel will be in sync with 
 the rest of the system. If the kernel version is not in sync with the 
 version of the 'world' (ie the user-land applications such as SSH, etc) 
 then problems can occur.
 
 The FreeBSD manual has more information on the correct prodecure for 
 upgrading a FreeBSD box.
 
 Regards,
 James
 
 On 7/10/2004, at 5:56 PM, [EMAIL PROTECTED] wrote:
 
  So tonight I walked through compiling my kernel from 4.9-STABLE to 
  4.10-STABLE.
  Compiling it went really well and all looked good until I reboot.  
  When I
  rebooted All seemed to go ok for a bit... but then commands started to 
  hang and
  disconnecting from SSH would leave my SSH session hung.  I reboot back 
  into my
  kernel.old and most everything is relatively happy again.
 
  But now my question.  How do I make this the default kernel again?  I 
  obviously
  don't want to use the new kernel because it has problems.  Can someone 
  help me
  with this?
 
  For reference sake I only used the GENERIC config and the only like I 
  added to
  it was the options line to add user quotas.
 
  THanks
  Geoff Sweet
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-stable
  To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to [EMAIL PROTECTED]
-- 
My public key is available at:
http://www.whootis.com/sigs/gsweet.gpg

Support your right to privacy!  
Encrypt and sign your email.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel help

2004-10-07 Thread James Pole
On 7/10/2004, at 8:16 PM, pirat sriyotha wrote:
Quoting James Pole [EMAIL PROTECTED]:
Heya,
To remove the old kernel just delete /kernel and rename /kernel.old to
/kernel.
sorry for interruption, am not quite sure that only replace /kernel 
with
/kernel.old will solve his problem.  correct me if am misunderstood.
I agree, read the rest of my email where I have explain a better 
solution to the problem. Unless I've missed something? Feel free to 
explain anything that you think I've missed.

Regards,
James
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: enormous CPU load on 4.10 machine

2004-10-07 Thread George V. Neville-Neil
Hi,

I've redirected this to freebsd-stable because, as far as I
can tell from reading the script, it has nothing to do with
the networking code.  This is strictly a scripting, and most
likely process creation issue.

Your script goes through each line, creating processes on just
about every third line (each call to cat | awk etc.).  I'm not
a shell script whiz but I can tell you that you need to reduce
the number of cat | lines if you want to improve performance.

As to why this is a huge issue on 4.x (hence my post to
-stable) and not on -current) I do not know.

Good luck,
George



At Thu, 7 Oct 2004 09:20:04 +0300,
donatas wrote:
 i've made a simple script for correcting about 2000 user files on 30 routers from 
 the database.
 must notice that it works fine, but only on 5.2 Machines.
 on 4.8 4.9 and 4.10 it eats all the cpu resources. On both(4.10 an 5.2.1) machines 
 there is similar count of IPFW rules and both FreeBsd versions run on similar 
 machines
 (Intel SE7501WV2 Server Board +Xeon 2.4 HT enabled +512Mb RAM +Barracuda 120Gb)
 
 on many of those machines we are transporting internet traffic to hudge companies 
 and hundres of users and leaving machines with 100% cpu load for 4 hours is not a 
 solution.
 so what might be the cause of such scripting perfomance difference between 4.10 and 
 5.2.1
 
 thanks for help
 TOP ON 
 5.2.1
 last pid: 20648;  load averages:  0.49,  0.19,  0.06 
   up 31+19:26:49  09:00:26
 51 processes:  5 running, 46 sleeping
 CPU states: 11.2% user,  0.0% nice, 39.8% system,  5.5% interrupt, 43.5% idle (92.7% 
 idle before loading the script)
 Mem: 26M Active, 185M Inact, 98M Wired, 60M Buf, 185M Free
 Swap: 999M Total, 999M Free
 
   PID USERNAME  PRI NICE   SIZERES STATE  C   TIME   WCPUCPU COMMAND
 16653 root  1110   940K   664K RUN1   0:01 10.27%  4.64% sh
 38797 root   960 12076K 11572K select 1  67:45  0.00%  0.00% ospfd
  5706 root8  -20   956K   664K wait   0  23:09  0.00%  0.00% sh
 38795 root   960  2488K  1980K select 0  20:00  0.00%  0.00% ripd
  5714 root   960  4072K  3752K select 0   6:18  0.00%  0.00% snmpd
 49772 root   960  1400K   796K select 0   1:17  0.00%  0.00% ping
   688 root   960  3488K  2428K select 0   0:30  0.00%  0.00% sshd
 38793 root   960  2972K  2460K select 0   0:23  0.00%  0.00% zebra
   706 root80  1336K  1008K nanslp 0   0:09  0.00%  0.00% cron
   543 root   960  1312K   832K select 0   0:07  0.00%  0.00% syslogd
 26424 maris  960  6220K  2956K select 1   0:01  0.00%  0.00% sshd
  8568 root   960  4596K  3104K select 0   0:00  0.00%  0.00% mc
 26439 root50  1392K  1212K ttyin  1   0:00  0.00%  0.00% bash
  8564 donatas960  6220K  2956K select 0   0:00  0.00%  0.00% sshd
  9927 root   960  4632K  3172K select 1   0:00  0.00%  0.00% mc
 81579 root80  1356K  1176K wait   0   0:00  0.00%  0.00% bash
  9008 root50  1332K  1152K ttyin  0   0:00  0.00%  0.00% bash
  5211 ramas  960  6220K  2956K select 0   0:00  0.00%  0.00% sshd
  9959 donatas960  6220K  2956K RUN0   0:00  0.00%  0.00% sshd
  5741 root80  1632K  1312K wait   0   0:00  0.00%  0.00% login
  5209 root40  6228K  2836K sbwait 0   0:00  0.00%  0.00% sshd
  9957 root40  6228K  2836K sbwait 0   0:00  0.00%  0.00% sshd
  8562 root40  6228K  2836K sbwait 1   0:00  0.00%  0.00% sshd
 26422 root40  6228K  2836K sbwait 0   0:00  0.00%  0.00% sshd
  8570 root80  1352K  1172K wait   0   0:00  0.00%  0.00% bash
  9929 root80  1356K  1176K wait   0   0:00  0.00%  0.00% bash
  9962 root80  1388K  1208K wait   1   0:00  0.00%  0.00% bash
 18236 root   960  2284K  1540K CPU0   0   0:00  0.00%  0.00% top
  5226 root50  1356K  1176K ttyin  0   0:00  0.00%  0.00% bash
 26426 maris   80  1636K  1300K wait   1   0:00  0.00%  0.00% su
  5225 ramas   80  1636K  1300K wait   0   0:00  0.00%  0.00% su
  8566 donatas 80  1636K  1300K wait   0   0:00  0.00%  0.00% su
  9961 donatas 80  1636K  1300K wait   0   0:00  0.00%  0.00% su
  9960 donatas 80  1328K  1148K wait   0   0:00  0.00%  0.00% bash
  8565 donatas 80  1328K  1148K wait   1   0:00  0.00%  0.00% bash
 26425 maris   80  1328K  1148K wait   0   0:00  0.00%  0.00% bash
  5212 ramas   80  1328K  1148K wait   0   0:00  0.00%  0.00% bash
  8567 root80  1388K  1208K wait   0   0:00  0.00%  0.00% bash
  5748 root50  1276K   860K ttyin  0   0:00  0.00%  0.00% getty
  5746 root50  1276K   860K ttyin  1   0:00  0.00%  0.00% getty
  5742 root   

Re: kernel help

2004-10-07 Thread pirat sriyotha
Quoting James Pole [EMAIL PROTECTED]:

 Heya,

 To remove the old kernel just delete /kernel and rename /kernel.old to
 /kernel.


sorry for interruption, am not quite sure that only replace /kernel with
/kernel.old will solve his problem.  correct me if am misunderstood.


 But note that you need to build the whole world (cd /usr/src/  make
 buildworld  make installworld) before the kernel will be in sync with
 the rest of the system. If the kernel version is not in sync with the
 version of the 'world' (ie the user-land applications such as SSH, etc)
 then problems can occur.

 The FreeBSD manual has more information on the correct prodecure for
 upgrading a FreeBSD box.

 Regards,
 James

 On 7/10/2004, at 5:56 PM, [EMAIL PROTECTED] wrote:

  So tonight I walked through compiling my kernel from 4.9-STABLE to
  4.10-STABLE.
  Compiling it went really well and all looked good until I reboot.
  When I
  rebooted All seemed to go ok for a bit... but then commands started to
  hang and
  disconnecting from SSH would leave my SSH session hung.  I reboot back
  into my
  kernel.old and most everything is relatively happy again.
 
  But now my question.  How do I make this the default kernel again?  I
  obviously
  don't want to use the new kernel because it has problems.  Can someone
  help me
  with this?
 
  For reference sake I only used the GENERIC config and the only like I
  added to
  it was the options line to add user quotas.
 
  THanks
  Geoff Sweet
  ___
  [EMAIL PROTECTED] mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-stable
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 

 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to [EMAIL PROTECTED]




--

with best regards,
psr

http://www.thai-aec.org


This message was sent using Inet-Webmail.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel help

2004-10-07 Thread pirat sriyotha
Quoting James Pole [EMAIL PROTECTED]:


 On 7/10/2004, at 8:16 PM, pirat sriyotha wrote:

  Quoting James Pole [EMAIL PROTECTED]:
 
  Heya,
 
  To remove the old kernel just delete /kernel and rename /kernel.old to
  /kernel.
 
 
  sorry for interruption, am not quite sure that only replace /kernel
  with
  /kernel.old will solve his problem.  correct me if am misunderstood.

 I agree, read the rest of my email where I have explain a better
 solution to the problem. Unless I've missed something? Feel free to
 explain anything that you think I've missed.


well, just my instinc that tell me that only move /kernel.old to /kernel is not
sufficient.  do we need to move /module.old to /module too ?  (am not freebsd
guru.)

the rest of your reply explains every things as you said above.  i do agree with
you totally.

 Regards,
 James
--

with best regards,
psr

http://www.thai-aec.org


This message was sent using Inet-Webmail.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sk(4), 3C940 unknown reason hang

2004-10-07 Thread Michael Vince
Interestingly I just put on 5.3Beta 7 on an AMD64 based machine

and my sk0 interface hangs when I do some file transfers over to the
machine via scp
I just put an intel pci card in to fix the problem


Rong-En Fan wrote:

[I'm not on list, so please CC me thanks]

Hi,

It is a 4.10-RELEASE-p2 on IBM e225 (Dual P3-1G) and have a 3COM
3C940 installed on. Since it's installed one year ago, it has
3 or 4 times unknown reason network hang (no console messages)
and I have changed 3C940 to another one. The situation is still
the same. The solution is just `ifconfig down up' then sk(4)
goes back to work. It's our main nfs server and this problem
really annoying. I look at the cvsweb, seems no major problem
fix for RELENG_4 (HEAD fixs a LOR, and I suppose it's only for
5.x and HEAD). Is there any known problems? (I can't find one
similar to me on -net and -stable).

The recently once happened this morning, according to mrtg,
it has a high network traffic (both in and out). Not sure
if it is related.

Here is the dmesg:

skc0: 3Com 3C940 Gigabit Ethernet port 0x2100-0x21ff mem
0xfeb78000-0xfeb7bfff irq 5 at device 9.0 on pci0
skc0: 3Com Gigabit NIC (3C2000)
sk0: Marvell Semiconductor, Inc. Yukon on skc0
sk0: Ethernet address: 00:0a:5e:19:b6:3c

Any suggestion and kernel debugging I would like to try.

Regards,
Rong-En Fan
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]
  


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel help

2004-10-07 Thread pirat sriyotha
Quoting James Pole [EMAIL PROTECTED]:

 On 7/10/2004, at 10:30 PM, pirat sriyotha wrote:
 
  well, just my instinc that tell me that only move /kernel.old to
  /kernel is not
  sufficient.  do we need to move /module.old to /module too ?  (am not
  freebsd
  guru.)

 Oh, that's a good point. I guess the process should be as follows:-
 1. delete /kernel and /modules/
 2. rename /kernel.old to /kernel
 3. rename /modules.old/ to /modules/

 Of course it would be better to recompile/reinstall the whole
 world+kernel to make sure everything is perfectly in sync.


enlighten ! thanks indeed.


 Regards,
 James



--

with best regards,
psr

http://www.thai-aec.org


This message was sent using Inet-Webmail.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


cp -Rp broken in RELENG_4? 'Operation not permitted' while copying directory permissions

2004-10-07 Thread Vlad
FreeBSD 4.10-STABLE #3: Thu Sep 30 

$ id
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)

$ mkdir test

$ chmod 770 test

$ cp -Rp test test2
cp: chmod: test2: Operation not permitted

$ ls -al
drwxrwx---   2 nobody  nobody 512 Oct  7 11:29 test
drwxr-x---   2 nobody  nobody 512 Oct  7 11:29 test2

$ chmod 770 test2

$ ls -al
drwxrwx---   2 nobody  nobody 512 Oct  7 11:29 test
drwxrwx---   2 nobody  nobody512 Oct  7 11:29 test2

cp taken from 4.9 works just fine. Am I'm missing something?

-- 
Vlad
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: cp -Rp broken in RELENG_4? 'Operation not permitted' while copying directory permissions

2004-10-07 Thread Ruslan Ermilov
On Thu, Oct 07, 2004 at 12:38:42PM -0400, Vlad wrote:
 FreeBSD 4.10-STABLE #3: Thu Sep 30 
 
 $ id
 uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
 
 $ mkdir test
 
 $ chmod 770 test
 
 $ cp -Rp test test2
 cp: chmod: test2: Operation not permitted
 
 $ ls -al
 drwxrwx---   2 nobody  nobody 512 Oct  7 11:29 test
 drwxr-x---   2 nobody  nobody 512 Oct  7 11:29 test2
 
 $ chmod 770 test2
 
 $ ls -al
 drwxrwx---   2 nobody  nobody 512 Oct  7 11:29 test
 drwxrwx---   2 nobody  nobody512 Oct  7 11:29 test2
 
 cp taken from 4.9 works just fine. Am I'm missing something?
 
Give me a few hours to fix it, it's probably my fault.


Cheers,
-- 
Ruslan Ermilov
[EMAIL PROTECTED]
FreeBSD committer


pgplUWaA8CFj1.pgp
Description: PGP signature


Re: kernel help

2004-10-07 Thread Geoff Sweet
Alrighty so I am back up and running on my kernel.GENERIC.I started to
read through the docs for doing a build world, and I don't think I am
ready for that step yet.  Mostly because this is a co-lo box that I only
have SSH access to.

Anyway now I want to make my changes to my GENERIC kernel so that I
don't have to do the world thing.  So I already CVSup'ed the /usr/src
directory to 4.10, so that is bad for me. Can I whack the /usr/src
directory and use sysinstall to load on the /usr/src files? If I tell it
to go get it from ftp.freebsd.org, is it going to retrieve the latest
(so 4.10) source or will it retrieve my default 4.9 source?  I am trying
to get a cd stuck in my box so that I can just do this off the CD, but
thier tech support is a bit slow... HA.

Thanks!
Geoff Sweet

On Wed, 2004-10-06 at 21:56, [EMAIL PROTECTED] wrote:
 So tonight I walked through compiling my kernel from 4.9-STABLE to 4.10-STABLE. 
 Compiling it went really well and all looked good until I reboot.  When I
 rebooted All seemed to go ok for a bit... but then commands started to hang and
 disconnecting from SSH would leave my SSH session hung.  I reboot back into my
 kernel.old and most everything is relatively happy again.
 
 But now my question.  How do I make this the default kernel again?  I obviously
 don't want to use the new kernel because it has problems.  Can someone help me
 with this?
 
 For reference sake I only used the GENERIC config and the only like I added to
 it was the options line to add user quotas.
 
 THanks
 Geoff Sweet
 ___
 [EMAIL PROTECTED] mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-stable
 To unsubscribe, send any mail to [EMAIL PROTECTED]

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel help

2004-10-07 Thread James Pole
On 8/10/2004, at 4:21 PM, Geoff Sweet wrote:
Anyway now I want to make my changes to my GENERIC kernel so that I
don't have to do the world thing.  So I already CVSup'ed the /usr/src
directory to 4.10, so that is bad for me. Can I whack the /usr/src
directory and use sysinstall to load on the /usr/src files? If I tell 
it
to go get it from ftp.freebsd.org, is it going to retrieve the latest
(so 4.10) source or will it retrieve my default 4.9 source?  I am 
trying
to get a cd stuck in my box so that I can just do this off the CD, but
thier tech support is a bit slow... HA.
Heya,
The best thing for you to do is to just take the standard CVSup file 
from:-
/usr/share/examples/cvsup/stable-supfile

Then update the following line:-
*default release=cvs tag=RELENG_4_9
This should revert the source code to the 4.9 release -- and as a bonus 
all the security fixes for 4.9-RELEASE will be included as well. 
RELENG_4 will update you to the very latest code for FreeBSD 4.x-STABLE 
while RELENG_4_9 will update you to the latest patched code for 
4.9-RELEASE.

When you update your system will be FreeBSD 4.9-RELEASE-p99 (where 99 
is the patch level which shows how many patches has been applied to 
4.9-RELEASE) instead of just plain FreeBSD 4.9-RELEASE. You can verify 
this by running the `uname -a` command.

Regards,
James
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: enormous CPU load on 4.10 machine

2004-10-07 Thread Zoran Kolic
Long listing, but we don't
see the code. There is a po-
ssibility that this machine
does something you are not
aware. Maybe someone else is
using it for another purpose,
hides processes via rootkit
and leaves you without clue.
It is not clear what has eaten
your cpu.
Could you make a little investi-
gation in this direction? By
aide or cops or... Go to logs
and see if someone is doing
a job.
Best regards

   ZK

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]