mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Valdis.Kletnieks@vt.edu
To: linux-kernel@vger.kernel.org
Subject: 2.6.18-rc1-mm1 - VPN chewing CPU like crazy..
Date: Tue, 11 Jul 2006 00:20:22 -0400	[thread overview]
Message-ID: <200607110420.k6B4KMZM013584@turing-police.cc.vt.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 2726 bytes --]

(This is *NOT* new with 2.6.18-rc1-mm1, I've seen it a few times before, no
idea when it started... I think I've seen it as far back as 2.6.16-mm2 or so).

Most of the time, the VPN comes up just fine.

Jul 10 22:44:28 turing-police kernel: [ 7180.696000] CSLIP: code copyright 1989 Regents of the University of California
Jul 10 22:44:28 turing-police kernel: [ 7180.701000] PPP generic driver version 2.4.2
Jul 10 23:00:26 turing-police kernel: [ 8137.903000] PPP MPPE Compression module registered

However, sometimes (usually when restarting after the VPN gets dropped due to
a network burp, etc), it will start up, get connected, and then the the first
(or one of the first) data packets over the VPN will suddenly spike the
CPU to 100% (about 50% userspace and 50% kernel).  A quick oprofile check
shows the kernel CPU getting sucked:

samples  %        image name               app name                 symbol name
10901    18.2805  arc4.ko                  arc4                     .text
5046      8.4619  ppp_async.ko             ppp_async                ppp_async_push
4865      8.1584  pptp                     pptp                     (no symbols)
4382      7.3484  arc4.ko                  arc4                     arc4_set_key
4331      7.2629  vmlinux                  vmlinux                  sha_transform
4203      7.0482  libfb.so                 libfb.so                 fbCopyAreammx
3342      5.6044  vmlinux                  vmlinux                  ecb_process
1324      2.2203  libgdk_imlib.so.1.9.13   libgdk_imlib.so.1.9.13   (no symbols)
1149      1.9268  ip_tables.ko             ip_tables                ipt_do_table
1071      1.7960  vmlinux                  vmlinux                  local_bh_enable
848       1.4221  vmlinux                  vmlinux                  acpi_pm_read
816       1.3684  vmlinux                  vmlinux                  __local_bh_disable
698       1.1705  vmlinux                  vmlinux                  n_tty_receive_buf
651       1.0917  vmlinux                  vmlinux                  do_page_fault

(pptp is the userspace control process)

gkrellm reports that about 4 mbytes/sec is being sent on ppp0 - but shows
zero traffic on eth0 (the underlying interface).  When working properly,
both ppp0 and eth0 show the traffic.

This continues until I get fed up and manually take the VPN down, at which
point it happily gets rid of ppp0 and CPU load returns to normal.

I haven't found a clean way to reproduce it - sometimes I won't see it for
2-3 weeks, then it will pop up several times in an evening.

Any suggestions/hints (besides rebuilding the implicated .ko with debugging
symbols so oprofile can be more granular - that's already on the to-do list)?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

             reply	other threads:[~2006-07-11  4:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-11  4:20 Valdis.Kletnieks [this message]
2006-07-11  6:19 ` Andrew Morton
2006-07-11 12:35   ` Valdis.Kletnieks

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=200607110420.k6B4KMZM013584@turing-police.cc.vt.edu \
    --to=valdis.kletnieks@vt.edu \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®