From: junlee <lijun422@gmail.com>
To: users@dpdk.org
Subject: [dpdk-users] KNI with RTE_KNI_PREEMPT_DEFAULT=n causes CPU soft-lockup
Date: Mon, 27 Nov 2017 09:27:02 +0800 [thread overview]
Message-ID: <CACVZbxroP9h7oMAmR8L1EkwTVLYv++SV+Lwew-mhcfUeUAJc_A@mail.gmail.com> (raw)
Hi,
We are testing KNI performance and finds the schedule_timeout_interruptible
causes extra latency for packets.
We tried to set RTE_KNI_PREEMPT_DEFAULT=n to reduce the latency, but ends
up with CPU soft-lockup.
Anybody knows how to make this work?
static int
kni_thread_single(void *data)
{
struct kni_net *knet = data;
int j;
struct kni_dev *dev;
while (!kthread_should_stop()) {
down_read(&knet->kni_list_lock);
for (j = 0; j < KNI_RX_LOOP_NUM; j++) {
list_for_each_entry(dev, &knet->kni_list_head, list) {
kni_net_rx(dev);
kni_net_poll_resp(dev);
}
}
up_read(&knet->kni_list_lock);
#ifdef RTE_KNI_PREEMPT_DEFAULT
/* reschedule out for a while */
schedule_timeout_interruptible(
usecs_to_jiffies(KNI_KTHREAD_RESCHEDULE_INTERVAL));
#endif
}
return 0;
}
Thanks.
next reply other threads:[~2017-11-27 1:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-27 1:27 junlee [this message]
[not found] ` <CADNuJVr3O+h-mhiL8=2tJtk0wCecVE_4XfaCog0xpVz10yc5Ew@mail.gmail.com>
2017-11-27 12:49 ` junlee
2017-11-28 2:24 ` junlee
2017-12-04 9:24 ` junlee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CACVZbxroP9h7oMAmR8L1EkwTVLYv++SV+Lwew-mhcfUeUAJc_A@mail.gmail.com \
--to=lijun422@gmail.com \
--cc=users@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).