Update: [Click] Problem with fast-classifier

Peter Lippens Peter.Lippens at UGent.be
Thu Nov 11 06:39:24 EST 2004


Hi Eddie,

Did anyone, concerning this, had a problem with the normal forwarding througput
of Click 1.4.1 without optimizing ?
I ask this question because, with an AMD Athlon XP with 2 NIC's Intel Ethernet
Pro 100 Mbps (eepro100 standard driver)(one in, other out), and packets of 64
byte, and a simple config (PollDevice -Queue - ToDevice)(both polling), I have
already packet-loss at +/- 65 Mbps load (+/- 100.000 packets/sec), which is much
less than your measurements, and earlier measurements here in Ghent.

Thanks in advance,

Peter

Citeren Eddie Kohler <kohler at cs.ucla.edu>:

> Peter Lippens wrote:
> > Hi Eddie,
> >
> > You were right, I compiled with the '--disable-userlevel' option.
> > Now I recompiled a fresh kernel (Debian 2.4.26) with the patch you
> mentioned
> > yesterday (debian_click_meshax.patch), and installed Click with the
> following
> > options:
> > ./configure --with-linux-map=/boot/System.map-2.4.26-click20041026
> > --enable-etherswitch --enable-analysis --enable-tools=build
> >
> > When I try again, I get the following problem (first error disappeared):
> > see attachment Problem_fastclassifier.txt
> > When I try only devirtualise, my machine crashes on the following lines
> (same
> > problem as above):
>
> Hi Peter,
>
> Looks like there's a bad interaction between click-fastclassifier and
> click-devirtualize.  I'll look into this today.  The warnings are not
> important,
> FYI; the problem is this:
>
> /tmp/clicktmp261/_devirtualize.ko: unresolved symbol
> __vt_20FastClassifier_a_ac0
> click-install: '/sbin/insmod /tmp/clicktmp261/_devirtualize.ko' failed
>
> Eddie
>
>
> >
> > nike3:/click# click-devirtualize -k config | click-install
> > g++ -w -W -Wall -fno-exceptions -fno-rtti -fvtable-thunks -fpermissive
> > -DHAVE_CONFIG_H -DCLICK_LINUXMODULE -I/usr/local/share/click/src
> > -I/usr/local/include -I/usr/src/linux/include -O2 -MD -c -DCLICK_PACKAGE
> -w
> > -fno-access-control devirtualize.k.cc -o devirtualize.k4831.o
> > gcc -W -Wall -DHAVE_CONFIG_H -DCLICK_LINUXMODULE
> -I/usr/local/share/click/src
> > -I/usr/local/include -I/usr/src/linux/include -O2 -MD -c
> kernelversion4831.c
> > In file included from /usr/src/linux/include/linux/prefetch.h:13,
> >                  from /usr/src/linux/include/linux/list.h:6,
> >                  from /usr/src/linux/include/linux/module.h:12,
> >                  from kernelversion4831.c:2:
> > /usr/src/linux/include/asm/processor.h: In function `copy_segments':
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `p'
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `mm'
> > /usr/src/linux/include/asm/processor.h: In function `release_segments':
> > /usr/src/linux/include/asm/processor.h:434: warning: unused parameter `mm'
> > ld -r -o devirtualize.ko   devirtualize.k4831.o kernelversion4831.o
> >
> > Do you have any idea...? I had no error-messages compiling kernel or
> Click.
> > Thanks in advance,
> >
> > Peter
> >
> >
> > Quoting Eddie Kohler <kohler at CS.UCLA.EDU>:
> >
> >
> >>Hi Peter,
> >>
> >>Hmm.  This seems a little weird.  Have you installed user-level Click?
> >>A user-level version of Click is required to avoid this error:
> >>
> >>
> >>>config: warning: click-fastclassifier: empty configuration
> >>>click-fastclassifier: cannot find file 'click'
> >>>click-fastclassifier: in CLICKPATH ''
> >>
> >>As for this error,
> >>
> >>
> >>><stdin>: warning: empty configuration
> >>>g++ -w -W -Wall -fno-exceptions -fno-rtti -fvtable-thunks -fpermissive
> >>>-DHAVE_CONFIG_H -DCLICK_LINUXMODULE -I/usr/local/share/click/src
> >>>-I/usr/local/include -I/usr/src/linux/include -O2 -MD -c
> >>>-DCLICK_PACKAGE -w
> >>>-fno-access-control devirtualize.cc -o devirtualize879.o
> >>>devirtualize.cc: In function `int init_module(...)':
> >>>devirtualize.cc:29: `MOD_IN_USE' undeclared (first use this function)
> >>>devirtualize.cc:29: (Each undeclared identifier is reported only once
> >>>devirtualize.cc:29: for each function it appears in.)
> >>>devirtualize.cc:30: `MOD_DEC_USE_COUNT' undeclared (first use this
> >>>function)
> >>>'/usr/local/bin/click-compile --directory=/tmp/clicktmp873/
> >>>--target=kernel
> >>>--package=devirtualize.ko devirtualize.cc' failed
> >>><stdin>: warning: empty configuration
> >>
> >>let's see if it goes away once you've got the first error fixed.  I
> >>don't see anything like it here.
> >>
> >>Eddie
> >>
> >>
> >>
> >>>I tried putting the config in /click, /usr/src/click and in /root,
> >>>click.o
> >>>loaded & not loaded, but always the same error...
> >>>
> >>>Can anyone help...?
> >>>Thanks,
> >>>
> >>>Peter Lippens
> >>>Ghent University
> >>>
> >>>
> >>>Quoting Eddie Kohler <kohler at CS.UCLA.EDU>:
> >>>
> >>>
> >>>>Hi Peter,
> >>>>
> >>>>Looks like this was a bug.  It's fixed in anonymous CVS.  Thanks for
> >>>>reporting it!
> >>>>
> >>>>Eddie
> >>>>
> >>>>
> >>>>On Oct 7, 2004, at 4:33 AM, Peter Lippens wrote:
> >>>>
> >>>>
> >>>>>Hello,
> >>>>>
> >>>>>Using Linux 2.4.26 with Click 1.4.1, i'm having problems optimizing
> >>>>>the
> >>>>>(working) config (named 'config') of a standard IP-router.
> >>>>>When I issue the command 'click-fastclassifier config |
> >>>>>click-devirtualize |
> >>>>>click-install' , I get the following error:
> >>>>>
> >>>>>click-install: Compiling package fastclassifier.cc from config
> >>>>>archive
> >>>>>g++ -w -W -Wall -fno-exceptions -fno-rtti -fvtable-thunks
> >>>>>-DHAVE_CONFIG_H
> >>>>>-DCLICK_LINUXMODULE -I/usr/local/share/click/src -I/usr/local/include
> >>>>>-I/usr/src/linux/include -O2 -MD -c -DCLICK_PACKAGE -w
> >>>>>fastclassifier.cc -o
> >>>>>fastclassifier20023.o
> >>>>>fastclassifier.cc: In function `int init_module(...)':
> >>>>>fastclassifier.cc:57: passing `FastClassifier_a_ac0 *' as argument 2
> >>>>>of
> >>>>>`click_add_element_type(const char *, Element * (*)(long unsigned
> >>>>>int), long
> >>>>>unsigned int)'
> >>>>>click-install: While compiling package 'fastclassifier.ko':
> >>>>>click-install:   '/usr/local/bin/click-compile --target=linuxmodule
> >>>>>--package=fastclassifier.ko fastclassifier.cc' failed
> >>>>>
> >>>>>In attach you can find the source.
> >>>>>Thanks in advance,
> >>>>>
> >>>>>Peter Lippens - University Ghent
> >>>>>
> >>>>>
> >>>>>--
> >>>>><test.cc>_______________________________________________
> >>>>>click mailing list
> >>>>>click at amsterdam.lcs.mit.edu
> >>>>>https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >>>>
> >>>>
> >>>
> >>>--
> >>>
> >>>
> >>>_______________________________________________
> >>>click mailing list
> >>>click at amsterdam.lcs.mit.edu
> >>>https://amsterdam.lcs.mit.edu/mailman/listinfo/click
> >>
> >>
> >
> >
> > --
> >
> >
> > ------------------------------------------------------------------------
> >
> > nike3:~# click-fastclassifier -k config | click-devirtualize -k |
> click-install
> > g++ -w -W -Wall -fno-exceptions -fno-rtti -fvtable-thunks -fpermissive
> -DHAVE_CONFIG_H -DCLICK_LINUXMODULE -I/usr/local/share/click/src
> -I/usr/local/include -I/usr/src/linux/include -O2 -MD -c -DCLICK_PACKAGE -w
> fastclassifier.cc -o fastclassifier268.o
> > gcc -W -Wall -DHAVE_CONFIG_H -DCLICK_LINUXMODULE
> -I/usr/local/share/click/src -I/usr/local/include -I/usr/src/linux/include
> -O2 -MD -c kernelversion268.c
> > In file included from /usr/src/linux/include/linux/prefetch.h:13,
> >                  from /usr/src/linux/include/linux/list.h:6,
> >                  from /usr/src/linux/include/linux/module.h:12,
> >                  from kernelversion268.c:2:
> > /usr/src/linux/include/asm/processor.h: In function `copy_segments':
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `p'
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `mm'
> > /usr/src/linux/include/asm/processor.h: In function `release_segments':
> > /usr/src/linux/include/asm/processor.h:434: warning: unused parameter `mm'
> > ld -r -o fastclassifier.ko   fastclassifier268.o kernelversion268.o
> > g++ -w -W -Wall -fno-exceptions -fno-rtti -fvtable-thunks -fpermissive
> -DHAVE_CONFIG_H -DCLICK_LINUXMODULE -I/usr/local/share/click/src
> -I/usr/local/include -I/usr/src/linux/include -O2 -MD -c -DCLICK_PACKAGE -w
> -fno-access-control devirtualize.k.cc -o devirtualize.k309.o
> > gcc -W -Wall -DHAVE_CONFIG_H -DCLICK_LINUXMODULE
> -I/usr/local/share/click/src -I/usr/local/include -I/usr/src/linux/include
> -O2 -MD -c kernelversion309.c
> > In file included from /usr/src/linux/include/linux/prefetch.h:13,
> >                  from /usr/src/linux/include/linux/list.h:6,
> >                  from /usr/src/linux/include/linux/module.h:12,
> >                  from kernelversion309.c:2:
> > /usr/src/linux/include/asm/processor.h: In function `copy_segments':
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `p'
> > /usr/src/linux/include/asm/processor.h:433: warning: unused parameter `mm'
> > /usr/src/linux/include/asm/processor.h: In function `release_segments':
> > /usr/src/linux/include/asm/processor.h:434: warning: unused parameter `mm'
> > ld -r -o devirtualize.ko   devirtualize.k309.o kernelversion309.o
> > /tmp/clicktmp261/_devirtualize.ko: unresolved symbol
> __vt_20FastClassifier_a_ac0
> > click-install: '/sbin/insmod /tmp/clicktmp261/_devirtualize.ko' failed
> > nike3:~# lsmod
> > Module                  Size  Used by    Not tainted
> > _fastclassifier.ko      1572   0  (unused)
> > click                 767568   1  [_fastclassifier.ko]
> > proclikefs              2208   3  [click]
> > eepro100               21100   4
> > nike3:~#
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > click mailing list
> > click at amsterdam.lcs.mit.edu
> > https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
>


--




More information about the click mailing list