public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Riesen <fork0@users.sf.net>
To: Vladimir Trebicky <guru@cimice.yo.cz>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Swap doesn't work
Date: Sun, 27 Oct 2002 10:23:37 +0100	[thread overview]
Message-ID: <20021027092337.GA4507@steel> (raw)
In-Reply-To: <001001c27d02$6297fe50$4500a8c0@cybernet.cz>

> I've made my linux-from-scratch with latest stable (2.4.19) kernel, made
> swap, turned it on but it doesn't work. It seems it does but when there's
> not enough memory, the system crashes. Either it kills the application
> desiring more memory (gcc or something) or crashes the kernel with memory
> dump. Neither the 2.4.20-pre5-ac3 helped.

Does your swap partition show up in /proc/swaps? It has to contain
something like this:

Filename			Type		Size	Used	Priority
/dev/hda6                       partition	506008	0	-1

Btw, do you see something swap-related in dmesg? Like:

  Unable to find swap-space signature
  Unable to handle swap header version ...
  Swap area shorter than signature indicates
  Empty swap-file

And do you actually see something like this:
  Adding Swap: 506008k swap-space (priority -1)

How did you initialized the swap partition? Recent kernels support both
v1 and v2 swaps, which is can be set for mkswap using -v0 (-v1).
Actually i mean did you initialized it at all? 8)

-alex

  parent reply	other threads:[~2002-10-27  8:17 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-26 15:14 Swap doesn't work Vladimír Třebický
2002-10-26 15:44 ` Alan Cox
2002-10-27  9:23 ` Alex Riesen [this message]
2002-10-27  8:51   ` Vladimír Trebický
2002-10-27  9:34     ` Alexander Puchmayr
2002-10-27 10:28     ` Alex Riesen
  -- strict thread matches above, loose matches on Subject: below --
2002-10-27 11:07 Vladimír Třebický
2002-10-27 12:50 ` Alex Riesen
2002-10-27 13:12   ` Alan Cox
2002-10-27 14:48     ` Vladimír Třebický
2002-10-27 15:21       ` Alan Cox
2002-10-27 19:41 Tim Tassonis
2002-10-27 20:03 ` Christoph Hellwig
2002-10-27 20:13   ` Tim Tassonis
2002-10-27 21:17 ` Alan Cox
2002-10-28 12:22   ` Tim Tassonis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021027092337.GA4507@steel \
    --to=fork0@users.sf.net \
    --cc=guru@cimice.yo.cz \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox