Your message dated Sat, 15 Dec 2007 03:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#436104: fixed in pppstatus 0.4.2-10
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: pppstatus
Version: 0.4.2-9
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

When upgrading my debian box from kernel 2.6.18-4-k7 to 2.6.21-2-k7, pppstatus
starts (when the system is connected to the internet) eating up more than 50% of
CPU (top display), increasing the load remarkeably and slowing down the system
to an annoying extent.

I think the underlying problem is the 'usleep (10L);' call in pppstatus.c,
l.2087: kernel 2.6.21 seems to meet the sleep time of only 10 microseconds (!)
much closer that kernel 2.6.18.  Thus the pppstatus processing loop runs almost
without any pause, eating up the whole CPU time it gets.

The attached minimal C program demonstrates the usleep differences between both
kernels, the attached outputs result from running it ten times on my box.

When patching the usleep call to 10.000 microsends, CPU usage decreases to the
used level and my box becomes fluently usable again.

- -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.21-2-k7 (SMP w/1 CPU core)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages pppstatus depends on:
ii  libc6                     2.6-2          GNU C Library: Shared libraries
ii  libncurses5               5.6+20070716-1 Shared libraries for terminal hand

pppstatus recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGtc7Bco2LfriI0s4RAq64AKCwaw62k4BTdF2fxLU0rDQdsRLTmgCgpbRv
CewxqgQCoKbEckodByVX5RE=
=oGY3
-----END PGP SIGNATURE-----
#include <stdio.h>
#include <sys/time.h>
#include <unistd.h>

int main(int argc, char **argv)
{
    struct timeval  startTime;
    struct timeval  endTime;
    struct timezone timeZone;

    gettimeofday(&startTime, &timeZone);
    usleep(10L);
    gettimeofday(&endTime, &timeZone);
    printf("Elapsed time: %li seconds, %li microseconds.\n",
           endTime.tv_sec - startTime.tv_sec,
           endTime.tv_usec - startTime.tv_usec);
    return 0;
}
for in in `seq 10`; do ./test_usleep; done
Elapsed time: 0 seconds, 4734 microseconds.
Elapsed time: 0 seconds, 6521 microseconds.
Elapsed time: 0 seconds, 3306 microseconds.
Elapsed time: 0 seconds, 6018 microseconds.
Elapsed time: 0 seconds, 2792 microseconds.
Elapsed time: 0 seconds, 2751 microseconds.
Elapsed time: 0 seconds, 2768 microseconds.
Elapsed time: 0 seconds, 2765 microseconds.
Elapsed time: 0 seconds, 2785 microseconds.
Elapsed time: 0 seconds, 2748 microseconds.
for in in `seq 10`; do ./test_usleep; done
Elapsed time: 0 seconds, 152 microseconds.
Elapsed time: 0 seconds, 107 microseconds.
Elapsed time: 0 seconds, 103 microseconds.
Elapsed time: 0 seconds, 94 microseconds.
Elapsed time: 0 seconds, 103 microseconds.
Elapsed time: 0 seconds, 100 microseconds.
Elapsed time: 0 seconds, 44 microseconds.
Elapsed time: 0 seconds, 106 microseconds.
Elapsed time: 0 seconds, 105 microseconds.
Elapsed time: 0 seconds, 99 microseconds.

--- End Message ---
--- Begin Message ---
Source: pppstatus
Source-Version: 0.4.2-10

We believe that the bug you reported is fixed in the latest version of
pppstatus, which is due to be installed in the Debian FTP archive:

pppstatus_0.4.2-10.diff.gz
  to pool/main/p/pppstatus/pppstatus_0.4.2-10.diff.gz
pppstatus_0.4.2-10.dsc
  to pool/main/p/pppstatus/pppstatus_0.4.2-10.dsc
pppstatus_0.4.2-10_i386.deb
  to pool/main/p/pppstatus/pppstatus_0.4.2-10_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
John Hasler <[EMAIL PROTECTED]> (supplier of updated pppstatus package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 14 Dec 2007 21:25:03 -0600
Source: pppstatus
Binary: pppstatus
Architecture: source i386
Version: 0.4.2-10
Distribution: unstable
Urgency: low
Maintainer: John Hasler <[EMAIL PROTECTED]>
Changed-By: John Hasler <[EMAIL PROTECTED]>
Description: 
 pppstatus  - console-based PPP status monitor
Closes: 332631 436104 437787 454682
Changes: 
 pppstatus (0.4.2-10) unstable; urgency=low
 .
   * Added code to postinst to remove obsolete pppstatus-clean.
     Closes: #454682: pppstatus -- Doesn't purge all files after piuparts
     Install+Upgrade+Purge test
 .
   * Changed usleep(10L) to usleep(10000L) in pppstatus.c.
     Closes: #436104: pppstatus: eats too much CPU under kernel 2.6.21
 .
   * Removed '-s' option from install command in debian/rules.
     Closes: #437787: pppstatus: not handling nostrip build option (policy 10.1)
 .
   * Fixed menu.
 .
   * opt_analiser() and get_opt() were returning pointers to arrays.  Fixed.
     Closes: #332631: pppstatus crashes with segfault
 .
   * Removed spurious misuse of '==' at line 1661 in pppstatus,c
 .
   * Changed connect_time and current_time from 'unsigned long' to 'time_t'
     in pppstatus.h.
 .
   * Removed spurious usr/sbin.
Files: 
 51d960423e53d8268fbc5153b45709dd 707 net optional pppstatus_0.4.2-10.dsc
 f50a0bcdba145a72d27209b571324edb 28465 net optional pppstatus_0.4.2-10.diff.gz
 1a7e3aa7d2876d1b185d856319184e27 31648 net optional pppstatus_0.4.2-10_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQCVAwUBR2NJkfc1CeQKxb5hAQKaOAP+MLmnLJABaK1KRX194pVoDRP1aEjvrXti
aQkopxQ8dZVqZWEFmQFwkBVq87tZXXBc6SlUnT0T1e2Wrm40VFA4nInc3MSGMKo8
lyboEJrhUgp32PPlgkwASyzTabpjCBQdsEncraIIxIyFxJq3JcspTAcv8NX8QwuD
HWFvFXvf+VA=
=OqP3
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to