Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Feb 1999 07:58:15 -0500 (EST)
From:      Brian Feldman <green@unixhelp.org>
To:        John Saunders <john.saunders@nlc.net.au>
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: swapper BIG problems
Message-ID:  <Pine.BSF.4.05.9902050756100.1044-100000@janus.syracuse.net>
In-Reply-To: <19990205055655.18199.qmail@nhj.nlc.net.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On 5 Feb 1999, John Saunders wrote:

> In nlc.lists.freebsd-current you wrote:
> > It succeeds as per allocating the memory until the swap is full. But, when
> 
> Malloc's don't cause swap space allocation. Theoretically a process can
> malloc all of it's virtual address space so long as it doesn't touch
> the pages.

If you looked at the "prgram" (term used loosely) it touches every bit of
memory it allocates.

> 
> > it starts the reading/freeing, the swapins cause hundreds of
> > swap_pager_getswapspace: failed                                                 
> Once you actually start touching the pages does swap space (or real
> memory) get allocated. However by now you have malloc'ed more data
> than exists in physical swap space, and the swapper can't do anything
> about it except throw away your dirty pages without saving them.

The pages were already touched and in swap. After each page was read in by
the pager, the printf() tried to malloc but generated the error (as it seems
to me).
> 
> > This will put the system in a deadlock if, for instance, this program is run
> > in an xterm and an X server is running locally, and it's too swapped out to
> > be used, but the memory program displays things to the term (catch-22).
> 
> This is a problem. Possibly the print commands should be rate limited.
> If they go to the console how do they end up in an xterm? Possibly your
> syslog.conf, or you run xconsole.

The problem is, the commands were going to the console, not even the xterm. I
found out by looking at /var/log/messages after poking reset.

> 
> Cheers.
> --            +------------------------------------------------------------+
>         .     | John Saunders  - mailto:john@nlc.net.au            (EMail) |
>     ,--_|\    |                - http://www.nlc.net.au/              (WWW) |
>    /  Oz  \   |                - 02-9489-4932 or 041-822-3814      (Phone) |
>    \_,--\_/   | NHJ NORTHLINK COMMUNICATIONS - Supplying a professional,   |
>          v    | and above all friendly, internet connection service.       |
>               +------------------------------------------------------------+
> 

 Brian Feldman					  _ __  ___ ___ ___  
 green@unixhelp.org			      _ __ ___ | _ ) __|   \ 
	     http://www.freebsd.org/	 _ __ ___ ____ | _ \__ \ |) |
 FreeBSD: The Power to Serve!	   _ __ ___ ____ _____ |___/___/___/ 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9902050756100.1044-100000>