mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
To: linux-kernel@vger.kernel.org
Subject: 2.6.16-rc5: process with huge vsize but no swap used
Date: Fri, 10 Mar 2006 00:25:16 -0500	[thread overview]
Message-ID: <E1FHa7o-00015W-8g@approximate.corpus.cam.ac.uk> (raw)

System is a Thinkpad 600X (Pentium III) w/ 576MB of RAM, 1GB of swap.

While testing 2.6.16-rc5 for ACPI issues, I ran across a vm behavior
that I've never seen before.  I had just booted and logged in via xdm,
and had opened a few small files in emacs.  All of a sudden
sudden emacs complained that:

  Memory exhausted--use M-x save-some-buffers RET

I didn't have any large files opened, but:

$ ps u3817
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
sanjoy    3817  0.1  2.0 1246160 11992 ?       S    Mar09   0:11 emacs -iconic

No swap is being used despite emacs allegedly consuming 1.2GB of VM:

$ free
             total       used       free     shared    buffers     cached
Mem:        580924     219964     360960          0      29124     128956
-/+ buffers/cache:      61884     519040
Swap:      1068280          0    1068280

Is that possible (maybe it's all zero-filled memory)?  If so, it's an
emacs bug that I've never seen before and I'll report it on the emacs
lists.  If it's not possible, then maybe it's a kernel issue.  I saved
/proc/3817/{maps,smaps,status,exe} just in case.

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   - Bertrand de Jouvenal

             reply	other threads:[~2006-03-10  5:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-10  5:25 Sanjoy Mahajan [this message]
2006-03-10 16:37 ` Phillip Susi

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=E1FHa7o-00015W-8g@approximate.corpus.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --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®