update system after hacking source codes

2002-11-26 Thread pirat sriyotha
hi sirs,

if i hack some .c file in /usr/src/sys, for example
net/if.c, how can one update freebsd system to reflect
such a hacking ?

do one simply  make buildworld, installworld at
/usr/src?

thanks in advance for any helps and hints

with best regards,
psr

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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



Re: IPsec/gif VPN tunnel packets on wrong NIC in ipfw? SOLUTION ANDQUESTIONS

2002-11-26 Thread Ari Suutari
Hi,

On Tuesday 26 November 2002 15:19, Greg Panula wrote:
>
> # allow private traffic between location to flow
> allow ip from 10... to 192.168... out via int.nic
> allow ip from 192.168... to 10... in via int.nic
>
> Granted the ruleset above assumes you are *not* using gif tunnels, just
> ipsec tunnels.  The encrypted traffic arrives on the external interface,
> is decrypted and passed back to the kernel for routing&filtering.  Ipfw
> rules for the internal nic then allow or deny the traffic.

This does not filter packets that are destined to
firewall host itself. For example, if your local network
is 192.168.1.x, with firewall int.nic as 192.168.1.1
and you have ipsec policy that connects another
network to this network then you are unable to filter
traffic to firewall itself ie. the firewall is WIDE OPEN
from the other network via the VPN.

Ari S.


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



Mounting a mixed-mode CD

2002-11-26 Thread Daniel O'Connor
I have made a CD in Nero for Windows which has 16 audio tracks and 1
data track at the end.

Unfortunately I can't mount it in FreeBSD :(
It shows up in Windows though.

It appears that it has 2 sessions, the first containing all of the audio
tracks and the second with the data track.

Here is the output from 'cdcontrol -f /dev/acd0c info'

Starting track = 1, ending track = 17, TOC size = 146 bytes
track start  duration   block  length   type
-
1   0:02.00   8:37.52   0   38827  audio
2   8:39.52   0:18.28   388271378  audio
3   8:58.05  11:51.23   40205   53348  audio
4  20:49.28   0:22.51   935531701  audio
5  21:12.04   4:09.58   95254   18733  audio
6  25:21.62   0:12.40  113987 940  audio
7  25:34.27   7:29.28  114927   33703  audio
8  33:03.55   0:24.22  1486301822  audio
9  33:28.02   5:25.00  150452   24375  audio
   10  38:53.02   6:49.44  174827   30719  audio
   11  45:42.46   3:13.66  205546   14541  audio
   12  48:56.37   2:43.64  220087   12289  audio
   13  51:40.26   5:00.51  232376   22551  audio
   14  56:41.02   4:33.26  254927   20501  audio
   15  61:14.28   3:05.36  275428   13911  audio
   16  64:19.64   3:49.58  289339   17233  audio
   17  68:09.47   8:28.56  306572   38156   data
  170  76:38.28 -  344728   -  -

I've tried..
foo# mount_cd9660 /dev/acd0c /mnt
mount_cd9660: /dev/acd0c: Invalid argument
foo# mount_cd9660 -s 306572 /dev/acd0c /mnt
mount_cd9660: /dev/acd0c: Invalid argument

Anyone got any clues?

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



RE: FreeBSD on IBM's X335 series

2002-11-26 Thread Jan Mikkelsen
Maarten de Vries wrote:
> - how well does FreeBSD install on IBM's X335 or X300 series 
> in general?
> - does it cope well with this many CPU's and this much RAM?
> - how well does Java perform on FBSD (I hear Java will part of the
> basesystem)?
> - how does threading work in FreeBSD? Is there something like 
> 'clone' or
> 'sproc'?
> 
> Any of your input will be much appreciated.

I understood that the X335 only supported two CPUs.  Are you counting
each CPU twice because of hyperthreading?

I have a client where we're running about a dozen X330s each with 2 x
P3-1.2GHz, 1.5GB (some 2GB) and FBSD 4.5, with the native JDK 1.3.1.  It
works well, but it'll work better with Hotspot (now available, but I
haven't had a chance to try it out).

On FBSD 4, native threading will not take advantage of SMP:  You need to
have multiple processes.

However, having said all this, the X330 and X335 are sufficiently
different that the experience is meaningless for your purposes.  IBM are
now pushing the X335 over the X330, so I'm also interested in hearing
about experiences.

Regards,

Jan Mikkelsen



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



Re: ThinkPad R31 - Lucent windmodem woes....

2002-11-26 Thread Andy Sparrow

> Sorry to hear that you got stuck with an mWave ISDN part. I didn't
> know such a thing existed.

Heh. It's *huge*, it's a full-length ISA card - about the only one I've 
ever seen, modulo the Archive QIC-02 interfaces I still have...

Still, it came with a "free" IBM NT-1, which is worth more than I paid 
for the mWave, so I don't feel gouged at all. :)

Cheers,

AS




msg51951/pgp0.pgp
Description: PGP signature


Re: httpd cpu states 98%

2002-11-26 Thread Kevin D. Kinsey, DaleCo, S.P.
From: "Dikshie" <[EMAIL PROTECTED]>
Subject: httpd cpu states 98%


> Hello,
> I use FreeBSD-4.7-STABLE and Apache-2.0.43 as web server.
> (Pentium III 800 MHz and 256 SDRAM)
>
> last pid: 36345;  load averages:  1.01,  1.00,  1.00 up 3+13:50:12
10:22:20
> 60 processes:  2 running, 58 sleeping
> CPU states: 98.1% user,  0.0% nice,  0.0% system,  1.9% interrupt,
0.0% idle
> Mem: 106M Active, 92M Inact, 30M Wired, 18M Cache, 7488K Buf, 1040K
Free
> Swap: 512M Total, 6860K Used, 505M Free, 1% Inuse
>
>   PID USERNAME PRI NICE  SIZERES STATETIME   WCPU
CPU COMMAND
> 31158 www   54   0 11372K  8944K RUN680:29 98.78%
98.78% httpd
>
^
^
>
>
>90 root   2   0  2112K   884K select   1:55  0.00%
0.00% ospfd
>   225 postfix2   0  1140K   696K select   1:16  0.00%
0.00% qmgr
>
>
> why does my httpd using cpu so high ?

Umbecause it's thinking hard?

Seriously, how many children have been spawned?   How
many sites are being served?  How much traffic?  What
is in your httpd logs (access, error, etc.)?  Does this
server execute scripts?  Who writes them?  In what language?
Are they protected against variable poisoning and other types of
attacks?  If you're serving static HTML pages, this would
be *amazing*, but if you're doing something more complex,
then it's time to *hunt* for a reason.

My $.02 (adjust downward for inflation...)

Kevin Kinsey
DaleCo, S.P.


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



Re: nvidia tv-out

2002-11-26 Thread Daniel O'Connor
On Wed, 2002-11-27 at 13:55, Peter Jeremy wrote:
> On 2002-Nov-25 09:37:17 -0500, Jason Andresen <[EMAIL PROTECTED]> wrote:
> >I got TV-out working on my GeForce 4 using the following config:
> >
> >Option "TwinView"
> >Option "SecondMonitorHorizSync"  "30-50"
> >Option "SecondMonitorVertRefresh" "60"
> >
> >Option "TwinViewOrientation"  "Clone"
> >
> >in Section "Screen"
> 
> The horizontal sync value looks dodgy.  A standard NTSC TV set
> uses 60Hz vertical and 15.750kHz horizontal with 2:1 interlace
> (50Hz and 15.625KHz for PAL).  Trying to run an ordinary TV
> at 30-50kHz horizontal stands a high risk of destroying the
> horizontal output transformer and associated components.

Assuming that the cards TV out driver will even bother looking at that
value..

The card probably totally ignores the refresh rate for TV out.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



httpd cpu states 98%

2002-11-26 Thread Dikshie



Hello,
I use FreeBSD-4.7-STABLE and Apache-2.0.43 as web server.
(Pentium III 800 MHz and 256 SDRAM)


last pid: 36345;  load averages:  1.01,  1.00,  1.00 up 3+13:50:12  10:22:20
60 processes:  2 running, 58 sleeping
CPU states: 98.1% user,  0.0% nice,  0.0% system,  1.9% interrupt,  0.0% idle
Mem: 106M Active, 92M Inact, 30M Wired, 18M Cache, 7488K Buf, 1040K Free
Swap: 512M Total, 6860K Used, 505M Free, 1% Inuse

  PID USERNAME PRI NICE  SIZERES STATETIME   WCPUCPU COMMAND
31158 www   54   0 11372K  8944K RUN680:29 98.78% 98.78% httpd
 ^^


   90 root   2   0  2112K   884K select   1:55  0.00%  0.00% ospfd
  225 postfix2   0  1140K   696K select   1:16  0.00%  0.00% qmgr






why does my httpd using cpu so high ?





thanks !


-dikshie-

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



Re: nvidia tv-out

2002-11-26 Thread Peter Jeremy
On 2002-Nov-25 09:37:17 -0500, Jason Andresen <[EMAIL PROTECTED]> wrote:
>I got TV-out working on my GeForce 4 using the following config:
>
>Option "TwinView"
>Option "SecondMonitorHorizSync"  "30-50"
>Option "SecondMonitorVertRefresh" "60"
>
>Option "TwinViewOrientation"  "Clone"
>
>in Section "Screen"

The horizontal sync value looks dodgy.  A standard NTSC TV set
uses 60Hz vertical and 15.750kHz horizontal with 2:1 interlace
(50Hz and 15.625KHz for PAL).  Trying to run an ordinary TV
at 30-50kHz horizontal stands a high risk of destroying the
horizontal output transformer and associated components.

Peter

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



Re: FreeBSD on IBM's X335 series

2002-11-26 Thread Charles Sprickman
On Tue, 26 Nov 2002, Maarten de Vries wrote:

> - does it cope well with this many CPU's and this much RAM?

While this was not on IBM hardware, we've had issues with more than 1GB of
RAM on Intel mobos (Intel SRMK2 server) and Supermicros.  Both would lock
hard under medium load when more than 1 GB or so was in active use.
Pulling out RAM made the problem go away (all RAM, including the 1GB left
in the box was the same type/brand - Samsung).

These are all dual processor boxes.  Also had some issues getting SMP
working at first on the Intel boxes.

Hopefully the 5.x train will deal with modern hardware a bit better; this
recent experience was a serious time-drain, and without a panic and dump,
there's no help available.

Search the -stable archives to see what folks have to say about "large"
configurations.

Charles

> Any of your input will be much appreciated.
>
> Regards,
> --
> Maarten de Vries
> http://unsavouy.net
>
>
> 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: SiS 900 Ethernet card

2002-11-26 Thread Tony Meman
My SiS900 NIC works like a charm in FreeBSD 4.7-STABLE. But its not
an on-board network adapter. And I'm not using it in a laptop either.

--
none

Alexander wrote:

Hello,
It is a laptop and the only thing I can open (without voiding the
guarantee) is the place where the memory sticks lie.
Anyway, I don't think this is the solution. Can't anyone port the linux
driver on bsd ? (It works great on linux, but I don't wan't to go on
linux)

thanks



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



Re: Loading if_xl from the loader

2002-11-26 Thread Daniel O'Connor
On Wed, 2002-11-27 at 05:03, Michael J Ruhl wrote:
> I asked about this a couple of weeks ago, but got no response.
> 
> The only way I could get it to work was to remove the miibus_load from
> the configuration file.  The if_xl driver will figure out that miibus is
> needed, and load it for itself.

Perhaps you could try what I did - make if_xl_load="YES" first in the
list?

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5


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



Problems w/ a TDK DVD-RW and burncd...

2002-11-26 Thread Peter Losher
Hi,

I purchased a TDK indiDVD ATAPI DVD-RW (model 228H) this morning, and after 
installing it into this system, it's detected:

acd0: CD-RW  at ata1-slave PIO4
(FreeBSD thinking it's only a CD-RW is slightly disconcerting...)

And playing CD's and burning CD-R's are no problem.  But as soon as I try to 
burn a DVD-R it errors out:

tar> burncd -f /dev/cdrom data data_1.iso fixate
burncd: ioctl(CDRIOCNEXTWRITEABLEADDR): Input/output error

And messages throws this up:

acd0: READ_TRACK_INFO - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: TEST_UNIT_READY - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00
acd0: READ_TRACK_INFO - HARDWARE ERROR asc=0x09 ascq=0x02 error=0x00

I used to have a old SCSI CD-RW external drive in here before, but that's not 
an issue here. (or the CD-R wouldn't burn).  

Has anyone had any success with this drive?  I suspect FreeBSD is just not 
recognizing the drive correctly (or the TDK drive isn't what it seems)

Thanks - Peter
-- 
[EMAIL PROTECTED] - [ http://www.plosh.net/ ]

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



Re: cvs server takes a lot of cpu time and memory

2002-11-26 Thread Mike Hoskins
On Tue, 26 Nov 2002, Ruslan Ermilov wrote:
> PR gnu/44564.
> It's likely that we will return to 1.11.1-p1 version of CVS; 1.11.2
> turned out to be very buggy, and no 1.11.2-p1 is planned soon.

I had the PR'ed 'hung cvs processes eat cpu' problem for awhile...  The
odd thing is, since building world around Nov 22 I haven't seen any issues
on my moderately-loaded CVS server. (That's with 1.11.2.)

Maybe I'm just lucky, or maybe some changes that fixed my case were
merged...  (I have multi-platform developers/cvs clients.)  You may want
to cvsup and see what happens.


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