Re: [opensuse] Creating a swap file
- From: jan kalcic <jandot@xxxxxxxxxxxxxx>
- Date: Fri, 12 Jan 2007 03:34:43 +0100
James D. Parra wrote:
On Thursday 11 January 2007 16:12, James D. Parra wrote:
...
Okay, this is interesting.
#dd if=/dev/zero of=/extra-swap bs=2GB count=1K
dd: memory exhausted
You're asking dd to allocate a single, contiguous 2 gigabyte block of
primary storage (a.k.a. RAM) to use as the buffer for transferring the
data from the input to the output.
And as Patrick pointed out, if this did succeed, you'd need a file
system with space available to hold a 2 terabyte file, since you're
trying to write those 2 gigabytes to the file 1024 times.
Try this:
% dd if=/dev/zero of=/extra-swap bs=2M count=1K
~~~
Okay, I got it. I now see what this is doing and how it is being done.
Everything is working. Thank you all for your illuminating responses.
~James
Everything very useful in this topic but... Do you really need a swap
file bigger than 1GB? Remember that, as a rule of thumb, swap file
should be the double of your RAM size but anyway not useful bigger than
1GB.
Regards,
Jan
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- [opensuse] Re: Creating a swap file
- From: Joachim Schrod
- Re: [opensuse] Creating a swap file
- From: Patrick Shanahan
- [opensuse] Re: Creating a swap file
- References:
- RE: [opensuse] Creating a swap file
- From: James D. Parra
- RE: [opensuse] Creating a swap file
- Prev by Date: Re: [opensuse] Re: This is OT, but you guys are gonna love this one!!
- Next by Date: Re: [opensuse] Postfix, stunnel, and MS Exchange
- Previous by thread: RE: [opensuse] Creating a swap file
- Next by thread: Re: [opensuse] Creating a swap file
- Index(es):
Relevant Pages
|