* strange things about swap on NFS
@ 2005-08-12 6:03 FCG WANG Baohua
2005-08-12 7:58 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: FCG WANG Baohua @ 2005-08-12 6:03 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 494 bytes --]
Dear all:
I use ELDK 3.1.1, kernel 2.4.25 on my HD860 board, using NFS. I add a "ext2.img" as mentioned in the ELDK doc.
But I found that the "dd if=/dev/zero of=swapfile bs=1M count=62" is not easy to executed:
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 !!
How to slove the problem? Is the reason of my hard disk? I think not,
thanks!
[-- Attachment #2: Type: text/html, Size: 1509 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: strange things about swap on NFS
2005-08-12 6:03 strange things about swap on NFS FCG WANG Baohua
@ 2005-08-12 7:58 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-08-12 7:58 UTC (permalink / raw)
To: FCG WANG Baohua; +Cc: linuxppc-embedded
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-12 7:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-12 6:03 strange things about swap on NFS FCG WANG Baohua
2005-08-12 7:58 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox