Subject: Re: Net booting - swap setup
To: None <port-sparc@NetBSD.ORG>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-sparc
Date: 03/05/1997 13:01:34
> Under NetBSD you could use:
>
> dd if=/dev/zero of=foo.swap bs=8327168
> (i think)
Well, you probably want "count=1" as well, if you want just an 8 meg
file. To avoid paging to death, if the file is a significant fraction
of main memory, you may want to do something like (eg, for a 64 meg
file)
dd if=/dev/zero bs=1048576 count=64 of=foo.swap
(which needs only 1M of VM for dd buffering) instead of
dd if=/dev/zero bs=67108864 count=1 of=foo.swap
(which demands 64M of VM for dd buffering). Indeed, the only reason to
not push the bs= figure down and the count= figure up even more is the
syscall overhead incurred - bs=64 count=1048576, for example, is almost
certain to be insanely slow.
der Mouse
mouse@rodents.montreal.qc.ca
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B