Blog

DD: Memory Exhausted by Input Buffer of Size Bytes (1.0 GiB) – SWAP Space

Linux-DD-Command-Copy
Linux

DD: Memory Exhausted by Input Buffer of Size Bytes (1.0 GiB) – SWAP Space

DD is useful for convert and copy a file that specified input file to the specified output file with the conversion
using input and output block sizes.

There have some limits to specify the datatype used to store the value given can be expected to be size_t.
The read option is helps you for to have a limit of SSIZE_MAX.

Under Linux, read only transfers up to 2,147,479,552 bytes anyway. On a 64-bit platform, size_t is 64 bits in length,
dd will fail when given values greater than 264 – 1:

If you may get an error like “memory exhausted by input buffer of size 1073741824 bytes” When you create a new partition SWAP space using the command below,

sudo dd if=/dev/zero of=/swapfile bs=1G count=2

The error is,

dd: memory exhausted by input buffer of size 1073741824 bytes (1.0 GiB)

You can give bc=1M instead of bs=1G.

sudo dd if=/dev/zero of=/swapfile bs=1M count=2000
2000+0 records in
2000+0 records out
2097152000 bytes (2.1 GB) copied, 5.38533 s, 389 MB/s
Spread the love

Leave your thought here

Your email address will not be published. Required fields are marked *