Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
On Sat, 2 Jun 2001, Alan Cox wrote: > > It's our own's card. so it could be the card's problem. does the pci > > device have to do some special thing to support APIC? my card won't work > > Nope. APIC is invisible to a correctly built piece of hardware. It just changes > how INTA-INTD are handled at the host end of things > > > properly on uni-processor with APIC enable kernel or smp kernel when the > > card is sharing IRQ with some other pci devices. > > That sounds like the driver isnt testing the irq was sourced by that card. You > also see hangups on insmod/rmmod when people do > > writel(ENABLE_MY_IRQ, my_card->control); > > before they request the IRQ and are able to clear it > I forget to mention. in the same hardware configuration (same slot, sharing IRQ with other card) my card works perfect if I was using uni-processor without APIC support kernel (i tried 2.4.5-ac6 with apic disabled uniprocessor on a dual p3 box). If the driver did something wrong, it should not work on that system either. Maybe what I thought was wrong. Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
On Sat, 2 Jun 2001, Alan Cox wrote: It's our own's card. so it could be the card's problem. does the pci device have to do some special thing to support APIC? my card won't work Nope. APIC is invisible to a correctly built piece of hardware. It just changes how INTA-INTD are handled at the host end of things properly on uni-processor with APIC enable kernel or smp kernel when the card is sharing IRQ with some other pci devices. That sounds like the driver isnt testing the irq was sourced by that card. You also see hangups on insmod/rmmod when people do writel(ENABLE_MY_IRQ, my_card-control); before they request the IRQ and are able to clear it I forget to mention. in the same hardware configuration (same slot, sharing IRQ with other card) my card works perfect if I was using uni-processor without APIC support kernel (i tried 2.4.5-ac6 with apic disabled uniprocessor on a dual p3 box). If the driver did something wrong, it should not work on that system either. Maybe what I thought was wrong. Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
It's our own's card. so it could be the card's problem. does the pci device have to do some special thing to support APIC? my card won't work properly on uni-processor with APIC enable kernel or smp kernel when the card is sharing IRQ with some other pci devices. Alex On Fri, 1 Jun 2001, Ingo Oeser wrote: > On Thu, May 31, 2001 at 12:27:07PM -0400, Feng Xian wrote: > > The driver for my pci device, I have the SA_SHIRQ set. > > What kind of PCI device do you have? I had this problem once with > an PCI-Matchmaker[1] based board (for which we still have the wrong > PCI-ID btw, but my patch was rejected twice...). > > > Actually what I am thinking it may be APIC support problem. I rebuild my > > kernel to use single cpu without APIC support, my device and 3c905 both > > work fine. they don't work for SMP kernel (APIC is by default enabled) > > Then I configured my uni-processor kernel to enable the APIC support, my > > device won't work with the 3c905, just exactly same as it behaves in the > > SMP kernel. > > With 2.2 I also had this without APIC. > > I have been flooded with interrupts which have been intended for > the Cyclone card (3c905B 100BaseTX), and exited the ISR quickly > after querying the interrupt register of my Matchmaker board > without any ACKing, but the Cyclone never got these interrupts > anymore. > > But is doesn't seem to be a 3c905 based problem, as I have > > 11: 95772726 XT-PIC es1371, eth0, eth1 > > in /proc/interrupts where eth0 and eth1 are both Cyclones. > Even the vga card has IRQ 11 assigned. > > So this is not really unknown ;-) > > Regards > > Ingo Oeser > > [1] class 0b40, vendor id: 10e8, device id: 807d > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
It's our own's card. so it could be the card's problem. does the pci device have to do some special thing to support APIC? my card won't work properly on uni-processor with APIC enable kernel or smp kernel when the card is sharing IRQ with some other pci devices. Alex On Fri, 1 Jun 2001, Ingo Oeser wrote: On Thu, May 31, 2001 at 12:27:07PM -0400, Feng Xian wrote: The driver for my pci device, I have the SA_SHIRQ set. What kind of PCI device do you have? I had this problem once with an PCI-Matchmaker[1] based board (for which we still have the wrong PCI-ID btw, but my patch was rejected twice...). Actually what I am thinking it may be APIC support problem. I rebuild my kernel to use single cpu without APIC support, my device and 3c905 both work fine. they don't work for SMP kernel (APIC is by default enabled) Then I configured my uni-processor kernel to enable the APIC support, my device won't work with the 3c905, just exactly same as it behaves in the SMP kernel. With 2.2 I also had this without APIC. I have been flooded with interrupts which have been intended for the Cyclone card (3c905B 100BaseTX), and exited the ISR quickly after querying the interrupt register of my Matchmaker board without any ACKing, but the Cyclone never got these interrupts anymore. But is doesn't seem to be a 3c905 based problem, as I have 11: 95772726 XT-PIC es1371, eth0, eth1 in /proc/interrupts where eth0 and eth1 are both Cyclones. Even the vga card has IRQ 11 assigned. So this is not really unknown ;-) Regards Ingo Oeser [1] class 0b40, vendor id: 10e8, device id: 807d -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
The driver for my pci device, I have the SA_SHIRQ set. Actually what I am thinking it may be APIC support problem. I rebuild my kernel to use single cpu without APIC support, my device and 3c905 both work fine. they don't work for SMP kernel (APIC is by default enabled) Then I configured my uni-processor kernel to enable the APIC support, my device won't work with the 3c905, just exactly same as it behaves in the SMP kernel. regards, Alex On Thu, 31 May 2001, Bogdan Costescu wrote: > On Wed, 30 May 2001, Feng Xian wrote: > > > when I run the kernel smp-2.4.x, my PCI > > device can not receive any interrupt while the /proc/interrupts shows that > > 3c905 receives over million of interrupts and number grows very fast. > > That's a bit strange as one of the first things done in 3c59x ISR is: > > if ((status & IntLatch) == 0) > goto handler_exit; /* No interrupt: shared IRQs can cause this */ > > with which the driver detects if the interrupt was generated by the card. > Are you sure the driver for the other PCI device knows to play nice with > shared interrupts ? > > Sincerely, > > Bogdan Costescu > > IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen > Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY > Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868 > E-mail: [EMAIL PROTECTED] > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
I am not sure if it's a VIA-based board. It's Dell's SMP board with Intel 820 chipset on it. -[00]-+-00.0 Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) +-01.0-[01]00.0 nVidia Corporation Vanta [NV6] +-1e.0-[02-03]--+-0a.0-[03]00.0 Chrysalis-ITS: c0de | \-0c.0 3Com Corporation 3c905C-TX [Fast Etherlink] +-1f.0 Intel Corporation 82801AA ISA Bridge (LPC) +-1f.1 Intel Corporation 82801AA IDE +-1f.2 Intel Corporation 82801AA USB +-1f.3 Intel Corporation 82801AA SMBus \-1f.5 Intel Corporation 82801AA AC'97 Audio Alex On Thu, 31 May 2001, Mark Hahn wrote: > > I have one pci device in my dell optiplex gx300 dual pIII box. when this > > is that a VIA-based board? if so, there are known problems > with VIA SMP irq routing. > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
Hi, all, I have one pci device in my dell optiplex gx300 dual pIII box. when this device in a certain pci slot, it shares the same IRQ with the on mother board 3com NIC(3c905) (irq=5). when I run the kernel smp-2.4.x, my PCI device can not receive any interrupt while the /proc/interrupts shows that 3c905 receives over million of interrupts and number grows very fast. then I moved my pci device to another pci slot, now, 3c905's irq=5, my device's irq=0xb, my device behaves normal, the interrupt number for 3c905 also looks normal. I also tried to use a uni-processor kernel without APIC support enabled, my pci device shares irq with 3c905, but works fine. It looks more like APIC support problem. but it also may be 3c905 driver's ISR's problem. Anyone who owns the code has any idea about this? Thanks in advance. Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
Hi, all, I have one pci device in my dell optiplex gx300 dual pIII box. when this device in a certain pci slot, it shares the same IRQ with the on mother board 3com NIC(3c905) (irq=5). when I run the kernel smp-2.4.x, my PCI device can not receive any interrupt while the /proc/interrupts shows that 3c905 receives over million of interrupts and number grows very fast. then I moved my pci device to another pci slot, now, 3c905's irq=5, my device's irq=0xb, my device behaves normal, the interrupt number for 3c905 also looks normal. I also tried to use a uni-processor kernel without APIC support enabled, my pci device shares irq with 3c905, but works fine. It looks more like APIC support problem. but it also may be 3c905 driver's ISR's problem. Anyone who owns the code has any idea about this? Thanks in advance. Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
I am not sure if it's a VIA-based board. It's Dell's SMP board with Intel 820 chipset on it. -[00]-+-00.0 Intel Corporation 82820 820 (Camino) Chipset Host Bridge (MCH) +-01.0-[01]00.0 nVidia Corporation Vanta [NV6] +-1e.0-[02-03]--+-0a.0-[03]00.0 Chrysalis-ITS: c0de | \-0c.0 3Com Corporation 3c905C-TX [Fast Etherlink] +-1f.0 Intel Corporation 82801AA ISA Bridge (LPC) +-1f.1 Intel Corporation 82801AA IDE +-1f.2 Intel Corporation 82801AA USB +-1f.3 Intel Corporation 82801AA SMBus \-1f.5 Intel Corporation 82801AA AC'97 Audio Alex On Thu, 31 May 2001, Mark Hahn wrote: I have one pci device in my dell optiplex gx300 dual pIII box. when this is that a VIA-based board? if so, there are known problems with VIA SMP irq routing. -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: APIC problem or 3com 3c590 driver problem in smp kernel 2.4.x
The driver for my pci device, I have the SA_SHIRQ set. Actually what I am thinking it may be APIC support problem. I rebuild my kernel to use single cpu without APIC support, my device and 3c905 both work fine. they don't work for SMP kernel (APIC is by default enabled) Then I configured my uni-processor kernel to enable the APIC support, my device won't work with the 3c905, just exactly same as it behaves in the SMP kernel. regards, Alex On Thu, 31 May 2001, Bogdan Costescu wrote: On Wed, 30 May 2001, Feng Xian wrote: when I run the kernel smp-2.4.x, my PCI device can not receive any interrupt while the /proc/interrupts shows that 3c905 receives over million of interrupts and number grows very fast. That's a bit strange as one of the first things done in 3c59x ISR is: if ((status IntLatch) == 0) goto handler_exit; /* No interrupt: shared IRQs can cause this */ with which the driver detects if the interrupt was generated by the card. Are you sure the driver for the other PCI device knows to play nice with shared interrupts ? Sincerely, Bogdan Costescu IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868 E-mail: [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: linux-2.4.3-ac14 spinlock problem?
David, Actually it happened only once. then I upgrade my kernel to 2.4.5. problem disappeared. I just hope this maybe a known problem. Thanks. Alex On Wed, 30 May 2001, David Howells wrote: > > > I was running something on my Dell dual p3 box (optiplex gx300). my kernel > > is linux-2.4.3-ac14. I got the following message: > > How often did this message occur? > > > __rwsem_do_wake(): wait_list unexpectedly empty > > [4191] c5966f60 = { 0001 }) > > kenel BUG at rwsem.c:99! > > invalid operand: > > CPU:1 > > EIP:0010:[] > > EFLAGS: 00010282 > > kenel BUG at /usr/src/2.4.3-ac14/include/asm/spinlock.h:104! > > > > > > I upgrade the kernel to 2.4.5, no such problem any more. > > I suspect something else corrupted the rw-semaphore structure, but that's very > hard to prove unless you catch it in the act. If it happens again with any > frequency, you might want to try turning on rwsem debugging. > > David > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: linux-2.4.3-ac14 spinlock problem?
David, Actually it happened only once. then I upgrade my kernel to 2.4.5. problem disappeared. I just hope this maybe a known problem. Thanks. Alex On Wed, 30 May 2001, David Howells wrote: I was running something on my Dell dual p3 box (optiplex gx300). my kernel is linux-2.4.3-ac14. I got the following message: How often did this message occur? __rwsem_do_wake(): wait_list unexpectedly empty [4191] c5966f60 = { 0001 }) kenel BUG at rwsem.c:99! invalid operand: CPU:1 EIP:0010:[c0236b99] EFLAGS: 00010282 kenel BUG at /usr/src/2.4.3-ac14/include/asm/spinlock.h:104! I upgrade the kernel to 2.4.5, no such problem any more. I suspect something else corrupted the rw-semaphore structure, but that's very hard to prove unless you catch it in the act. If it happens again with any frequency, you might want to try turning on rwsem debugging. David -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
share memory between kernel and user space
Hi, Is there any way to share a piece of memory which is allocated in kernel space with a user space program? (don't use copy_to_user etc.) Thanks, Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
linux-2.4.3-ac14 spinlock problem?
Hi, I was running something on my Dell dual p3 box (optiplex gx300). my kernel is linux-2.4.3-ac14. I got the following message: __rwsem_do_wake(): wait_list unexpectedly empty [4191] c5966f60 = { 0001 }) kenel BUG at rwsem.c:99! invalid operand: CPU:1 EIP:0010:[] EFLAGS: 00010282 kenel BUG at /usr/src/2.4.3-ac14/include/asm/spinlock.h:104! I upgrade the kernel to 2.4.5, no such problem any more. Any idea? Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
linux-2.4.3-ac14 spinlock problem?
Hi, I was running something on my Dell dual p3 box (optiplex gx300). my kernel is linux-2.4.3-ac14. I got the following message: __rwsem_do_wake(): wait_list unexpectedly empty [4191] c5966f60 = { 0001 }) kenel BUG at rwsem.c:99! invalid operand: CPU:1 EIP:0010:[c0236b99] EFLAGS: 00010282 kenel BUG at /usr/src/2.4.3-ac14/include/asm/spinlock.h:104! I upgrade the kernel to 2.4.5, no such problem any more. Any idea? Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
share memory between kernel and user space
Hi, Is there any way to share a piece of memory which is allocated in kernel space with a user space program? (don't use copy_to_user etc.) Thanks, Alex -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: A simple question.
If you do a make install, it will be copied to /boot directory automatically;-) Alex On Mon, 7 May 2001, Hai Xu wrote: > Dear all, > > After I compile and upgrade to a newer Kernel, do I need to copy the > System.map from /usr/src/linux/ to /boot/System- and link it to > System.map? > > Thanks in advance > Hai Xu > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: A simple question.
If you do a make install, it will be copied to /boot directory automatically;-) Alex On Mon, 7 May 2001, Hai Xu wrote: Dear all, After I compile and upgrade to a newer Kernel, do I need to copy the System.map from /usr/src/linux/ to /boot/System- and link it to System.map? Thanks in advance Hai Xu - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
test!
please ignore. -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
test!
please ignore. -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: Linux NAT questions- (kernel upgrade??)
i think iptables is a new feature in kernel 2.4.x(and you have to build it in the kernel or as module). you can use ipchains if you are running kernel with lower version, 2.2.something. Alex On Wed, 2 May 2001, Sim, CT (Chee Tong) wrote: > Hi.. I follow your instruction, but I encounter this issue, my kernel need > to be upgrade? MAy I know how to determine the current kernel version and > how to upgrade it?? > > > [root@guava /root]# iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i > eth1 -j D > NAT --to-destination 192.168.200.2 > iptables v1.1.1: can't initialize iptables table `nat': iptables who? (do > you need to insm > od?) > Perhaps iptables or your kernel needs to be upgraded. > > > [root@guava simc]# rpm -ivh iptables-1_2_0-6_i386.rpm > error: failed dependencies: > kernel >= 2.4.0 is needed by iptables-1.2.0-6 > > > -Original Message- > From: Michel Wilson [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 02, 2001 5:13 PM > To: Sim, CT (Chee Tong) > Cc: [EMAIL PROTECTED] > Subject: RE: Linux NAT questions > > > > what I am trying to do is this. I have a genuine network, say 1.1.1.x, and > > my Linux host is on it, as 1.1.1.252 (eth0). I also have a second > > network at > > the back of the Linux box, 192.168.200.x, and a web server on > > that network, > > 192.168.200.2. The Linux address is 192.168.200.1 on eth1. > > > > What I want to do is make the web server appear on the 1.1.1.x network as > > 1.1.1.160. I have done this before with Firewall-1 on NT, by > > putting an arp > > entry for 1.1.1.160 to point to the Linux machine eth0. The packets get > > redirected into the Linux machine, then translated, and then routed out of > > eth1. > > > > The benefit is that there is no routing change to the 1.1.1.x network, and > > the Linux box isn't even seen as a router. > > > > I would appreciate any help with this. Any command to do this? > > > > Chee Tong > This isn't really a kernel question. I think you'd better ask it on some > linux network list/newsgroup. But here's an answer anyway > > You could add 1.1.1.160 to eth0: >ip addr add 1.1.1.160 dev eth0 > and then use NAT to redirect these to the webserver: >iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i eth1 -j > DNAT --to-destination 192.168.200.2 > > This should work, AFAIK, but i didn't try it myself. You could also try to > use the arp command (see 'man arp'), but i don't know exactly how that > works. > > Good luck! > > Michel Wilson. > > > == > De informatie opgenomen in dit bericht kan vertrouwelijk zijn en > is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht > onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en > de afzender direct te informeren door het bericht te retourneren. > == > The information contained in this message may be confidential > and is intended to be exclusively for the addressee. Should you > receive this message unintentionally, please do not use the contents > herein and notify the sender immediately by return e-mail. > > > == > > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: Linux NAT questions- (kernel upgrade??)
i think iptables is a new feature in kernel 2.4.x(and you have to build it in the kernel or as module). you can use ipchains if you are running kernel with lower version, 2.2.something. Alex On Wed, 2 May 2001, Sim, CT (Chee Tong) wrote: Hi.. I follow your instruction, but I encounter this issue, my kernel need to be upgrade? MAy I know how to determine the current kernel version and how to upgrade it?? [root@guava /root]# iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i eth1 -j D NAT --to-destination 192.168.200.2 iptables v1.1.1: can't initialize iptables table `nat': iptables who? (do you need to insm od?) Perhaps iptables or your kernel needs to be upgraded. [root@guava simc]# rpm -ivh iptables-1_2_0-6_i386.rpm error: failed dependencies: kernel = 2.4.0 is needed by iptables-1.2.0-6 -Original Message- From: Michel Wilson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 02, 2001 5:13 PM To: Sim, CT (Chee Tong) Cc: [EMAIL PROTECTED] Subject: RE: Linux NAT questions what I am trying to do is this. I have a genuine network, say 1.1.1.x, and my Linux host is on it, as 1.1.1.252 (eth0). I also have a second network at the back of the Linux box, 192.168.200.x, and a web server on that network, 192.168.200.2. The Linux address is 192.168.200.1 on eth1. What I want to do is make the web server appear on the 1.1.1.x network as 1.1.1.160. I have done this before with Firewall-1 on NT, by putting an arp entry for 1.1.1.160 to point to the Linux machine eth0. The packets get redirected into the Linux machine, then translated, and then routed out of eth1. The benefit is that there is no routing change to the 1.1.1.x network, and the Linux box isn't even seen as a router. I would appreciate any help with this. Any command to do this? Chee Tong This isn't really a kernel question. I think you'd better ask it on some linux network list/newsgroup. But here's an answer anyway You could add 1.1.1.160 to eth0: ip addr add 1.1.1.160 dev eth0 and then use NAT to redirect these to the webserver: iptables -t nat -A PREROUTING -p tcp --dst 1.1.1.160 -i eth1 -j DNAT --to-destination 192.168.200.2 This should work, AFAIK, but i didn't try it myself. You could also try to use the arp command (see 'man arp'), but i don't know exactly how that works. Good luck! Michel Wilson. == De informatie opgenomen in dit bericht kan vertrouwelijk zijn en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onterecht ontvangt wordt u verzocht de inhoud niet te gebruiken en de afzender direct te informeren door het bericht te retourneren. == The information contained in this message may be confidential and is intended to be exclusively for the addressee. Should you receive this message unintentionally, please do not use the contents herein and notify the sender immediately by return e-mail. == - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- Feng Xian _o) .~. (o_ /\\ /V\ //\ _\_V// \\ V_/_ /( )\ ^^-^^ ALEX - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: About rebuild 2.4.x kernel to support SMP.
when you install redhat linux, you can select to install the kernel-include and kernel-source but I think the kernel include files come with redhat7 (i am not sure about rh6) won't let you to compile a kernel module by using /usr/include/linux (they ask you to use /usr/src/linux-xxx) you can dnload the kernel source from ftp://ftp.kernel.org and build you own kernel/NIC driver. Alex On Fri, 27 Apr 2001, Yiping Chen wrote: > I have a important question about compile driver here, sometimes we install > RedHat Linux > When you boot the system , it will not include the kernel source, if we > don't have kernel source , > whether can we compile the driver (NIC). > I am confused, beacuse we need include many kernel header file, if you don't > have linux kernel > source (I means that there is no kernel source in /usr/src, whether we can > compile the driver module > successfully?), whether we can just use the header file in /usr/include? > thanks!! > Yiping Chen > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > -- | Feng Xian * |(o_* |//\* |V_/_ * - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: About rebuild 2.4.x kernel to support SMP.
when you install redhat linux, you can select to install the kernel-include and kernel-source but I think the kernel include files come with redhat7 (i am not sure about rh6) won't let you to compile a kernel module by using /usr/include/linux (they ask you to use /usr/src/linux-xxx) you can dnload the kernel source from ftp://ftp.kernel.org and build you own kernel/NIC driver. Alex On Fri, 27 Apr 2001, Yiping Chen wrote: I have a important question about compile driver here, sometimes we install RedHat Linux When you boot the system , it will not include the kernel source, if we don't have kernel source , whether can we compile the driver (NIC). I am confused, beacuse we need include many kernel header file, if you don't have linux kernel source (I means that there is no kernel source in /usr/src, whether we can compile the driver module successfully?), whether we can just use the header file in /usr/include? thanks!! Yiping Chen - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ -- | Feng Xian * |(o_* |//\* |V_/_ * - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
The problem is I didn't see those error message on 2.4.2 or 2.4.0, only on 2.4.3. That's the reason I posted the question here. Maybe I will try 2.4.4 Thanks all for you guys! Alex On Thu, 26 Apr 2001, Feng Xian wrote: > > Yes I am running nvidia module. i tried nv, X use less memory but nv > doesn't give me the NV_GLX extension, xlock will crash for some 3d mode. > > Alex > > On Thu, 26 Apr 2001, Andi Kleen wrote: > > > On Thu, Apr 26, 2001 at 08:09:06AM -0400, Feng Xian wrote: > > > It looks like the X consumes most of the memory (almost used up all the > > > physical memory, more than 100M), it uses NVidia driver. I was also > > > running pppoe but that took less memory. > > > > You're probably using the NVidia provided driver module, right? > > Try it without it and the "nv" driver. > > > > > > -Andi > > > > -- Feng Xian .-. /v\L I N U X // \\ >Phear the Penguin< /( )\ ^^-^^ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
Yes I am running nvidia module. i tried nv, X use less memory but nv doesn't give me the NV_GLX extension, xlock will crash for some 3d mode. Alex On Thu, 26 Apr 2001, Andi Kleen wrote: > On Thu, Apr 26, 2001 at 08:09:06AM -0400, Feng Xian wrote: > > It looks like the X consumes most of the memory (almost used up all the > > physical memory, more than 100M), it uses NVidia driver. I was also > > running pppoe but that took less memory. > > You're probably using the NVidia provided driver module, right? > Try it without it and the "nv" driver. > > > -Andi > -- Feng Xian .-. /v\L I N U X // \\ >Phear the Penguin< /( )\ ^^-^^ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
Thanks for the suggestion. but where to get pre-2.4.4 kernel? when I looked into the kernel traffic mail list, peoples are talking about 2.4.4, but i checked kernel.org, the lastest one i found is 2.4.3 regards, Alex On Wed, 25 Apr 2001, Mark Hahn wrote: > > I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. > > 2.4.3 has many known flaws; why not try a pre-2.4.4 kernel? > > > __alloc_pages: 4-order allocation failed. > > these happen when someone tries to allocate large contiguous blocks. > > > and sometime the system will crash. I looked into the memory info, > > there still has some free physical memory (20M) left and swap space is > > almost not in use. (250M swap) > > your ram is fragmented; it's the contiguity that is causing the failure. > > > I didn't have this problem when I ran 2.4.0 (I even didn't see it on > > 2.4.2) could anybody tell me what's wrong or where should I look into this > > problem? > > you can simply perturb ram (flush, etc), or use a newer kernel. > -- Feng Xian .-. /v\L I N U X // \\ /( )\ ^^-^^ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
On Wed, 25 Apr 2001, Marcelo Tosatti wrote: > > > On Wed, 25 Apr 2001, Feng Xian wrote: > > > Hi, > > > > I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. > > After the machine runs a while, dmesg shows, > > > > __alloc_pages: 4-order allocation failed. > > __alloc_pages: 3-order allocation failed. > > __alloc_pages: 4-order allocation failed. > > __alloc_pages: 4-order allocation failed. > > __alloc_pages: 4-order allocation failed. > > __alloc_pages: 4-order allocation failed. > > > > > > and sometime the system will crash. I looked into the memory info, > > there still has some free physical memory (20M) left and swap space is > > almost not in use. (250M swap) > > > > I didn't have this problem when I ran 2.4.0 (I even didn't see it on > > 2.4.2) could anybody tell me what's wrong or where should I look into this > > problem? > > Feng, > > Which apps are you running when this happens ? It looks like the X consumes most of the memory (almost used up all the physical memory, more than 100M), it uses NVidia driver. I was also running pppoe but that took less memory. > > Thanks > > -- Feng Xian - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
On Wed, 25 Apr 2001, Marcelo Tosatti wrote: On Wed, 25 Apr 2001, Feng Xian wrote: Hi, I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. After the machine runs a while, dmesg shows, __alloc_pages: 4-order allocation failed. __alloc_pages: 3-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. and sometime the system will crash. I looked into the memory info, there still has some free physical memory (20M) left and swap space is almost not in use. (250M swap) I didn't have this problem when I ran 2.4.0 (I even didn't see it on 2.4.2) could anybody tell me what's wrong or where should I look into this problem? Feng, Which apps are you running when this happens ? It looks like the X consumes most of the memory (almost used up all the physical memory, more than 100M), it uses NVidia driver. I was also running pppoe but that took less memory. Thanks -- Feng Xian - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
Thanks for the suggestion. but where to get pre-2.4.4 kernel? when I looked into the kernel traffic mail list, peoples are talking about 2.4.4, but i checked kernel.org, the lastest one i found is 2.4.3 regards, Alex On Wed, 25 Apr 2001, Mark Hahn wrote: I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. 2.4.3 has many known flaws; why not try a pre-2.4.4 kernel? __alloc_pages: 4-order allocation failed. these happen when someone tries to allocate large contiguous blocks. and sometime the system will crash. I looked into the memory info, there still has some free physical memory (20M) left and swap space is almost not in use. (250M swap) your ram is fragmented; it's the contiguity that is causing the failure. I didn't have this problem when I ran 2.4.0 (I even didn't see it on 2.4.2) could anybody tell me what's wrong or where should I look into this problem? you can simply perturb ram (flush, etc), or use a newer kernel. -- Feng Xian .-. /v\L I N U X // \\ /( )\ ^^-^^ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
Yes I am running nvidia module. i tried nv, X use less memory but nv doesn't give me the NV_GLX extension, xlock will crash for some 3d mode. Alex On Thu, 26 Apr 2001, Andi Kleen wrote: On Thu, Apr 26, 2001 at 08:09:06AM -0400, Feng Xian wrote: It looks like the X consumes most of the memory (almost used up all the physical memory, more than 100M), it uses NVidia driver. I was also running pppoe but that took less memory. You're probably using the NVidia provided driver module, right? Try it without it and the nv driver. -Andi -- Feng Xian .-. /v\L I N U X // \\ Phear the Penguin /( )\ ^^-^^ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: __alloc_pages: 4-order allocation failed
The problem is I didn't see those error message on 2.4.2 or 2.4.0, only on 2.4.3. That's the reason I posted the question here. Maybe I will try 2.4.4 Thanks all for you guys! Alex On Thu, 26 Apr 2001, Feng Xian wrote: Yes I am running nvidia module. i tried nv, X use less memory but nv doesn't give me the NV_GLX extension, xlock will crash for some 3d mode. Alex On Thu, 26 Apr 2001, Andi Kleen wrote: On Thu, Apr 26, 2001 at 08:09:06AM -0400, Feng Xian wrote: It looks like the X consumes most of the memory (almost used up all the physical memory, more than 100M), it uses NVidia driver. I was also running pppoe but that took less memory. You're probably using the NVidia provided driver module, right? Try it without it and the nv driver. -Andi -- Feng Xian .-. /v\L I N U X // \\ Phear the Penguin /( )\ ^^-^^ - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
__alloc_pages: 4-order allocation failed
Hi, I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. After the machine runs a while, dmesg shows, __alloc_pages: 4-order allocation failed. __alloc_pages: 3-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. and sometime the system will crash. I looked into the memory info, there still has some free physical memory (20M) left and swap space is almost not in use. (250M swap) I didn't have this problem when I ran 2.4.0 (I even didn't see it on 2.4.2) could anybody tell me what's wrong or where should I look into this problem? Thanks, Alex -- Feng Xian - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
__alloc_pages: 4-order allocation failed
Hi, I am running linux-2.4.3 on a Dell dual PIII machine with 128M memory. After the machine runs a while, dmesg shows, __alloc_pages: 4-order allocation failed. __alloc_pages: 3-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. __alloc_pages: 4-order allocation failed. and sometime the system will crash. I looked into the memory info, there still has some free physical memory (20M) left and swap space is almost not in use. (250M swap) I didn't have this problem when I ran 2.4.0 (I even didn't see it on 2.4.2) could anybody tell me what's wrong or where should I look into this problem? Thanks, Alex -- Feng Xian - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/