9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Geoff Collyer <geoff@collyer.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] cpu server and swap
Date: Fri, 19 Dec 2003 03:27:56 -0800	[thread overview]
Message-ID: <741058fd8b2cd393a626e60a70e5981c@collyer.net> (raw)
In-Reply-To: <868yl9gkhz.fsf@gic.mteege.de>

cpu servers can indeed swap, just as terminals can.  Only Ken's
original file server kernel won't swap.  Terminals are sometimes
configured to swap into /n/other/swap (in order to run them diskless
or at least real-disk-less).  They can also be configured to swap to
local disk, if present.

It looks like something is wrong; my terminal also has 256MB and I
give 55% to the kernel, primarily for images (it may be overkill, but
I use a lot of windows and hate running out of image memory at
inconvenient times), yet have lots of free memory:

	; cat /dev/swap
	4404/29266 memory 0/99066 swap

I almost never swap, but the first two numbers at least are in units
of the machine's page size (4K on the x86).  So I've got 117,064KB
(114.3MB) of non-kernel memory, of which 17,616KB (17.2MB) is in use.

You can ignore the `167948k swap', but it appears that your kernel is
only seeing about 16MB of RAM, and leaving you with 2387 pages (9548K
bytes) or about 60% of 16MB.  Try `cat /dev/swap' on that machine.  Is
there a `*maxmem=' line in your plan9.ini?  If not, it would seem that
your machine is odd enough that kernel memory sizing is getting
confused.



  reply	other threads:[~2003-12-19 11:27 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-19 10:38 Matthias Teege
2003-12-19 11:27 ` Geoff Collyer [this message]
2003-12-19 15:19   ` Matthias Teege
2003-12-19 22:59     ` Geoff Collyer
2003-12-20  0:32       ` ron minnich
2003-12-19 14:20 ` mirtchov

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=741058fd8b2cd393a626e60a70e5981c@collyer.net \
    --to=geoff@collyer.net \
    --cc=9fans@cse.psu.edu \
    /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;
as well as URLs for NNTP newsgroup(s).