If I understand this one liner correctly, dd is transferring 82 blocks of size 104857600. My original testing was: sudo /dev/random > bigfile And I monitored the size of the file with ls -l in a different terminal. Then I CTRL-C to stop the transfer. LInux is not a major part of my vocation (today?) At risk of being a "broken record", my problem has been solved by fixing my ram. I can now work with a 71.8GB zip with no issues. On 4/29/2022 6:05 PM, Chuck Anderson wrote:
Why not just use "dd":
dd if=/dev/urandom bs=104857600 count=82 of=bigfile
On Fri, Apr 29, 2022 at 01:03:19PM -0400, Joshua Stone via WLUG wrote:
Yeah I was thinking about how to minimize resource usage, as Python has a much larger runtime compared to a compiled-compiled program.
I've ported the Python program to Rust:
https://gist.github.com/joshua-stone/576e5826302a720331a2686f25c957f1
When compiled with MUSL, LTO, and static-linking, then finally run through `strip`, it'll produce a 391KB binary with no external libraries, not even glibc!
I'm sure plenty can be done to further optimize memory footprint, but this has been a fun exercise already.
On Fri, Apr 29, 2022 at 11:05 AM Kevin Stratton via WLUG < wlug@lists.wlug.org> wrote:
Thank you everyone for your attention to this.
I was able to get a free (as in free beer) memtest86 installed on a USB drive. Memtest86 did lead me to a bad memory module. I am operating on 1/2 ram until I get a replacement ram module. Memtest86+ does not seem ready for a "secure boot" environment.
When I did the copy I was talking about, I was in the folder that the file exists: I did a simple "cp file file2 "with no options. There was no error messages of any kind, the ram issue was silent, if I recall correctly the bad copied file was always the same size as the original. The issue lead to this was that I could not install a very large software package. I would have random issues that were related to a corrupted file.
I wanted to use the minimum resources possible withe C code to eliminate confounding factors.
I am currently downloading the file and I will try to install the application today.