Groups | Search | Server Info | Login | Register


Groups > comp.sys.3b1 > #682

Re: How to activate swap?

Path csiph.com!news.mixmin.net!aioe.org!6FXAhmVPTwj8jAV1OrdEag.user.46.165.242.75.POSTED!not-for-mail
From Alain Knaff <alain@knaff.lu>
Newsgroups comp.sys.3b1
Subject Re: How to activate swap?
Date Mon, 24 Oct 2022 08:40:20 +0200
Organization Aioe.org NNTP Server
Message-ID <tj5c0k$1hd8$1@gioia.aioe.org> (permalink)
References <slrnt8vmco.2k11b.alain@hitchhiker.hitchhiker.org.lu> <0bea63a3-09e9-4002-9292-01d889fd0665n@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
Injection-Info gioia.aioe.org; logging-data="50600"; posting-host="6FXAhmVPTwj8jAV1OrdEag.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0
X-Notice Filtered by postfilter v. 0.9.2
X-Mozilla-News-Host news://nntp.aioe.org
Content-Language en-US
Xref csiph.com comp.sys.3b1:682

Show key headers only | View raw


Hi Jesse,

On 24/10/2022 07:45, J Booth wrote:

> Hi Alain.
>
>>> I conclude by this that only about 2.5MB are available in *total*
> So it hit me today, I recall seeing the memory map for the 4MB RAM address space (0x0 - 0x3FFFFF), and sure enough, only around 2.5 MB allocated to user processes:
>
> KERNEL ONLY = 00_00_00 – 07_FF_FF (512 KB)
> User Process = 08_00_00 – 2F_FF_FF (2.5 MB)
> Shared Lib = 30_00_00 – 37_FF_FF (512 KB)

Yes, I have figured this out since then
> Kernel VM = 38_00_00 – 3F_FF_FF (512 KB)

That bit I didn't know yet. As far as I know, Linux does the same (i.e.
the kernel exists in the application's address space, even though
inaccessible to the application, obviously)

>
> So I don't think increasing swap is going to help much given the limited address space.

Actually, the problem that I used to have was running "many" *processes*
concurrently.

When configuring a software package using GNU autoconf, at some point in
time there's a multi-step pipeline and each step implies needs an
additional shell process. With ksh or bash (containing a full load of
config variables), and just 3 or 4 steps of pipeline, this was enough to
run out of VM. Adding more swap resolved the issue. Back then, I did add
more swap "the hard way" by re-installing from floppies and choosing
more swap at the appropriate step. But nowadays, I just use dgesswein's
s4vol tool
Next challenge is to get gcc-3.3.6 (running on UnixPC) to compile a
program longer than a simple hello-world. It runs out of memory pretty
quickly, and as this is one process, swap does not help that use case.

>
>    Jesse
>

Regards,

Alain

Back to comp.sys.3b1 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

How to activate swap? Alain Knaff <alain@knaff.lu> - 2022-05-26 19:48 +0000
  Re: How to activate swap? J Booth <166sunny@gmail.com> - 2022-10-23 22:45 -0700
    Re: How to activate swap? Alain Knaff <alain@knaff.lu> - 2022-10-24 08:40 +0200
      Re: How to activate swap? Peter Schmidt <peter@transcend.aero> - 2022-10-24 04:19 -0700
        Re: How to activate swap? J Booth <166sunny@gmail.com> - 2022-10-24 11:06 -0700
          Re: How to activate swap? Alain Knaff <alain@knaff.lu> - 2022-10-24 22:07 +0200
      Re: How to activate swap? J Booth <166sunny@gmail.com> - 2022-10-24 11:27 -0700
        Re: How to activate swap? J Booth <166sunny@gmail.com> - 2022-10-24 12:20 -0700
        Re: How to activate swap? Alain Knaff <alain@knaff.lu> - 2022-10-24 22:47 +0200

csiph-web