* [9fans] cpu server and swap
@ 2003-12-19 10:38 Matthias Teege
2003-12-19 11:27 ` Geoff Collyer
2003-12-19 14:20 ` mirtchov
0 siblings, 2 replies; 6+ messages in thread
From: Matthias Teege @ 2003-12-19 10:38 UTC (permalink / raw)
To: 9fans
Moin,
Today I found my (diskless) cpu/auth server with the message
fs killed because no swap configured no physical memory
Ok, I understand but what eats the memory? The machine has 256MB
RAM and reports at startup 2387 free pages, 9548kbytes, 167948k
swap. I run a vmware cpu server with only 64MB RAM without any
problems and stats shows only 10% memory usage. As I understand
cpurc correct, cpu servers don't use swap.
What do I missing?
Matthias
--
Matthias Teege -- http://www.mteege.de
make world not war
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] cpu server and swap
2003-12-19 10:38 [9fans] cpu server and swap Matthias Teege
@ 2003-12-19 11:27 ` Geoff Collyer
2003-12-19 15:19 ` Matthias Teege
2003-12-19 14:20 ` mirtchov
1 sibling, 1 reply; 6+ messages in thread
From: Geoff Collyer @ 2003-12-19 11:27 UTC (permalink / raw)
To: 9fans
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] cpu server and swap
2003-12-19 10:38 [9fans] cpu server and swap Matthias Teege
2003-12-19 11:27 ` Geoff Collyer
@ 2003-12-19 14:20 ` mirtchov
1 sibling, 0 replies; 6+ messages in thread
From: mirtchov @ 2003-12-19 14:20 UTC (permalink / raw)
To: 9fans
> fs killed because no swap configured no physical memory
>
for what it's worth, you get that message when you type '^T^Tk' on the
console of a Plan 9 machine (the process killed may be different)..
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] cpu server and swap
2003-12-19 11:27 ` Geoff Collyer
@ 2003-12-19 15:19 ` Matthias Teege
2003-12-19 22:59 ` Geoff Collyer
0 siblings, 1 reply; 6+ messages in thread
From: Matthias Teege @ 2003-12-19 15:19 UTC (permalink / raw)
To: 9fans
Geoff Collyer <geoff@collyer.net> writes:
> 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.
It looks like that. After boot the cpu server cat /dev/swap gives me
544/2378 memory, 0/39600 swap and maxmem isn't set. Oooaahhh ?%#$!
How do I tell Santa Claus that I need another cpu server?
Vielen Dank
Matthias
--
Matthias Teege -- http://www.mteege.de
make world not war
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] cpu server and swap
2003-12-19 15:19 ` Matthias Teege
@ 2003-12-19 22:59 ` Geoff Collyer
2003-12-20 0:32 ` ron minnich
0 siblings, 1 reply; 6+ messages in thread
From: Geoff Collyer @ 2003-12-19 22:59 UTC (permalink / raw)
To: 9fans
You might try setting
*maxmem=268435456
in plan9.ini, and also recompile /sys/src/9/pc/memory.c
after changing /sys/src/9/pc/memory.c:12 to
#define MEMDEBUG 1
then rebuild 9pccpu and boot that kernel on your cpu server.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [9fans] cpu server and swap
2003-12-19 22:59 ` Geoff Collyer
@ 2003-12-20 0:32 ` ron minnich
0 siblings, 0 replies; 6+ messages in thread
From: ron minnich @ 2003-12-20 0:32 UTC (permalink / raw)
To: 9fans
just a tidbit, I do know that the plan 9 memory sizing algorithm will fail
badly with some chipsets.
I doubt this is your problem, it's just interesting.
ron
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-12-20 0:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-19 10:38 [9fans] cpu server and swap Matthias Teege
2003-12-19 11:27 ` Geoff Collyer
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
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).