Debian Bug report logs - #628462
linux-2.6: reports impossible swap statistics for a process

Package: procps; Maintainer for procps is Craig Small <csmall@debian.org>; Source for procps is src:procps.

Reported by: Lionel Elie Mamane <lionel@mamane.lu>

Date: Sun, 29 May 2011 07:51:01 UTC

Severity: normal

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#628462; Package src:linux-2.6. (Sun, 29 May 2011 07:51:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lionel Elie Mamane <lionel@mamane.lu>:
New Bug report received and forwarded. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Sun, 29 May 2011 07:51:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Lionel Elie Mamane <lionel@mamane.lu>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: linux-2.6: reports impossible swap statistics for a process
Date: Sun, 29 May 2011 09:47:38 +0200
Source: linux-2.6
Version: 2.6.32-26
Severity: normal

I'm not sure if the bug is in top or in linux. top reports that galeon
(my web browser) uses 195GB of swap; that's far more swap than I have,
so not possible.

The only out of the ordinary thing I remember doing is hibernating and
resuming several times.

I attach just about every info from /proc/${PID}/ which I thought
might be useful.

-- System Information:
Debian Release: squeeze/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'oldstable'), (500, 'stable'), (400, 'testing'), (300, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_LU.UTF-8, LC_CTYPE=fr_LU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash




Information forwarded to debian-bugs-dist@lists.debian.org, Debian Kernel Team <debian-kernel@lists.debian.org>:
Bug#628462; Package src:linux-2.6. (Sun, 29 May 2011 08:03:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Debian Kernel Team <debian-kernel@lists.debian.org>. (Sun, 29 May 2011 08:03:04 GMT) Full text and rfc822 format available.

Message #10 received at 628462@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: Lionel Elie Mamane <lionel@mamane.lu>
Cc: 628462@bugs.debian.org, procps@packages.debian.org
Subject: Re: linux-2.6: reports impossible swap statistics for a process
Date: Sun, 29 May 2011 02:58:54 -0500
reassign 628462 procps
quit

Hi,

Lionel Elie Mamane wrote:

> I'm not sure if the bug is in top or in linux. top reports that galeon
> (my web browser) uses 195GB of swap; that's far more swap than I have,
> so not possible.
>
> The only out of the ordinary thing I remember doing is hibernating and
> resuming several times.
>
> I attach just about every info from /proc/${PID}/ which I thought
> might be useful.

The attachment seems to be missing.  Anyway, reassigning to top; once
this is rephrased as "such-and-such item under /proc should say X, but
it says Y", please feel free to assign it back to the kernel again.

Thanks, and happy hacking.
Jonathan




Bug reassigned from package 'src:linux-2.6' to 'procps'. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Sun, 29 May 2011 08:03:05 GMT) Full text and rfc822 format available.

Bug No longer marked as found in versions linux-2.6/2.6.32-26. Request was from Jonathan Nieder <jrnieder@gmail.com> to control@bugs.debian.org. (Sun, 29 May 2011 08:03:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#628462; Package procps. (Sun, 29 May 2011 08:21:12 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lionel Elie Mamane <lionel@mamane.lu>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Sun, 29 May 2011 08:21:12 GMT) Full text and rfc822 format available.

Message #19 received at 628462@bugs.debian.org (full text, mbox):

From: Lionel Elie Mamane <lionel@mamane.lu>
To: 628462@bugs.debian.org
Subject: Re: linux-2.6: reports impossible swap statistics for a process
Date: Sun, 29 May 2011 09:57:27 +0200
[Message part 1 (text/plain, inline)]
On Sun, May 29, 2011 at 09:47:38AM +0200, Lionel Elie Mamane wrote:

> I'm not sure if the bug is in top or in linux. top reports that galeon
> (my web browser) uses 195GB of swap; that's far more swap than I have,
> so not possible.

> The only out of the ordinary thing I remember doing is hibernating and
> resuming several times.

> I attach just about every info from /proc/${PID}/ which I thought
> might be useful.

Here's the promised attachment.

-- 
Lionel
[BUG_GALEON_MEMORY (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#628462; Package procps. (Mon, 04 Jul 2011 12:14:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to eshkinkot <eshkinkot@gmail.com>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Mon, 04 Jul 2011 12:15:15 GMT) Full text and rfc822 format available.

Message #24 received at 628462@bugs.debian.org (full text, mbox):

From: eshkinkot <eshkinkot@gmail.com>
To: 628462@bugs.debian.org
Subject: top: please, fix swap statistics for a process
Date: Mon, 4 Jul 2011 16:12:14 +0400
modern kernel have VmSwap field in /proc/$$/status so I think this can
be fixed at least in testing.

PS: BTW bug like this is just fixed in Fedora, please see:
https://bugzilla.redhat.com/show_bug.cgi?id=532668




Information forwarded to debian-bugs-dist@lists.debian.org, Craig Small <csmall@debian.org>:
Bug#628462; Package procps. (Mon, 05 Dec 2011 22:15:09 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jonathan Nieder <jrnieder@gmail.com>:
Extra info received and forwarded to list. Copy sent to Craig Small <csmall@debian.org>. (Mon, 05 Dec 2011 22:15:10 GMT) Full text and rfc822 format available.

Message #29 received at 628462@bugs.debian.org (full text, mbox):

From: Jonathan Nieder <jrnieder@gmail.com>
To: 628462@bugs.debian.org
Cc: Lionel Elie Mamane <lionel@mamane.lu>
Subject: Re: top: reports impossible swap statistics for a process
Date: Mon, 5 Dec 2011 16:11:55 -0600
Lionel Elie Mamane wrote:

> I'm not sure if the bug is in top or in linux. top reports that galeon
> (my web browser) uses 195GB of swap; that's far more swap than I have,
> so not possible.

Probably due to memory-mapped files.  Compare [1].

Starting with version 3.3.0, procps uses the VmSwap field from Linux,
which should avoid such confusing behavior.  Unfortunately the Linux
kernel in squeeze does not provide that field, so you might find that
everything is reported to use zero swap.

The Linux support was added in v2.6.34-rc1~182 ("mm: count swap usage"):

    A frequent questions from users about memory management is what numbers of
    swap ents are user for processes.  And this information will give some
    hints to oom-killer.

    Besides we can count the number of swapents per a process by scanning
    /proc/<pid>/smaps, this is very slow and not good for usual process
    information handler which works like 'ps' or 'top'.  (ps or top is now
    enough slow..)

    This patch adds a counter of swapents to mm_counter and update is at each
    swap events.  Information is exported via /proc/<pid>/status file

A fallback that looks at /proc/<pid>/smaps might be possible.

Hope that helps,
Jonathan

[1] http://bugs.debian.org/650163




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 12:42:43 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.