RE: [opensuse] Creating a swap file



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
--
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: [opensuse] Creating a swap file
    ... James D. Parra wrote: ... Okay, this is interesting. ... You're asking dd to allocate a single, contiguous 2 gigabyte block of ... should be the double of your RAM size but anyway not useful bigger than ...
    (SuSE)
  • Re: FYI: ITE IT8212 RAID Controller Linux Driver - GPL
    ... Hi James! ... For example you find this controller onboard on Gigabyte mobo's: ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Hypothetically speaking...
    ... Poor James:) ... So it was okay because it was ASCM and you were having fun. ... statements, then apologize for them. ...
    (alt.smokers.cigars)
  • Re: Hey Burghherfers!
    ... >> Hey, James... ... I'll take Pittsburgh. ... > Okay. ...
    (alt.smokers.cigars)