error when compiling

2007-09-16 Thread zen

Dear user,
i have this fresh install FreeBSD 6.2,
but i cant compile the kernel even it was a GENERIC kernel.
these are the error messages :

core# make depend
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs 
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline 
-Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. 
-I../../../contrib/altq -I../../../contrib/ipfilter 
-I../../../contrib/pf -I../../../dev/ath -I../../../contrib/ngatm 
-I../../../dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include 
opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -mno-align-long-strings 
-mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 
-ffreestanding ../../../i386/i386/genassym.c

NM='nm' sh ../../../kern/genassym.sh genassym.o > assym.s
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -p
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -q
awk -f ../../../tools/vnode_if.awk ../../../kern/vnode_if.src -h
CC=cc make -f ../../../dev/aic7xxx/aicasm/Makefile 
MAKESRCPATH=../../../dev/aic7xxx/aicasm
Warning: Object directory not changed from original 
/usr/src/sys/i386/compile/GEN
yacc -b aicasm_gram  -d -o aicasm_gram.c 
../../../dev/aic7xxx/aicasm/aicasm_gram.y
yacc -b aicasm_macro_gram -p mm -d -o aicasm_macro_gram.c 
../../../dev/aic7xxx/aicasm/aicasm_macro_gram.y
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c ../../../dev/aic7xxx/aicasm/aicasm.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c 
../../../dev/aic7xxx/aicasm/aicasm_symbol.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c aicasm_gram.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c aicasm_macro_gram.c

lex -t   ../../../dev/aic7xxx/aicasm/aicasm_scan.l > aicasm_scan.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c aicasm_scan.c
lex -t  -Pmm ../../../dev/aic7xxx/aicasm/aicasm_macro_scan.l > 
aicasm_macro_scan.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm  -c aicasm_macro_scan.c
cc -O2 -fno-strict-aliasing -pipe  -nostdinc -I/usr/include -I. 
-I../../../dev/aic7xxx/aicasm   -o aicasm aicasm.o aicasm_symbol.o 
aicasm_gram.o aicasm_macro_gram.o aicasm_scan.o aicasm_macro_scan.o -ll
./aicasm -nostdinc -I-  -I. -I../../.. -I../../../contrib/altq 
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath 
-I../../../contrib/ngatm -I../../../dev/twa -I../../../cam/scsi 
-I../../../dev/aic7xxx -o aic7xxx_seq.h -r aic7xxx_reg.h -p 
aic7xxx_reg_print.c -i ../../../dev/aic7xxx/aic7xxx_osm.h 
../../../dev/aic7xxx/aic7xxx.seq

./aicasm: 880 instructions used
./aicasm -nostdinc -I-  -I. -I../../.. -I../../../contrib/altq 
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../dev/ath 
-I../../../contrib/ngatm -I../../../dev/twa -I../../../cam/scsi 
-I../../../dev/aic7xxx -o aic79xx_seq.h -r aic79xx_reg.h -p 
aic79xx_reg_print.c -i ../../../dev/aic7xxx/aic79xx_osm.h 
../../../dev/aic7xxx/aic79xx.seq

./aicasm: 826 instructions used
awk -f ../../../tools/miidevs2h.awk ../../../dev/mii/miidevs
awk -f ../../../tools/pccarddevs2h.awk ../../../dev/pccard/pccarddevs
awk -f ../../../tools/usbdevs2h.awk ../../../dev/usb/usbdevs -h
awk -f ../../../tools/usbdevs2h.awk ../../../dev/usb/usbdevs -d
cp ../../../contrib/dev/ath/public/i386-elf.opt_ah.h opt_ah.h
sed -e 's/^.*#include.*phy\.h.*$//' ../../../contrib/dev/nve/os.h > 
os+%DIKED-nve.h

make: don't know how to make ../../../dev/firewire/firewire.c. Stop
core#

FYI this is GENERIC kernel

TIA


Zen


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


config problem routing external IP in to local net

2007-09-16 Thread Mike Lempriere
Hi folks -- sorry if this is the wrong list -- please let me know the 
proper one if so...


I have a DSL with 5 IP addresses.
I have a FreeBSD machine set up as a gateway one of the IP addresses.
I'm using NAT.
I'm using 'ipfw'.
The gateway provides DHCP to the internal network, which is a handful of 
WinXp boxes.

This stuff is all working great.
The problem is that I need one specific machine to appear on the 
Internet proper with a unique IP address.
I've hunted around the web and spent a bunch of time messing with 
things, and have them sort of working.
It appears that when the outside world asks for this machine, it gets 
there, yay!

The trouble is that this machine cannot see it's own requests.
DNS does not work.
Traceroute works to my upstream gateway.

Doing an 'sh rc.firewall OPEN' does not fix the problem, so I don't 
think it's firewall related.


I worked from:
 http://people.freebsd.org/~nik/nag/book.html (chapter 11)

I have a natd.conf with 'interface' and 'redirect_address' statements.
I have the special IP address aliased to the main external IP address.

Anyone able to help me out this?

Thanks!

--
Mike Lempriere- Home: [EMAIL PROTECTED]  Phone: 206-780-2146
Cellphone: 206-200-5902;  text pager: [EMAIL PROTECTED]


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


Re: Question regarding Intel ICH7 motherboard and integrated RAID

2007-09-16 Thread Karl Denninger
I have the BIOS set to IDE mode; I found the other problem "the hard way"
and the workaround...

Here's the dump from the BTX death - leading zeros omitted, and hand-copied
(hope I didn't screw it up!)

INT = 00d err = 0 efl = 30086 eip = 14db
eax = 8 ebx = 1970 ecx = c350 edx = 8148
esi = 3684 edi = 0 ebp = 364 esp = 349
cs = cf000 ds = 9b00 es = 14000 fs = 

cs:eip = 2e 0f 01 16 8d 07 0f 20 ...

ss:esp = 08 00 00 00 c0 9a 40 81 00 00 50

Hope this helps.

- 
-- 
Karl Denninger ([EMAIL PROTECTED]) Internet Consultant & Kids Rights Activist
http://www.denninger.netMy home on the net - links to everything I do!
http://scubaforum.org   Your UNCENSORED place to talk about DIVING!
http://genesis3.blogspot.comMusings Of A Sentient Mind


On Sun, Sep 16, 2007 at 03:46:31PM -0400, Howard Goldstein wrote:
> Karl Denninger wrote:
> > Hi folks;
> > 
> > I have a new Intel ICH7 board here that has Quad-core support.
> > 
> > It works well EXCEPT
> > 
> > It has an on-board RAID controller with some internal buffer memory.
> 
> There's a known issue with an interrupt storm when the ICH7R is
> configured for AHCI or RAID, and a pr was filed back in July(don't have
> the number, search for interrupt storm on atapci1+).  The suspicion was
> that some peripheral no one has identified yet is hammering the apic and
> we can't mask it.
> 
> The workaround is to set the BIOS for IDE mode.  It's a bit of a drag
> because SATA-II mode isn't reached when in IDE mode, only in AHCI (and
> RAID?) mode.  If you don't panic when you set it for IDE mode then
> you've probably run into the same problem.
> 
> On the plus side FreeBSD on the Q6600 *rocks* and our geom stuff does
> the RAIDdy stuff nicely for a software solution.  I sympathize with you
> as I spent most of the day yesterday trying to work this same problem.
> 
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 
> 
> %SPAMBLOCK-SYS: Matched [EMAIL PROTECTED], message ok


%SPAMBLOCK-SYS: Matched [EMAIL PROTECTED], message ok
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question regarding Intel ICH7 motherboard and integrated RAID

2007-09-16 Thread Howard Goldstein
Maxim Khitrov wrote:
> On 9/16/07, Howard Goldstein <[EMAIL PROTECTED]> wrote:
>> There's a known issue with an interrupt storm when the ICH7R is
>> configured for AHCI or RAID, and a pr was filed back in July(don't have
>> the number, search for interrupt storm on atapci1+).  The suspicion was
>> that some peripheral no one has identified yet is hammering the apic and
>> we can't mask it.
...

> 
> Does this issue affect ICH9R as well? I'm about to get Gigabyte's
> GA-P35-DQ6 motherboard (also with Q6600) and was planning on
> configuring RAID10 array using the on-board ICH9R chipset. Are you
> saying that this doesn't current work (on 7-CURRENT), or that there
> are performance issues with such setup?

I don't know if it also affects the ICH9R or CURRENT or even on the
Gigabyte.  It definitely is a problem with the ICH7R and 6.2-STABLE on
an ASUS P5W DH.

Note that it actually does work but the performance hit is unbearable.
Whatever it is about AHCI mode causes about 37,000 interrupts per second
per vmstat -i, knocking the entire system performance down by about 50%
on a Q6600 pushed slightly (eg., 16 minutes to -j20 buildworld vs. 11
minutes to -j20 buildworld with IDE "compatibility" mode).

I don't believe you'll have any trouble with a geom managed RAID array
if your Gigabyte can support the IDE "compatibility" mode for the ICH9,
I'm using a variety of geom providers here simultaneously through the
ICH7R without any problem whatsoever in that mode.  The hit may not even
be noticeable since compatibility mode takes the interface down to
150MB/S SATA-I and common 7200RPM drives don't seem to be able to
sustain more than about 70 or 80MB/S.

> 
> I need to be able to dual-boot Win XP on the machine, so my plan was
> to get 4 320GB drives (later expanded to 6), put them into RAID10
> array and that way get good redundancy and performance in both
> operating systems. Would you suggest I go about doing this some other
> way?

I'd recommend two drives to the XP and your old motherboard, two to your
new system with the Q6600, resulting in an XP gaming and media system up
24/7 while you're getting your serious work and internet stuff done on
the CURRENT machine, but that's just me

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


Re: Question regarding Intel ICH7 motherboard and integrated RAID

2007-09-16 Thread Maxim Khitrov
On 9/16/07, Howard Goldstein <[EMAIL PROTECTED]> wrote:
> Karl Denninger wrote:
> > Hi folks;
> >
> > I have a new Intel ICH7 board here that has Quad-core support.
> >
> > It works well EXCEPT
> >
> > It has an on-board RAID controller with some internal buffer memory.
>
> There's a known issue with an interrupt storm when the ICH7R is
> configured for AHCI or RAID, and a pr was filed back in July(don't have
> the number, search for interrupt storm on atapci1+).  The suspicion was
> that some peripheral no one has identified yet is hammering the apic and
> we can't mask it.
>
> The workaround is to set the BIOS for IDE mode.  It's a bit of a drag
> because SATA-II mode isn't reached when in IDE mode, only in AHCI (and
> RAID?) mode.  If you don't panic when you set it for IDE mode then
> you've probably run into the same problem.
>
> On the plus side FreeBSD on the Q6600 *rocks* and our geom stuff does
> the RAIDdy stuff nicely for a software solution.  I sympathize with you
> as I spent most of the day yesterday trying to work this same problem.

Does this issue affect ICH9R as well? I'm about to get Gigabyte's
GA-P35-DQ6 motherboard (also with Q6600) and was planning on
configuring RAID10 array using the on-board ICH9R chipset. Are you
saying that this doesn't current work (on 7-CURRENT), or that there
are performance issues with such setup?

I need to be able to dual-boot Win XP on the machine, so my plan was
to get 4 320GB drives (later expanded to 6), put them into RAID10
array and that way get good redundancy and performance in both
operating systems. Would you suggest I go about doing this some other
way?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question regarding Intel ICH7 motherboard and integrated RAID

2007-09-16 Thread Howard Goldstein
Karl Denninger wrote:
> Hi folks;
> 
> I have a new Intel ICH7 board here that has Quad-core support.
> 
> It works well EXCEPT
> 
> It has an on-board RAID controller with some internal buffer memory.

There's a known issue with an interrupt storm when the ICH7R is
configured for AHCI or RAID, and a pr was filed back in July(don't have
the number, search for interrupt storm on atapci1+).  The suspicion was
that some peripheral no one has identified yet is hammering the apic and
we can't mask it.

The workaround is to set the BIOS for IDE mode.  It's a bit of a drag
because SATA-II mode isn't reached when in IDE mode, only in AHCI (and
RAID?) mode.  If you don't panic when you set it for IDE mode then
you've probably run into the same problem.

On the plus side FreeBSD on the Q6600 *rocks* and our geom stuff does
the RAIDdy stuff nicely for a software solution.  I sympathize with you
as I spent most of the day yesterday trying to work this same problem.

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


Dubious VM behavior scanning large files

2007-09-16 Thread Thomas Hurst
I'm currently verifying a 50GB filesystem dump with sha1 at about
40MB/s.  This is resulting in a small but annoying amount of swapping,
including my IRC client, text editors, even syslogd.  Larger processes
like my .5G-each mysqld and squid don't seem to be effected:

Mem: 2045M Active, 5025M Inact, 439M Wired, 251M Cache, 214M Buf, 11M Free
Swap: 10G Total, 12M Used, 10G Free, 232K Out

cat(1), dd(1), par2, all result in the same sort of thing; I have well
over over 4GB of memory used for nothing but disk cache, and the VM is
somehow deciding it's cheaper to swap out fairly active processes
(including syslogd) than it is to free up a few inactive pages.

Swap never goes above about 12MB, but pages are in and out fairly often.
Do I need to tune the VM to keep more free pages around?

This is a dual dual core AMD64 system with 8G of memory, and it's
running 6.2-STABLE as of July 4th, and verified just now with -STABLE
dated Sep 16.

I also again noticed dubious swap metering from top/swapinfo during
today's testing:

 1169 clamav1   40 67620K 0K accept 2   0:04  0.00%
 
 1301 freaky1  960 24916K 0K select 3   0:00  0.00%
 

Along with a few other processes, and yet:

  Swap: 10G Total, 8K Used, 10G Free

This has been mentioned before, and I don't think anyone was able to
explain it.  Swap later rose to about 900k, but only after several
instances of SpamAssassin were marked as swapped.

-- 
Thomas 'Freaky' Hurst
http://hur.st/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Question regarding Intel ICH7 motherboard and integrated RAID controller

2007-09-16 Thread Bruce M. Simpson

Karl Denninger wrote:

Is there something that I can do (e.g. what registers/info would help if I
wrote them down?) since it would have to literally be transcribed
manually.
  


More of the same. Most likely your RAID BIOS wants to enter protected mode.
BTX normlly runs in vm86 mode.

Please do transcribe and post here so others may help to debug.
kib has real mode BTX code which hasn't gone in to the tree yet.

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