LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-01-2011, 11:33 PM   #1
dashang.trivedi
Member
 
Registered: Feb 2011
Posts: 56

Rep: Reputation: 0
New IMQ patch Problem...


I have compile 2.6.39.4 Kernel .....its works successfully ...
But after that i have applied PATCH of IMQ 2.6.39 with multi-queue. and IPTables 1.4.10 ...
Patch is applied successfully but in /var/log/messages its display

Code:
Dec 01 15:36:38 1322733998 kernel: ------------[ cut here ]------------
Dec 01 15:36:38 1322733998 kernel: WARNING: at net/sched/sch_hfsc.c:1427 hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]()
Dec 01 15:36:38 1322733998 kernel: Hardware name: VMware Virtual Platform
Dec 01 15:36:38 1322733998 kernel: Modules linked in: imq ipt_REJECT cls_fw sch_sfq ipt_MASQUERADE sch_hfsc xt_IMQ xt_connmark arpta
ble_filter arp_tables xt_NOTRACK ipt_REDIRECT xt_hashlimit xt_tcpudp xt_mark xt_state xt_multiport xt_set ip_set_hash_net ip_set_has
h_ip ip_set nfnetlink iptable_raw iptable_filter iptable_mangle iptable_nat ip_tables x_tables nf_nat_tftp nf_nat_pptp nf_nat_proto_
gre nf_nat_irc nf_nat_ftp nf_nat nf_conntrack_tftp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_ftp af_pac
ket pppoe pppox ppp_generic slhc pcnet32 nf_conntrack_ipv4 nf_conntrack nf_defrag_ipv4 8021q BusLogic [last unloaded: imq]
Dec 01 15:36:38 1322733998 kernel: Pid: 0, comm: kworker/0:0 Tainted: G        W   2.6.39.4-1smp #2
Dec 01 15:36:38 1322733998 kernel: Call Trace:
Dec 01 15:36:38 1322733998 kernel:  [<c1026548>] warn_slowpath_common+0x65/0x7a
Dec 01 15:36:38 1322733998 kernel:  [<d0f023be>] ? hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]
Dec 01 15:36:38 1322733998 kernel:  [<c102656c>] warn_slowpath_null+0xf/0x13
Dec 01 15:36:38 1322733998 kernel:  [<d0f023be>] hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]
Dec 01 15:36:38 1322733998 kernel:  [<c11c0626>] __qdisc_run+0x70/0xe4
Dec 01 15:36:38 1322733998 kernel:  [<c11acd21>] net_tx_action+0x9c/0xe6
Dec 01 15:36:38 1322733998 kernel:  [<c102a936>] __do_softirq+0x6b/0xe5
Dec 01 15:36:38 1322733998 kernel:  [<c102a8cb>] ? __local_bh_enable+0x68/0x68
Dec 01 15:36:38 1322733998 kernel:  <IRQ>  [<c102a847>] ? irq_exit+0x32/0x3b
Dec 01 15:36:38 1322733998 kernel:  [<c10149f2>] ? smp_apic_timer_interrupt+0x6e/0x7c
Dec 01 15:36:38 1322733998 kernel:  [<c121ea5a>] ? apic_timer_interrupt+0x2a/0x30
Dec 01 15:36:38 1322733998 kernel:  [<c100779b>] ? default_idle+0x2e/0x43
Dec 01 15:36:38 1322733998 kernel:  [<c100198c>] ? cpu_idle+0x3a/0x52
Dec 01 15:36:38 1322733998 kernel:  [<c121a243>] ? start_secondary+0x190/0x195
Dec 01 15:36:38 1322733998 kernel: ---[ end trace 393581315ab6411e ]---
Dec 01 15:36:38 1322733998 kernel: ------------[ cut here ]------------
Dec 01 15:36:38 1322733998 kernel: WARNING: at net/sched/sch_hfsc.c:1427 hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]()
Dec 01 15:36:38 1322733998 kernel: Hardware name: VMware Virtual Platform
Dec 01 15:36:38 1322733998 kernel: Modules linked in: imq ipt_REJECT cls_fw sch_sfq ipt_MASQUERADE sch_hfsc xt_IMQ xt_connmark arpta
ble_filter arp_tables xt_NOTRACK ipt_REDIRECT xt_hashlimit xt_tcpudp xt_mark xt_state xt_multiport xt_set ip_set_hash_net ip_set_has
h_ip ip_set nfnetlink iptable_raw iptable_filter iptable_mangle iptable_nat ip_tables x_tables nf_nat_tftp nf_nat_pptp nf_nat_proto_
gre nf_nat_irc nf_nat_ftp nf_nat nf_conntrack_tftp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_irc nf_conntrack_ftp af_pac
ket pppoe pppox ppp_generic slhc pcnet32 nf_conntrack_ipv4 nf_c0x32/0x3b
Dec 01 15:36:38 1322733998 kernel:  [<c10149f2>] ? smp_apic_timer_interrupt+0x6e/0x7c
Dec 01 15:36:38 1322733998 kernel:  [<c121ea5a>] ? apic_timer_interrupt+0x2a/0x30
Dec 01 15:36:38 1322733998 kernel:  [<c100779b>] ? default_idle+0x2e/0x43
Dec 01 15:36:38 1322733998 kernel:  [<c100198c>] ? cpu_idle+0x3a/0x52
Dec 01 15:36:38 1322733998 kernel:  [<c121a243>] ? start_secondary+0x190/0x195
Dec 01 15:36:38 1322733998 kernel: ---[ end trace 393581315ab64148 ]---
Dec 01 15:36:38 1322733998 kernel: ------------[ cut here ]------------
Dec 01 15:36:38 1322733998 kernel: WARNING: at net/sched/sch_hfsc.c:1427 hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]()
Dec 01 15:36:38 1322733998 kernel: Hardware name: VMware Virtual Platform

this message is continuesly display in /var/log/message and dmesg ....

in config file IMQ RELATED configuration is ..
Code:
CONFIG_NETFILTER_XT_TARGET_IMQ=m
CONFIG_IMQ=m
# CONFIG_IMQ_BEHAVIOR_AA is not set
CONFIG_IMQ_BEHAVIOR_AB=y
# CONFIG_IMQ_BEHAVIOR_BA is not set
# CONFIG_IMQ_BEHAVIOR_BB is not set
CONFIG_IMQ_NUM_DEVS=16
Please tell me how to solve this problem
 
Old 12-05-2011, 04:02 AM   #2
jb_gpk
Member
 
Registered: Dec 2010
Distribution: Debian
Posts: 30

Rep: Reputation: 13
Hello!

this lines are the footprints of the warning:
Quote:
Dec 01 15:36:38 1322733998 kernel: [<c1026548>] warn_slowpath_common+0x65/0x7a
Dec 01 15:36:38 1322733998 kernel: [<d0f023be>] ? hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]
Dec 01 15:36:38 1322733998 kernel: [<c102656c>] warn_slowpath_null+0xf/0x13
Dec 01 15:36:38 1322733998 kernel: [<d0f023be>] hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]
Dec 01 15:36:38 1322733998 kernel: [<c11c0626>] __qdisc_run+0x70/0xe4
Dec 01 15:36:38 1322733998 kernel: [<c11acd21>] net_tx_action+0x9c/0xe6
Dec 01 15:36:38 1322733998 kernel: [<c102a936>] __do_softirq+0x6b/0xe5
Dec 01 15:36:38 1322733998 kernel: [<c102a8cb>] ? __local_bh_enable+0x68/0x68
Dec 01 15:36:38 1322733998 kernel: <IRQ> [<c102a847>] ? irq_exit+0x32/0x3b
Dec 01 15:36:38 1322733998 kernel: [<c10149f2>] ? smp_apic_timer_interrupt+0x6e/0x7c
Dec 01 15:36:38 1322733998 kernel: [<c121ea5a>] ? apic_timer_interrupt+0x2a/0x30
Dec 01 15:36:38 1322733998 kernel: [<c100779b>] ? default_idle+0x2e/0x43
Dec 01 15:36:38 1322733998 kernel: [<c100198c>] ? cpu_idle+0x3a/0x52
Dec 01 15:36:38 1322733998 kernel: [<c121a243>] ? start_secondary+0x190/0x195

and this line tell us exactly where the WARNING happened
Quote:
Dec 01 15:36:38 1322733998 kernel: WARNING: at net/sched/sch_hfsc.c:1427 hfsc_dequeue+0x1aa/0x2c2 [sch_hfsc]()
what lead us to the following piece of code:
Code:
hfsc_schedule_watchdog(struct Qdisc *sch)
{
        struct hfsc_sched *q = qdisc_priv(sch);
        struct hfsc_class *cl;
        u64 next_time = 0;

        cl = eltree_get_minel(q);
        if (cl)
                next_time = cl->cl_e;
        if (q->root.cl_cfmin != 0) {
                if (next_time == 0 || next_time > q->root.cl_cfmin)
                        next_time = q->root.cl_cfmin;
        }
        WARN_ON(next_time == 0);
        qdisc_watchdog_schedule(&q->watchdog, next_time);
}
wich is only called here on the function hfsc_dequeue:
Code:
 
...

cl = eltree_get_mindl(q, cur_time);
        if (cl) {
                realtime = 1;
        } else {
                /*
                 * use link-sharing criteria
                 * get the class with the minimum vt in the hierarchy
                 */
                cl = vttree_get_minvt(&q->root, cur_time);
                if (cl == NULL) {
                        sch->qstats.overlimits++;
                        hfsc_schedule_watchdog(sch);
                        return NULL;
                }
        }
...
I'm curious about this, so I will try to reproduce this here on a virtual machine
but for a quick answer you should post this on the IMQ mailing list: http://tech.groups.yahoo.com/group/linuximq/

If you find a solution please post it here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 03:45 PM
Patch iptables with imq support in Ubuntu nw504 Linux - Networking 0 03-21-2007 05:24 AM
Determine if kernel has IMQ patch Mithrilhall Linux - General 1 10-24-2006 05:14 PM
Stumped on IMQ problem rlh989 Linux - Networking 0 08-05-2005 03:49 PM
pls help!!! iptables patch for IMQ device target debloxie Linux - Networking 0 03-03-2004 05:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration