
mickrussom at yahoo
Oct 24, 2009, 1:38 PM
Post #17 of 18
(1967 views)
Permalink
|
|
Re: Announce: PF_RING 4.0 (no kernel patching required)
[In reply to]
|
|
2.6.18-164.el5 is not 3 years old. Its brand new. Redhat constantly improves and back ports things to this kernel. The kernel is only old in that the KABI is stable. This is what most people who use Linux are looking for it they don't use it as a desktop (appliance, server, VM guest, VM host). In fact, I believe 2.6.18-164.el5 is the only kernel with KVM and Xen that is actually supported. Thank you for fix this; but realize that a lot of the changes from say, 2.6.18 until 2.6.31 - besides KVM and a few others, were done "just because" and most of us want the driver support from the newer kernels but not the wild-west/bazaar style development that causes a lot of breakage. Also realize that Redhat can fix horrible injustice that goes on in kernel development, like the injustice we saw with Con Kolivas and the BFS scheduler, which Google picked over Ingo's CFS for Andriod. Stable vendor kernels take the politics out of Linux and put the best of breed back in. I strongly recommend using RHEL/CentOS as the gold standard for PF_RING, I've seen quite literally thousands of these machines perform as servers and appliances for many years and find this distribution to be the most headache free. ----- Original Message ---- > From: Luca Deri <deri [at] ntop> > To: ntop-misc [at] listgateway > Sent: Sat, October 24, 2009 11:46:23 AM > Subject: Re: [Ntop-misc] Announce: PF_RING 4.0 (no kernel patching required) > > Hi all > I have made some patches to PF_RING so that it can compile on .18 kernel too. As > side comment, I acknowledge that PF_RING should compiler more or less on every > 2.6 kernel, but at the same time I think that a kernel 2/3 years old is a bit > outdated. > > Enjoy PF_RING, Luca > > As comment > On Oct 23, 2009, at 7:56 PM, Brian Mengel wrote: > > > Trying to compile on a fresh CentOS 5.4 install results in make > > errors. Is there a preferred kernel version/linux distribution for > > running the latest pf_ring and tnapi code? > > > > [root [at] prob kernel]# uname -a > > Linux probe 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 > > x86_64 x86_64 GNU/Linux > > > > > > [root [at] prob kernel]# make > > make -C /lib/modules/2.6.18-164.el5/build > > SUBDIRS=/usr/src/PF_RING/PF_RING/kernel modules > > make[1]: Entering directory `/usr/src/kernels/2.6.18-164.el5-x86_64' > > CC [M] /usr/src/PF_RING/PF_RING/kernel/pf_ring.o > > In file included from /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:48: > > include/linux/config.h:6:2: warning: #warning Including config.h is > deprecated. > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:223: error: redefinition of âip_hdrâ > > include/linux/ip.h:109: error: previous definition of âip_hdrâ was here > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:228: error: redefinition of > > âskb_set_network_headerâ > > include/linux/skbuff.h:1020: error: previous definition of > > âskb_set_network_headerâ was here > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:233: error: redefinition of > > âskb_reset_network_headerâ > > include/linux/skbuff.h:1015: error: previous definition of > > âskb_reset_network_headerâ was here > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:238: error: redefinition of > > âskb_reset_transport_headerâ > > include/linux/skbuff.h:994: error: previous definition of > > âskb_reset_transport_headerâ was here > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c: In function âring_createâ: > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2437: error: ânetâ > > undeclared (first use in this function) > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2437: error: (Each > > undeclared identifier is reported only once > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2437: error: for each > > function it appears in.) > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c: In function âring_releaseâ: > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2483: error: implicit > > declaration of function âsock_netâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2483: warning: > > initialization makes pointer from integer without a cast > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2499: error: dereferencing > > pointer to incomplete type > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:2501: error: dereferencing > > pointer to incomplete type > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c: In function âring_notifierâ: > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4328: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4329: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4338: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4341: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4346: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c: In function âring_exitâ: > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4377: error: âstruct > > net_deviceâ has no member named âml_privâ > > /usr/src/PF_RING/PF_RING/kernel/pf_ring.c:4380: error: âstruct > > net_deviceâ has no member named âml_privâ > > make[2]: *** [/usr/src/PF_RING/PF_RING/kernel/pf_ring.o] Error 1 > > make[1]: *** [_module_/usr/src/PF_RING/PF_RING/kernel] Error 2 > > make[1]: Leaving directory `/usr/src/kernels/2.6.18-164.el5-x86_64' > > make: *** [all] Error 2 > > > > > > On Wed, Oct 21, 2009 at 1:07 PM, Luca Deri wrote: > >> Alexander > >> I use .26 or .30 kernels so I can't say much about newer kernels. Can you > >> please check if with older kernel it works for you? If this is the problem I > >> need to get a newer kernel > >> > >> Luca > >> > >> On Oct 21, 2009, at 6:24 PM, Alexander Didebulidze wrote: > >> > >>> Hello Luca, > >>> > >>> I'm testing PF_RING on old dual Xeon machine... > >>> > >>> PF_RING compiles well with 2.6.31.4 and 2.6.32-rc5 and i can load module > >>> without problems... but when i send traffic to this interface i get > >>> kernel panic. > >>> > >>> Generator: pktgen , 64 byte , 1070910 PPS ~ 500 Mbit/s > >>> > >>> 1. without pf_ring , "tcpdump -i eth2 -w /dev/null": OK > >>> 2. insmod pf_ring.ko, "pfcount -i eth2" : Kernel Panic > >>> > >>> after several seconds after starting traffic generator server stoped > >>> replying to ping. after remote reset/reboot i found this in syslog: > >>> > >>> http://pastebin.com/m3273c030 > >>> > >>> this happens to 2.6.32-rc5 and 2.6.31.4 . > >>> > >>> in other test with pcount i got similar error : > >>> > >>> 604.063391] [PF_RING] successfully allocated 1388544 bytes at > >>> 0xf8fe2000 > >>> [ 604.063398] [PF_RING] allocated 4107 slots > >>> [slot_len=338][tot_mem=1388544] > >>> [ 604.064160] device eth2 entered promiscuous mode > >>> [ 604.804323] pcount: page allocation failure. order:0, mode:0x20 > >>> [ 604.804331] Pid: 4616, comm: pcount Not tainted 2.6.31.4 #1 > >>> [ 604.804334] Call Trace: > >>> [ 604.804348] [] ? printk+0x18/0x1c > >>> [ 604.804358] [] __alloc_pages_nodemask+0x46b/0x530 > >>> [ 604.804367] [] __slab_alloc+0x4c6/0x560 > >>> [ 604.804376] [] ? __alloc_skb+0x29/0x120 > >>> [ 604.804380] [] kmem_cache_alloc+0x111/0x120 > >>> [ 604.804385] [] ? __alloc_skb+0x29/0x120 > >>> [ 604.804389] [] ? __alloc_skb+0x29/0x120 > >>> [ 604.804393] [] __alloc_skb+0x29/0x120 > >>> [ 604.804398] [] __netdev_alloc_skb+0x23/0x50 > >>> [ 604.804430] [] e1000_clean_rx_irq+0x33d/0x4c0 [e1000] > >>> [ 604.804446] [] e1000_clean+0x1d0/0x530 [e1000] > >>> [ 604.804453] [] ? getnstimeofday+0x56/0x110 > >>> [ 604.804459] [] ? lapic_next_event+0x16/0x20 > >>> [ 604.804464] [] ? clockevents_program_event+0x98/0x150 > >>> [ 604.804471] [] net_rx_action+0xdc/0x1b0 > >>> [ 604.804478] [] __do_softirq+0xba/0x180 > >>> [ 604.804483] [] ? handle_IRQ_event+0x58/0x140 > >>> [ 604.804489] [] ? ack_apic_level+0x7e/0x270 > >>> [ 604.804494] [] do_softirq+0x2d/0x40 > >>> [ 604.804498] [] irq_exit+0x65/0x90 > >>> [ 604.804503] [] do_IRQ+0x4f/0xc0 > >>> [ 604.804508] [] ? irq_exit+0x34/0x90 > >>> [ 604.804512] [] ? smp_apic_timer_interrupt+0x57/0x90 > >>> [ 604.804517] [] common_interrupt+0x29/0x30 > >>> [ 604.804520] Mem-Info: > >>> [ 604.804523] DMA per-cpu: > >>> [ 604.804526] CPU 0: hi: 0, btch: 1 usd: 0 > >>> [ 604.804529] CPU 1: hi: 0, btch: 1 usd: 0 > >>> [ 604.804531] CPU 2: hi: 0, btch: 1 usd: 0 > >>> [ 604.804534] CPU 3: hi: 0, btch: 1 usd: 0 > >>> [ 604.804536] Normal per-cpu: > >>> [ 604.804539] CPU 0: hi: 186, btch: 31 usd: 49 > >>> [ 604.804542] CPU 1: hi: 186, btch: 31 usd: 78 > >>> [ 604.804544] CPU 2: hi: 186, btch: 31 usd: 35 > >>> [ 604.804547] CPU 3: hi: 186, btch: 31 usd: 118 > >>> [ 604.804549] HighMem per-cpu: > >>> [ 604.804552] CPU 0: hi: 42, btch: 7 usd: 8 > >>> [ 604.804555] CPU 1: hi: 42, btch: 7 usd: 28 > >>> [ 604.804557] CPU 2: hi: 42, btch: 7 usd: 7 > >>> [ 604.804560] CPU 3: hi: 42, btch: 7 usd: 16 > >>> ... > >>> > >>> The problem seems to occur sooner with 500 mbit/s than with 200 mbit/s. > >>> > >>> Can other users confirm this problem with pf_ring 4.0? > >>> > >>> > >>> Kind regards, > >>> Alexander > >>> > >>> > >>> > >>> On Sun, 2009-10-18 at 22:00 +0200, Luca Deri wrote: > >>>> > >>>> Dear all > >>>> this is to announce the release of PF_RING 4.0. Due to popular demand > >>>> I have finally managed to build a new release of PF_RING that can be > >>>> built on top of a vanilla kernel (please remember to download kernel > >>>> source, that in general are available as package from your favorite > >>>> Linux distribution) without patching the kernel as with PF_RING 3.0. > >>>> > >>>> This I think is a big improvement as those of you who have not yet > >>>> adopted PF_RING due to kernel patching, can now finally use and enjoy > >>>> it. > >>>> > >>>> As this is the first 4.x release, I believe there are still some > >>>> issues that need to be addressed. Please report any problem you might > >>>> experience. > >>>> > >>>> IMPORTANT: if you plan to use 4.0 on a *patched kernel* this is not a > >>>> good idea as you will receive packets twice. Please use 4.0 with a > >>>> vanilla kernel and not with a patched kernel. > >>>> > >>>> Enjoy Luca > >>>> _______________________________________________ > >>>> Ntop-misc mailing list > >>>> Ntop-misc [at] listgateway > >>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc > >>> > >>> > >>> > >>> _______________________________________________ > >>> Ntop-misc mailing list > >>> Ntop-misc [at] listgateway > >>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc > >> > >> _______________________________________________ > >> Ntop-misc mailing list > >> Ntop-misc [at] listgateway > >> http://listgateway.unipi.it/mailman/listinfo/ntop-misc > >> > > _______________________________________________ > > Ntop-misc mailing list > > Ntop-misc [at] listgateway > > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > _______________________________________________ > Ntop-misc mailing list > Ntop-misc [at] listgateway > http://listgateway.unipi.it/mailman/listinfo/ntop-misc _______________________________________________ Ntop-misc mailing list Ntop-misc [at] listgateway http://listgateway.unipi.it/mailman/listinfo/ntop-misc
|