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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to