[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#542510: libc6: getrusage with RUSAGE_CHILDREN gets 0 memory always (after waitpid)



Package: libc6
Version: 2.9-23
Severity: normal


I'm calling getrusage with RUSAGE_CHILDREN after a child exits (waiting
for it with getpid, so yes, SIG_IGN is definitely NOT set on SIGCHLD!).
The memory fields are always zero.

 {
   ru_utime = {tv_sec = 33, tv_usec = 66066},
   ru_stime = {tv_sec = 6, tv_usec = 360397},
   ru_maxrss = 0,
   ru_ixrss = 0,
   ru_idrss = 0,
   ru_isrss = 0,
   ru_minflt = 93944,
   ru_majflt = 0,
   ru_nswap = 0,
   ru_inblock = 0,
   ru_oublock = 0,
   ru_msgsnd = 0,
   ru_msgrcv = 0,
   ru_nsignals = 0,
   ru_nvcsw = 159436,
   ru_nivcsw = 5937
 }

The truth is that hundreds of megabytes have been used, both RSS and
VSS.

Regards

Peter


-- System Information:
LSB Version:	core-2.0-ia32:core-2.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.1-ia32:core-3.1-noarch:core-3.2-ia32:core-3.2-noarch
Distributor ID:	Ancient Ubuntu overlain by Modern Debian
Description:	Ubuntu 8.04.1/Lenny/Squeeze/Sid
Release:	8.04
Codename:	Squeeze/Sid
Architecture: i386 (i686)

Kernel: Linux 2.6.30.1-SMP (SMP w/1 CPU core; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/bash-static

Versions of packages libc6 depends on:
ii  libgcc1                       1:4.4.1-2  GCC support library

libc6 recommends no packages.

Versions of packages libc6 suggests:
ii  glibc-doc              2.9-25            GNU C Library: Documentation
ii  locales                2.9+cvs20090214-7 common files for locale support

-- debconf information:
  glibc/upgrade: true
  glibc/disable-screensaver:
  glibc/restart-failed:
* glibc/restart-services: rsync openbsd-inetd cups cron atd



Reply to: