home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!psinntp!cmcl2!cs!fox
- From: fox@cs.nyu.edu (David Fox)
- Subject: Re: Freeze up on X
- In-Reply-To: dvogt@novell.com's message of 23 Jan 93 00:21:54 GMT
- Message-ID: <FOX.93Jan23083823@graphics.nyu.edu>
- Sender: notes@cmcl2.nyu.edu (Notes Person)
- Nntp-Posting-Host: graphics.cs.nyu.edu
- Organization: Courant Institute of Mathematical Sciences
- References: <1993Jan21.030531.3702@news.uiowa.edu> <1993Jan21.181502.23485@miles.com>
- <BALASUB.93Jan22093232@iguana.cis.ohio-state.edu>
- <1993Jan23.002154.17904@novell.com>
- Date: Sat, 23 Jan 1993 13:38:23 GMT
- Lines: 16
-
- I think this failure mode is inherant in the decision to allow
- allocation of more memory than your combined ram+swap, which I
- asked about in my recent message "how does it malloc so much?"
- The real allocation occurs when the allocated pages are written
- to, and there is no equivalent to malloc returning NULL when
- there is insufficient memory to allocate a page. As many have
- noted, there is a lengthy, perhaps indefinite, period of
- thrashing followed hopefully by the kernal selecting a process
- and killing it.
-
- I agree that Linux' swap policy is less profligate with resources
- than BSDs, where every allocated page always has a physical analog
- in swap space. Perhaps a victim process should be selected sooner,
- when, say, 30k of swap remains rather than 0?
-
- -david
-