From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] memory limit for swapping? From: "Russ Cox" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20011226033603.2B85319A32@mail.cse.psu.edu> Date: Tue, 25 Dec 2001 22:35:57 -0500 Topicbox-Message-UUID: 3acfca62-eaca-11e9-9e20-41e7f4b1d025 > Does swapping have any memory limit around 226MB? > This is caused from a bug of our program, however, it failes always > around swapping volume of 226MB. Does it come from some limits > for swapping? Or I'm just doing stupid? How big is your swap partition? The system does not fail gracefully once it gets full. Also, there is a fixed limit on the swap size. If you follow through pc/main.c you can derive what the exact limits on conf.nswap are. I don't have the stomach, but it's clear that it's proportional to the amount of memory in the system but capped at a certain point. The easiest way to tell is to look at the message at boot: if it says 1000 free pages 10000K bytes 15000K swap then the system swap space limit is 5MB (15000K-10000K). The last number is actually physical user memory + swap space (total user virtual memory) rather than swap space. It would be more accurate to phrase it as user memory: 1000 pages, 10M physical, 15M virtual You might just be exhausting the virtual space. Russ