Re: [opensuse] Creating a swap file



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



Relevant Pages

  • RE: [opensuse] Creating a swap file
    ... On Thursday 11 January 2007 16:12, James D. Parra wrote: ... Okay, this is interesting. ... You're asking dd to allocate a single, contiguous 2 gigabyte block of ...
    (SuSE)
  • Re: A Ram Challenge
    ... currently reading in a post to Ram each day. ... out of breath. ... darling, it's okay. ...
    (rec.arts.mystery)
  • Re: OT: Windows 7 beta, (my) first look.
    ... 1.25G RAM, 10G HDD!) ... runs okay in VM fusion as well been running it for a week or more. ...
    (uk.comp.sys.mac)
  • AOT: A Request for Help
    ... Okay, I've got a question over an issue with, ah, let's just say ... How would the people on RAM respond to a mystery series whose ... Jane (AOT means "actually on topic) Haddam ...
    (rec.arts.mystery)
  • Re: slow computer
    ... | homepage, it's okay but when i try to open a link, it takes a minute or 2... ... | winXP pro version 2002 ... 128 MB of RAM is no where even close to making XP run. ...
    (microsoft.public.windowsxp.general)