On 2007-01-11 16:57, Randall R Schulz wrote:
> On Thursday 11 January 2007 14:42, Darryl Gregorash wrote:
>
>> ...
>>
>> dd if=/dev/zero of=/extra-swap bs=1K count=1K
>>
>> The following byte/count specifications will all create the 2G file
>> you desire:
>>
>> bs=2G count=1 (though this will probably hardly be practical)
>> bs=2M count=1K
>> bs=2K count=1M
>>
>> (Note that kB, MB and GB all refer to powers of 1000, not 1024. This
>> is standard SI nomenclature.)
>>
>
> Actually, for dd the units are CS (1024, 1024 * 1024, 1024 * 1024 *
> 1024, resp.).
>
Oh, good grief, Randall, please read the damn manpage:
" BLOCKS and BYTES may be followed by the following
multiplicative suffixes: xM M, c 1, w 2, b 512, kB 1000, K 1024, MB
1000*1000, M 1024*1024, GB 1000*1000*1000, G 1024*1024*1024, and
so on for T, P, E, Z, Y."
~~~
Okay, this is interesting.
#dd if=/dev/zero of=/extra-swap bs=2GB count=1K
dd: memory exhausted
# free
total used free shared buffers cached
Mem: 1003424 179012 824412 0 4 93028
-/+ buffers/cache: 85980 917444
Swap: 811240 3176 808064
<snip>
What happened? (running Suse 10.0)
Thanks again,
~James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]