LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: "FCG WANG Baohua" <Baohua.WANG@alcatel-sbell.com.cn>
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: strange things about swap on NFS
Date: Fri, 12 Aug 2005 09:58:07 +0200	[thread overview]
Message-ID: <20050812075807.E9613352B36@atlas.denx.de> (raw)
In-Reply-To: Your message of "Fri, 12 Aug 2005 14:03:08 +0800." <A9DE2BAF233E444FA9C5E77A5825A01E86505F@ydmail.sbell.com.cn>

In message <A9DE2BAF233E444FA9C5E77A5825A01E86505F@ydmail.sbell.com.cn> you wrote:
> 
>   But I found that the "dd if=/dev/zero of=swapfile bs=1M
> count=62" is not easy to executed:

This command alone should just work fine.

>   The system is often no response after execute this command. On several
> time, it add swap successfully.
>    But  when I start to compile package. The system then no response !!

>From your subject and this description I understand that you then try
to use this file as swapfile over NFS, and this causes problems.

There is a known problem with swap over NFS, at least for 2.4 kernels.

>    How to slove the problem? Is the reason of my hard disk? I think not,

RTFM. A solution is described in detail at
http://www.denx.de/twiki/bin/view/DULG/SwappingOverNFS

Note that this is terribly slow, though - but sometimes  it's  better
to  have  a slow and working system than one which is fast and out of
memory.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
You can't evaluate a man by logic alone.
	-- McCoy, "I, Mudd", stardate 4513.3

      reply	other threads:[~2005-08-12  7:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-12  6:03 strange things about swap on NFS FCG WANG Baohua
2005-08-12  7:58 ` Wolfgang Denk [this message]

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=20050812075807.E9613352B36@atlas.denx.de \
    --to=wd@denx.de \
    --cc=Baohua.WANG@alcatel-sbell.com.cn \
    --cc=linuxppc-embedded@ozlabs.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